Commit d85fef1e authored by Eric Engestrom's avatar Eric Engestrom
Browse files

radv: fix reported number of available VGPRs

It's a bit late to round up after an integer division.

Fixes: de889794

 "radv: Implement VK_AMD_shader_info"
Signed-off-by: default avatarEric Engestrom <>
Reviewed-by: default avatarAlex Smith <>
parent 9a4bd6b4
......@@ -809,7 +809,7 @@ radv_GetShaderInfoAMD(VkDevice _device,
unsigned workgroup_size = local_size[0] * local_size[1] * local_size[2];
statistics.numAvailableVgprs = statistics.numPhysicalVgprs /
ceil(workgroup_size / statistics.numPhysicalVgprs);
ceil((double)workgroup_size / statistics.numPhysicalVgprs);
statistics.computeWorkGroupSize[0] = local_size[0];
statistics.computeWorkGroupSize[1] = local_size[1];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment