diff options
author | Eric Engestrom <eric.engestrom@intel.com> | 2018-06-15 17:49:08 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-06-18 10:43:57 -0700 |
commit | 9b8c90fc67ee478972955057eda36523be284cfd (patch) | |
tree | 5b33f0b90ca0f772b17c005a8f7b1e6289fbefc0 | |
parent | c86a99adeff3ff3c1d3f2c9ce3ccfa122c54d7c7 (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 <eric.engestrom@intel.com>
Reviewed-by: Alex Smith <asmith@feralinteractive.com>
(cherry picked from commit d85fef1e34657fc082b9a763de9499d324fbeebf)
-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 97133b295d..70069b677d 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -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]; |