Module: Mesa Branch: master Commit: d85fef1e34657fc082b9a763de9499d324fbeebf URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d85fef1e34657fc082b9a763de9499d324fbeebf
Author: Eric Engestrom <eric.engest...@intel.com> Date: Fri Jun 15 17:49:08 2018 +0100 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.engest...@intel.com> Reviewed-by: Alex Smith <asm...@feralinteractive.com> --- src/amd/vulkan/radv_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index a68e1d0254..7a5ade9ec7 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]; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit