radeonsi: Rename si_shader::ls_rsrc{1,2} to si_shader::rsrc{1,2}
authorTom Stellard <thomas.stellard@amd.com>
Mon, 16 Nov 2015 19:58:32 +0000 (19:58 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 25 Nov 2015 16:03:05 +0000 (11:03 -0500)
In the future, these will be used by other shaders types.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_draw.c
src/gallium/drivers/radeonsi/si_state_shaders.c

index 3400a03d7bb7d3c4f9226abc98bb53dfc2c94049..f089dc73ca187e8d31fded537d55eae2809390de 100644 (file)
@@ -290,8 +290,8 @@ struct si_shader {
        bool                    is_gs_copy_shader;
        bool                    dx10_clamp_mode; /* convert NaNs to 0 */
 
-       unsigned                ls_rsrc1;
-       unsigned                ls_rsrc2;
+       unsigned                rsrc1;
+       unsigned                rsrc2;
 };
 
 static inline struct tgsi_shader_info *si_get_vs_info(struct si_context *sctx)
index 753abc8c1034552e65d75636e77c1b25904d0b47..771d206b9cc824f23756c2901121d2e53974e238 100644 (file)
@@ -163,7 +163,7 @@ static void si_emit_derived_tess_state(struct si_context *sctx,
        perpatch_output_offset = output_patch0_offset + pervertex_output_patch_size;
 
        lds_size = output_patch0_offset + output_patch_size * *num_patches;
-       ls_rsrc2 = ls->current->ls_rsrc2;
+       ls_rsrc2 = ls->current->rsrc2;
 
        if (sctx->b.chip_class >= CIK) {
                assert(lds_size <= 65536);
@@ -178,7 +178,7 @@ static void si_emit_derived_tess_state(struct si_context *sctx,
        if (sctx->b.chip_class == CIK && sctx->b.family != CHIP_HAWAII)
                radeon_set_sh_reg(cs, R_00B52C_SPI_SHADER_PGM_RSRC2_LS, ls_rsrc2);
        radeon_set_sh_reg_seq(cs, R_00B528_SPI_SHADER_PGM_RSRC1_LS, 2);
-       radeon_emit(cs, ls->current->ls_rsrc1);
+       radeon_emit(cs, ls->current->rsrc1);
        radeon_emit(cs, ls_rsrc2);
 
        /* Compute userdata SGPRs. */
index 7f6511cf01be21459324496cc3c88a30a3c0a27e..ca6b4be3b0b258f0732e083bad96ad3a02360802 100644 (file)
@@ -121,11 +121,11 @@ static void si_shader_ls(struct si_shader *shader)
        si_pm4_set_reg(pm4, R_00B520_SPI_SHADER_PGM_LO_LS, va >> 8);
        si_pm4_set_reg(pm4, R_00B524_SPI_SHADER_PGM_HI_LS, va >> 40);
 
-       shader->ls_rsrc1 = S_00B528_VGPRS((shader->num_vgprs - 1) / 4) |
+       shader->rsrc1 = S_00B528_VGPRS((shader->num_vgprs - 1) / 4) |
                           S_00B528_SGPRS((num_sgprs - 1) / 8) |
                           S_00B528_VGPR_COMP_CNT(vgpr_comp_cnt) |
                           S_00B528_DX10_CLAMP(shader->dx10_clamp_mode);
-       shader->ls_rsrc2 = S_00B52C_USER_SGPR(num_user_sgprs) |
+       shader->rsrc2 = S_00B52C_USER_SGPR(num_user_sgprs) |
                           S_00B52C_SCRATCH_EN(shader->scratch_bytes_per_wave > 0);
 }