summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-04-07 00:58:07 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:05 -0800
commite0eac28bd4287f4ed56b57ca9acb4bc07961a465 (patch)
treeec4a97a51ab599953461c4ee2f6b83adca10e929 /src
parent0707ff3f2f31d9b72aebd169e9464c5fbfaa00ca (diff)
iris: fix a scissor bug
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index a0f6a685b43..12eb57a821b 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -2253,7 +2253,8 @@ iris_upload_render_state(struct iris_context *ice,
}
if (dirty & IRIS_DIRTY_SCISSOR) {
- uint32_t scissor_offset =
+ // XXX: allocate at set_scissor time?
+ uint32_t scissor_offset = ice->state.num_scissors == 0 ? 0 :
emit_state(batch, ice->state.dynamic_uploader, ice->state.scissors,
sizeof(struct pipe_scissor_state) *
ice->state.num_scissors, 32);