P4 to Git Change 1082817 by gandryey@gera-dev-w7 on 2014/09/30 13:47:59
ECR #304775 - Reduce the total number of renames to 16.
- Use 128KB for CB size on SI+
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#286 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#334 edit
[ROCm/clr commit: f48b935b43]
This commit is contained in:
@@ -31,7 +31,7 @@ Settings::Settings()
|
||||
// By Default persistent writes will be disabled.
|
||||
stagingWritePersistent_ = GPU_STAGING_WRITE_PERSISTENT;
|
||||
|
||||
maxRenames_ = 32;
|
||||
maxRenames_ = 16;
|
||||
maxRenameSize_ = 4 * Mi;
|
||||
|
||||
// The global heap settings
|
||||
|
||||
@@ -3066,12 +3066,19 @@ bool
|
||||
VirtualGPU::allocConstantBuffers()
|
||||
{
|
||||
// Allocate/reallocate constant buffers
|
||||
const static size_t MinCbSize = 64 * Ki;
|
||||
size_t minCbSize;
|
||||
if (dev().settings().siPlus_) {
|
||||
// GCN doesn't really have a limit
|
||||
minCbSize = 128 * Ki;
|
||||
}
|
||||
else {
|
||||
minCbSize = 64 * Ki;
|
||||
}
|
||||
uint i;
|
||||
|
||||
// Create/reallocate constant buffer resources
|
||||
for (i = 0; i < MaxConstBuffersArguments; ++i) {
|
||||
ConstBuffer* constBuf = new ConstBuffer(*this, ((MinCbSize +
|
||||
ConstBuffer* constBuf = new ConstBuffer(*this, ((minCbSize +
|
||||
ConstBuffer::VectorSize - 1) / ConstBuffer::VectorSize));
|
||||
|
||||
if ((constBuf != NULL) && constBuf->create()) {
|
||||
@@ -3086,7 +3093,7 @@ VirtualGPU::allocConstantBuffers()
|
||||
|
||||
// 8xx workaround for num workgroups
|
||||
if (!dev().settings().siPlus_) {
|
||||
numGrpCb_ = new ConstBuffer(*this, ((MinCbSize +
|
||||
numGrpCb_ = new ConstBuffer(*this, ((minCbSize +
|
||||
ConstBuffer::VectorSize - 1) / ConstBuffer::VectorSize));
|
||||
if ((numGrpCb_ == NULL) || !numGrpCb_->create()) {
|
||||
LogError("Could not allocate num groups constant buffer!");
|
||||
|
||||
Reference in New Issue
Block a user