mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 15:40:11 +01:00
intel/batch-decoder: fix vertex buffer size calculation for gen<8
It should be incremented by one according to
how it is calculated by 'emit_vertex_buffer_state':
"\#if GEN_GEN < 8
.BufferAccessType = step_rate ? INSTANCEDATA : VERTEXDATA,
.InstanceDataStepRate = step_rate,
\#if GEN_GEN >= 5
.EndAddress = ro_bo(bo, end_offset - 1),
\#endif
\#endif"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109449
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
69e9440367
commit
db39a44f10
1 changed files with 1 additions and 1 deletions
|
|
@ -409,7 +409,7 @@ handle_3dstate_vertex_buffers(struct gen_batch_decode_ctx *ctx,
|
|||
ready = true;
|
||||
} else if (strcmp(vbs_iter.name, "End Address") == 0) {
|
||||
if (vb.map && vbs_iter.raw_value >= vb.addr)
|
||||
vb_size = vbs_iter.raw_value - vb.addr;
|
||||
vb_size = (vbs_iter.raw_value + 1) - vb.addr;
|
||||
else
|
||||
vb_size = 0;
|
||||
ready = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue