summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r--src/gallium/drivers/iris/iris_state.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 115b2d34655..8a86f2f9061 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -976,7 +976,7 @@ iris_bind_rasterizer_state(struct pipe_context *ctx, void *state)
cso_changed(clip_halfz))
ice->state.dirty |= IRIS_DIRTY_CC_VIEWPORT;
- if (cso_changed(sprite_coord_enable))
+ if (cso_changed(sprite_coord_enable) || cso_changed(light_twoside))
ice->state.dirty |= IRIS_DIRTY_SBE;
}
@@ -3536,10 +3536,7 @@ iris_upload_render_state(struct iris_context *ice,
iris_emit_merge(batch, cso->wm, dynamic_wm, ARRAY_SIZE(cso->wm));
}
- if (1) {
- // XXX: 3DSTATE_SBE, 3DSTATE_SBE_SWIZ
- // -> iris_raster_state (point sprite texture coordinate origin)
- // -> bunch of shader state...
+ if (dirty & IRIS_DIRTY_SBE) {
iris_emit_sbe(batch, ice);
}