diff options
author | Eric Engestrom <[email protected]> | 2018-06-15 17:49:08 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-06-18 17:08:22 +0100 |
commit | d85fef1e34657fc082b9a763de9499d324fbeebf (patch) | |
tree | f5a3f203fc586ae631d667727285b3a7943e9039 /src | |
parent | 9a4bd6b45f909dbf65cf66086be2492214c5ac93 (diff) |
radv: fix reported number of available VGPRs
It's a bit late to round up after an integer division.
Fixes: de889794134e6245e08a2 "radv: Implement VK_AMD_shader_info"
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Alex Smith <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index a68e1d02545..7a5ade9ec7f 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -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]; |