r600g: fix edge flags and layered rendering on R600-R700
authorMarek Olšák <marek.olsak@amd.com>
Sat, 19 Apr 2014 15:21:57 +0000 (17:21 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 24 Apr 2014 23:33:12 +0000 (01:33 +0200)
We forgot to set these bits.

Cc: 10.1 mesa-stable@lists.freedesktop.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_state.c

index 8053ff43ba882444f2e885e4201da7a0740f0df6..99206cf4c0e01e92978d1c36a317ef0bf9652be3 100644 (file)
@@ -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)