P4 to Git Change 1531530 by gandryey@gera-w8 on 2018/03/23 13:45:11
SWDEV-79445 - OCL generic changes and code clean-up - Add explicit type specialization for AQL copy types to avoid memcpy() calls in the most of cases - Increase size of sysmem copy for constants buffers to account the internal arguments Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#5 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#46 edit
This commit is contained in:
@@ -33,9 +33,10 @@ ManagedBuffer::~ManagedBuffer() {
|
||||
// ================================================================================================
|
||||
bool ManagedBuffer::create(Resource::MemoryType type, bool constbuf) {
|
||||
if (constbuf) {
|
||||
// Create sysmem copy for the constant buffer
|
||||
// Create sysmem copy for the constant buffer.
|
||||
// Allocate extra memory to account the internal arguments
|
||||
sysMemCopy_ = reinterpret_cast<address>(amd::AlignedMemory::allocate(
|
||||
gpu_.dev().info().maxParameterSize_, 256));
|
||||
2 * gpu_.dev().info().maxParameterSize_, 256));
|
||||
if (sysMemCopy_ == nullptr) {
|
||||
LogPrintfError("We couldn't allocate sysmem copy for constant buffer, size(%d)!", size_);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user