radv: Set the user SGPR MSB for Vega.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 16 Sep 2018 10:17:00 +0000 (12:17 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 16 Sep 2018 10:50:58 +0000 (12:50 +0200)
Otherwise using 32 user SGPRs would be broken.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_shader.c

index e05961339ca0769cc0ede54cf6a54010e28f2596..51e0b7d65fc530709c83ea62c72204083fb9254a 100644 (file)
@@ -408,6 +408,7 @@ radv_fill_shader_variant(struct radv_device *device,
 
        variant->code_size = radv_get_shader_binary_size(binary);
        variant->rsrc2 = S_00B12C_USER_SGPR(variant->info.num_user_sgprs) |
+                        S_00B12C_USER_SGPR_MSB(variant->info.num_user_sgprs >> 5) |
                         S_00B12C_SCRATCH_EN(scratch_enabled);
 
        variant->rsrc1 = S_00B848_VGPRS((variant->config.num_vgprs - 1) / 4) |