mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01: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>
This commit is contained in:
parent
9a4bd6b45f
commit
d85fef1e34
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue