Commit b453b29f authored by Kenneth Graunke's avatar Kenneth Graunke

st/mesa: Fix inverted polygon stipple condition

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

Fixes: 63f24c3c ("gallium: Enable MESA_framebuffer_flip_y")
Reviewed-by: Fritz Koenig's avatarFritz Koenig <frkoenig@google.com>
Reviewed-by: Kristian H. Kristensen's avatarKristian H. Kristensen <hoegsberg@google.com>
parent 63f24c3c
Pipeline #69213 failed with stages
in 14 minutes and 19 seconds
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment