radv: fix reported number of available VGPRs
It's a bit late to round up after an integer division.
Fixes: de88979413
"radv: Implement VK_AMD_shader_info"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Alex Smith <asmith@feralinteractive.com>
This commit is contained in:
@@ -809,7 +809,7 @@ radv_GetShaderInfoAMD(VkDevice _device,
|
|||||||
unsigned workgroup_size = local_size[0] * local_size[1] * local_size[2];
|
unsigned workgroup_size = local_size[0] * local_size[1] * local_size[2];
|
||||||
|
|
||||||
statistics.numAvailableVgprs = statistics.numPhysicalVgprs /
|
statistics.numAvailableVgprs = statistics.numPhysicalVgprs /
|
||||||
ceil(workgroup_size / statistics.numPhysicalVgprs);
|
ceil((double)workgroup_size / statistics.numPhysicalVgprs);
|
||||||
|
|
||||||
statistics.computeWorkGroupSize[0] = local_size[0];
|
statistics.computeWorkGroupSize[0] = local_size[0];
|
||||||
statistics.computeWorkGroupSize[1] = local_size[1];
|
statistics.computeWorkGroupSize[1] = local_size[1];
|
||||||
|
Reference in New Issue
Block a user