radeonsi: remove redundant si_shader_selector::max_gs_stream
[mesa.git] / src / mesa / swrast_setup / ss_triangle.c
index b92c20be2b751c8f2ba3af682e13d51181c83fec..d3a0e23109ee939666b3aa58faad707a0e938d8c 100644 (file)
@@ -29,6 +29,8 @@
 #include "main/glheader.h"
 #include "main/macros.h"
 #include "main/mtypes.h"
+#include "main/stencil.h"
+#include "main/state.h"
 
 #include "tnl/t_context.h"
 
@@ -255,7 +257,7 @@ void _swsetup_choose_trifuncs( struct gl_context *ctx )
     */
    if (ctx->Polygon.FrontMode != GL_FILL ||
        ctx->Polygon.BackMode != GL_FILL ||
-       (ctx->Stencil.Enabled && ctx->Stencil._TestTwoSide))
+       (ctx->Stencil.Enabled && _mesa_stencil_is_two_sided(ctx)))
       ind |= SS_UNFILLED_BIT;
 
    tnl->Driver.Render.Triangle = tri_tab[ind];