[Mesa-dev] [PATCH 05/13] r600g: fix edge flags and layered rendering on R600-R700

Alex Deucher alexdeucher at gmail.com
Mon Apr 21 08:22:26 PDT 2014


On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> We forgot to set these bits.
>
> Cc: 10.1 mesa-stable at lists.freedesktop.org

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/gallium/drivers/r600/r600_state.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
> index 8053ff4..99206cf 100644
> --- a/src/gallium/drivers/r600/r600_state.c
> +++ b/src/gallium/drivers/r600/r600_state.c
> @@ -2568,8 +2568,10 @@ void r600_update_vs_state(struct pipe_context *ctx, struct r600_pipe_shader *sha
>                 S_02881C_VS_OUT_CCDIST0_VEC_ENA((rshader->clip_dist_write & 0x0F) != 0) |
>                 S_02881C_VS_OUT_CCDIST1_VEC_ENA((rshader->clip_dist_write & 0xF0) != 0) |
>                 S_02881C_VS_OUT_MISC_VEC_ENA(rshader->vs_out_misc_write) |
> -               S_02881C_USE_VTX_VIEWPORT_INDX(rshader->vs_out_viewport) |
> -               S_02881C_USE_VTX_POINT_SIZE(rshader->vs_out_point_size);
> +               S_02881C_USE_VTX_POINT_SIZE(rshader->vs_out_point_size) |
> +               S_02881C_USE_VTX_EDGE_FLAG(rshader->vs_out_edgeflag) |
> +               S_02881C_USE_VTX_RENDER_TARGET_INDX(rshader->vs_out_layer) |
> +               S_02881C_USE_VTX_VIEWPORT_INDX(rshader->vs_out_viewport);
>  }
>
>  static unsigned r600_conv_prim_to_gs_out(unsigned mode)
> --
> 1.8.3.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list