diff options
author | Kenneth Graunke <[email protected]> | 2018-04-07 00:58:07 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:05 -0800 |
commit | e0eac28bd4287f4ed56b57ca9acb4bc07961a465 (patch) | |
tree | ec4a97a51ab599953461c4ee2f6b83adca10e929 /src | |
parent | 0707ff3f2f31d9b72aebd169e9464c5fbfaa00ca (diff) |
iris: fix a scissor bug
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 3 |
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); |