diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-09-16 12:17:00 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-09-16 12:50:58 +0200 |
commit | d97c892584cd0641913de2635689c6b59c98816e (patch) | |
tree | 9d8184eb26e9ee2b7d3e1164d0c9d1ddb5151081 /src/amd | |
parent | 02a43edf186cb9998741ba765cb948bb238a122d (diff) |
radv: Set the user SGPR MSB for Vega.
Otherwise using 32 user SGPRs would be broken.
CC: <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index e05961339ca..51e0b7d65fc 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -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) | |