st/mesa: Fix inverted polygon stipple condition
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Oct 2019 22:20:19 +0000 (15:20 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Oct 2019 23:18:13 +0000 (16:18 -0700)
Fixes Piglit's gl-2.1-polygon-stipple-fs on iris.

Fixes: 63f24c3c016 ("gallium: Enable MESA_framebuffer_flip_y")
Reviewed-by: Fritz Koenig <frkoenig@google.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/mesa/state_tracker/st_atom_stipple.c

index 3437553c154f7ca38b2c79026ce27aae62288820..86a4247f3269d4327b8c52c3f015b4912ba999f9 100644 (file)
@@ -74,7 +74,7 @@ st_update_polygon_stipple( struct st_context *st )
 
       memcpy(st->state.poly_stipple, ctx->PolygonStipple, sz);
 
-      if (ctx->DrawBuffer->FlipY) {
+      if (!ctx->DrawBuffer->FlipY) {
          memcpy(newStipple.stipple, ctx->PolygonStipple, sizeof(newStipple.stipple));
       } else {
          invert_stipple(newStipple.stipple, ctx->PolygonStipple,