P4 to Git Change 1058368 by gandryey@gera-dev-w7 on 2014/07/23 12:46:38

ECR #304775 - Attempt to fix BUG#10085
	- Align the scratch buffer size to 16 bytes.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuscsi.cpp#24 edit
Этот коммит содержится в:
foreman
2014-07-23 12:54:37 -04:00
родитель 1e0a5f64f5
Коммит cec48dd7b8
+1 -1
Просмотреть файл
@@ -186,7 +186,7 @@ HSAILKernel::aqlCreateHWInfo(const void* shader, size_t shaderSize)
assert((akc->workitem_private_segment_byte_size & 3) == 0 &&
"Scratch must be DWORD aligned");
workGroupInfo_.scratchRegs_ =
akc->workitem_private_segment_byte_size / sizeof(uint);
amd::alignUp(akc->workitem_private_segment_byte_size, 16) / sizeof(uint);
workGroupInfo_.availableSGPRs_ = dev().gslCtx()->getNumSGPRsAvailable();
workGroupInfo_.availableVGPRs_ = dev().gslCtx()->getNumVGPRsAvailable();
workGroupInfo_.preferredSizeMultiple_ = dev().getAttribs().wavefrontSize;