mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
iris: fix a scissor bug
This commit is contained in:
parent
0707ff3f2f
commit
e0eac28bd4
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue