iris: fix clip flagging on fb changes
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 5 Jul 2018 09:41:52 +0000 (02:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index fa80c5d4db9c1aa33158b5f9ed555fea96f15d85..df724cedcee87fed925683280dba04afe5a3940a 100644 (file)
@@ -1321,7 +1321,7 @@ iris_set_framebuffer_state(struct pipe_context *ctx,
       ice->state.dirty |= IRIS_DIRTY_BLEND_STATE;
    }
 
-   if ((cso->layers == 0) == (state->layers == 0)) {
+   if ((cso->layers == 0) != (state->layers == 0)) {
       ice->state.dirty |= IRIS_DIRTY_CLIP;
    }