mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Pass root device index to MemObj::getGraphicsAllocation method
leave parameterless method in Buffer and Image classes add method to remove graphics allocation from MultiGraphicsAllocation Related-To: NEO-4672 Change-Id: I3020eecfabe9a16af7f36d68a74b32d3f4fc2276 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
@@ -55,6 +55,8 @@ extern ValidateInputAndCreateBufferFunc validateInputAndCreateBuffer;
|
||||
|
||||
class Buffer : public MemObj {
|
||||
public:
|
||||
using MemObj::getGraphicsAllocation;
|
||||
GraphicsAllocation *getGraphicsAllocation() const { return graphicsAllocation; }
|
||||
constexpr static size_t maxBufferSizeForReadWriteOnCpu = 10 * MB;
|
||||
constexpr static cl_ulong maskMagic = 0xFFFFFFFFFFFFFFFFLL;
|
||||
constexpr static cl_ulong objectMagic = MemObj::objectMagic | 0x02;
|
||||
|
||||
Reference in New Issue
Block a user