FWIW I'm still baffled by this shader bit.
NaNs are absolutely required to be generated and handled as NaNs in
shaders (albeit conversion to ints will make them 0) by DX10 (there's
plenty of tests which actually check for this). And generally, you
really want to generate NaNs for newer glsl versions too I think, albeit
this may not be strictly required (of course, currently you can't
distinguish this in tgsi, but particularly gs/ls/hs will always be newer
glsl versions).
So I'm REALLY wondering why there's a shader bit named that way...

Roland

Am 11.10.2015 um 03:11 schrieb Marek Olšák:
> From: Marek Olšák <marek.ol...@amd.com>
> 
> They're disabled for all other shaders except compute, but I forgot
> to do this for tess stages.
> ---
>  src/gallium/drivers/radeonsi/si_state_shaders.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c 
> b/src/gallium/drivers/radeonsi/si_state_shaders.c
> index f673388..2489101 100644
> --- a/src/gallium/drivers/radeonsi/si_state_shaders.c
> +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
> @@ -122,7 +122,8 @@ static void si_shader_ls(struct si_shader *shader)
>  
>       shader->ls_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_VGPR_COMP_CNT(vgpr_comp_cnt) |
> +                        S_00B528_DX10_CLAMP(shader->dx10_clamp_mode);
>       shader->ls_rsrc2 = S_00B52C_USER_SGPR(num_user_sgprs) |
>                          S_00B52C_SCRATCH_EN(shader->scratch_bytes_per_wave > 
> 0);
>  }
> @@ -154,7 +155,8 @@ static void si_shader_hs(struct si_shader *shader)
>       si_pm4_set_reg(pm4, R_00B424_SPI_SHADER_PGM_HI_HS, va >> 40);
>       si_pm4_set_reg(pm4, R_00B428_SPI_SHADER_PGM_RSRC1_HS,
>                      S_00B428_VGPRS((shader->num_vgprs - 1) / 4) |
> -                    S_00B428_SGPRS((num_sgprs - 1) / 8));
> +                    S_00B428_SGPRS((num_sgprs - 1) / 8) |
> +                    S_00B428_DX10_CLAMP(shader->dx10_clamp_mode));
>       si_pm4_set_reg(pm4, R_00B42C_SPI_SHADER_PGM_RSRC2_HS,
>                      S_00B42C_USER_SGPR(num_user_sgprs) |
>                      S_00B42C_SCRATCH_EN(shader->scratch_bytes_per_wave > 0));
> 

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to