mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
iris: hack around samples confusion
This commit is contained in:
parent
2c15f38a29
commit
3aa1fcc65a
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue