- Otherwise the uint64_t GPU address may not be proper
- The sign bit is propagated while reinterpret_cast is happening
causing wrong address to be generated.
i.e. in 32 bit application:
void* address = 0xffff0000;
unit64_t gpuAddress = reinterpret_cast<uint64_t>(address);
gpuAddress is equal to 0xffffffffffff0000 instead of 0x00000000ffff0000.
Change-Id: I36665651d615c3ab612b2cea375fa539edc7d08d
- If resources is constant arg it means it will only be read
- Therefore even for read_write buffer we may turn on caching.
Change-Id: Id2c34d4993111bf5c6523a1946464c397db95686
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>