diff options
author | Kenneth Graunke <[email protected]> | 2018-07-24 10:59:10 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:07 -0800 |
commit | 3aa1fcc65a51c0e15d18c608da9b4f3009d4ab2d (patch) | |
tree | 78cda4a809824926a929d61b938a121707bc9463 | |
parent | 2c15f38a29a1675d4f6ec5c3bc5306df6cf7fe24 (diff) |
iris: hack around samples confusion
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index aa92b572675..10fcf9da1db 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1365,7 +1365,9 @@ iris_set_framebuffer_state(struct pipe_context *ctx, struct isl_device *isl_dev = &screen->isl_dev; struct pipe_framebuffer_state *cso = &ice->state.framebuffer; - if (cso->samples != state->samples) { + unsigned samples = util_framebuffer_get_num_samples(state); + + if (cso->samples != samples) { ice->state.dirty |= IRIS_DIRTY_MULTISAMPLE; } @@ -1378,6 +1380,7 @@ iris_set_framebuffer_state(struct pipe_context *ctx, } util_copy_framebuffer_state(cso, state); + cso->samples = samples; struct iris_depth_buffer_state *cso_z = &ice->state.genx->depth_buffer; |