mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
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> (cherry picked from commitd85fef1e34)
This commit is contained in:
parent
c86a99adef
commit
9b8c90fc67
1 changed files with 1 additions and 1 deletions
|
|
@ -808,7 +808,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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue