mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Return ZE_RESULT_OUT_OF_MEMORY when alloc on device fails during cmdlist create
Change-Id: Ia03e7ac190598c56de044d3ad8216087b8da94f2 Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
This commit is contained in:
@@ -25,6 +25,12 @@ using ResidencyContainer = std::vector<GraphicsAllocation *>;
|
||||
using CmdBufferContainer = std::vector<GraphicsAllocation *>;
|
||||
using HeapType = IndirectHeap::Type;
|
||||
|
||||
enum class ErrorCode {
|
||||
SUCCESS = 0,
|
||||
INVALID_DEVICE = 1,
|
||||
OUT_OF_DEVICE_MEMORY = 2
|
||||
};
|
||||
|
||||
class CommandContainer : public NonCopyableOrMovableClass {
|
||||
public:
|
||||
static constexpr size_t defaultListCmdBufferSize = MemoryConstants::kiloByte * 256;
|
||||
@@ -70,7 +76,7 @@ class CommandContainer : public NonCopyableOrMovableClass {
|
||||
|
||||
void *getHeapSpaceAllowGrow(HeapType heapType, size_t size);
|
||||
|
||||
bool initialize(Device *device);
|
||||
ErrorCode initialize(Device *device);
|
||||
|
||||
virtual ~CommandContainer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user