mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
svga: Don't do culling while the software pipeline is active.
It does it for us, and additionally introduces potentially back-facing triangles.
This commit is contained in:
parent
842351dd76
commit
7941d31ee6
1 changed files with 11 additions and 2 deletions
|
|
@ -192,15 +192,24 @@ static int emit_rss( struct svga_context *svga,
|
|||
}
|
||||
|
||||
|
||||
if (dirty & SVGA_NEW_RAST)
|
||||
if (dirty & (SVGA_NEW_RAST | SVGA_NEW_NEED_PIPELINE))
|
||||
{
|
||||
const struct svga_rasterizer_state *curr = svga->curr.rast;
|
||||
unsigned cullmode = curr->cullmode;
|
||||
|
||||
/* Shademode: still need to rearrange index list to move
|
||||
* flat-shading PV first vertex.
|
||||
*/
|
||||
EMIT_RS( svga, curr->shademode, SHADEMODE, fail );
|
||||
EMIT_RS( svga, curr->cullmode, CULLMODE, fail );
|
||||
|
||||
/* Don't do culling while the software pipeline is active. It
|
||||
* does it for us, and additionally introduces potentially
|
||||
* back-facing triangles.
|
||||
*/
|
||||
if (svga->state.sw.need_pipeline)
|
||||
cullmode = SVGA3D_FACE_NONE;
|
||||
|
||||
EMIT_RS( svga, cullmode, CULLMODE, fail );
|
||||
EMIT_RS( svga, curr->scissortestenable, SCISSORTESTENABLE, fail );
|
||||
EMIT_RS( svga, curr->multisampleantialias, MULTISAMPLEANTIALIAS, fail );
|
||||
EMIT_RS( svga, curr->lastpixel, LASTPIXEL, fail );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue