radeonsi: decrease GS copy shader user SGPRs to 2
authorMarek Olšák <marek.olsak@amd.com>
Tue, 19 Apr 2016 13:57:53 +0000 (15:57 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 21 Apr 2016 23:14:14 +0000 (01:14 +0200)
const buffers are no longer used since the clip plane const buffer was
moved to RW buffers

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h

index c1ad8ef9a11ba01fa4ac6aa8c4e856d67a4941ba..ea183701d05a398682307e09cd3448ee46244f11 100644 (file)
@@ -4901,8 +4901,8 @@ static void create_function(struct si_shader_context *ctx)
                        num_params = SI_PARAM_LS_OUT_LAYOUT+1;
                } else {
                        if (ctx->is_gs_copy_shader) {
-                               last_array_pointer = SI_PARAM_CONST_BUFFERS;
-                               num_params = SI_PARAM_CONST_BUFFERS+1;
+                               last_array_pointer = SI_PARAM_RW_BUFFERS;
+                               num_params = SI_PARAM_RW_BUFFERS+1;
                        } else {
                                params[SI_PARAM_VS_STATE_BITS] = ctx->i32;
                                num_params = SI_PARAM_VS_STATE_BITS+1;
index 0470890be7f901357651d86aba8ac6d730eb053a..0ab816c6da04c12edbc581c568a0429232f90cef 100644 (file)
@@ -117,7 +117,7 @@ enum {
 
        /* GS limits */
        SI_GS_NUM_USER_SGPR = SI_NUM_RESOURCE_SGPRS,
-       SI_GSCOPY_NUM_USER_SGPR = SI_SGPR_CONST_BUFFERS_HI + 1,
+       SI_GSCOPY_NUM_USER_SGPR = SI_SGPR_RW_BUFFERS_HI + 1,
 
        /* PS only */
        SI_SGPR_ALPHA_REF       = SI_NUM_RESOURCE_SGPRS,