Revert "radv: do not load unused gl_LocalInvocationID/gl_WorkGroupID components"
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 15 Dec 2017 15:01:56 +0000 (16:01 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 18 Dec 2017 10:50:02 +0000 (11:50 +0100)
This reverts commit 2294d35b243dee15af15895e876a63b7d22e48cc.

We can't do this without adjusting the input SGPRs/VGPRs logic.
For now, just revert it. I will send a proper solution later.

It fixes a rendering issue in F1 2017 that CTS didn't catch up.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c

index ab8ba42511e1f8ad423dbf03ab4e367de4aa5ea8..f96b0c07f1e6b03c20d8d84ae61e3be6e18aca11 100644 (file)
@@ -395,11 +395,8 @@ radv_fill_shader_variant(struct radv_device *device,
        case MESA_SHADER_COMPUTE: {
                struct ac_shader_info *info = &variant->info.info;
                variant->rsrc2 |=
-                       S_00B84C_TGID_X_EN(info->cs.uses_block_id[0]) |
-                       S_00B84C_TGID_Y_EN(info->cs.uses_block_id[1]) |
-                       S_00B84C_TGID_Z_EN(info->cs.uses_block_id[2]) |
-                       S_00B84C_TIDIG_COMP_CNT(info->cs.uses_thread_id[2] ? 2 :
-                                               info->cs.uses_thread_id[1] ? 1 : 0) |
+                       S_00B84C_TGID_X_EN(1) | S_00B84C_TGID_Y_EN(1) |
+                       S_00B84C_TGID_Z_EN(1) | S_00B84C_TIDIG_COMP_CNT(2) |
                        S_00B84C_TG_SIZE_EN(info->cs.uses_local_invocation_idx) |
                        S_00B84C_LDS_SIZE(variant->config.lds_size);
                break;