diff options
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 55ed7be647a..f4d7c698a6c 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -5203,6 +5203,8 @@ iris_upload_render_state(struct iris_context *ice, lrm.MemoryAddress = ro_bo(iris_resource_bo(so->offset.res), so->offset.offset); } + if (so->base.buffer_offset) + iris_math_add32_gpr0(ice, batch, -so->base.buffer_offset); iris_math_div32_gpr0(ice, batch, so->stride); _iris_emit_lrr(batch, _3DPRIM_VERTEX_COUNT, CS_GPR(0)); |