Mesa (master): st/mesa: Fix inverted polygon stipple condition

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 8 23:19:17 UTC 2019


Module: Mesa
Branch: master
Commit: b453b29fc780a91eea3266973fcc3ab85af97f45
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b453b29fc780a91eea3266973fcc3ab85af97f45

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue Oct  8 15:20:19 2019 -0700

st/mesa: Fix inverted polygon stipple condition

Fixes Piglit's gl-2.1-polygon-stipple-fs on iris.

Fixes: 63f24c3c016 ("gallium: Enable MESA_framebuffer_flip_y")
Reviewed-by: Fritz Koenig <frkoenig at google.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>

---

 src/mesa/state_tracker/st_atom_stipple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_atom_stipple.c b/src/mesa/state_tracker/st_atom_stipple.c
index 3437553c154..86a4247f326 100644
--- a/src/mesa/state_tracker/st_atom_stipple.c
+++ b/src/mesa/state_tracker/st_atom_stipple.c
@@ -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,




More information about the mesa-commit mailing list