mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Refactor allocateGraphicsMemoryInPreferredPool
- extend AllocationType to code necessary flags - remove redundant args - refactor Buffer::create() Change-Id: Ic4b2e0931fad8198ad1cf4f79de210d815048ccf
This commit is contained in:
committed by
sys_ocldev
parent
c2454d5aa2
commit
4441387969
@@ -69,6 +69,7 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
enum class AllocationType {
|
||||
UNKNOWN = 0,
|
||||
BUFFER_COMPRESSED,
|
||||
BUFFER_HOST_MEMORY,
|
||||
BUFFER,
|
||||
IMAGE,
|
||||
TAG_BUFFER,
|
||||
@@ -82,7 +83,6 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
PRIVATE_SURFACE,
|
||||
CONSTANT_SURFACE,
|
||||
SCRATCH_SURFACE,
|
||||
CSR_SURFACE,
|
||||
INSTRUCTION_HEAP,
|
||||
INDIRECT_OBJECT_HEAP,
|
||||
SURFACE_STATE_HEAP,
|
||||
|
||||
Reference in New Issue
Block a user