diff options
author | Kenneth Graunke <[email protected]> | 2019-10-08 15:20:19 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-10-08 16:18:13 -0700 |
commit | b453b29fc780a91eea3266973fcc3ab85af97f45 (patch) | |
tree | 15f5d86e7378a4f0fa852f23ad0cfd7f59294fe4 /src/mesa | |
parent | 63f24c3c016bec14bc549b71475ea0f7f7fdf893 (diff) |
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 <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_atom_stipple.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |