mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
iris: allow binding a null vertex buffer
PBO upload apparently does this...
This commit is contained in:
parent
aef1ba5ce4
commit
317ba8796f
1 changed files with 7 additions and 3 deletions
|
|
@ -2259,9 +2259,13 @@ iris_set_vertex_buffers(struct pipe_context *ctx,
|
|||
vb.MOCS = MOCS_WB;
|
||||
vb.AddressModifyEnable = true;
|
||||
vb.BufferPitch = buffers[i].stride;
|
||||
vb.BufferSize = res->bo->size;
|
||||
vb.BufferStartingAddress =
|
||||
ro_bo(NULL, res->bo->gtt_offset + buffers[i].buffer_offset);
|
||||
if (res) {
|
||||
vb.BufferSize = res->bo->size;
|
||||
vb.BufferStartingAddress =
|
||||
ro_bo(NULL, res->bo->gtt_offset + buffers[i].buffer_offset);
|
||||
} else {
|
||||
vb.NullVertexBuffer = true;
|
||||
}
|
||||
}
|
||||
|
||||
vb_pack_dest += GENX(VERTEX_BUFFER_STATE_length);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue