mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
crocus: Set MOCS for index buffers on Gen6+
For some reason we were only setting them on Gen8+. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
This commit is contained in:
parent
be0d22a9ce
commit
de99b5502b
1 changed files with 3 additions and 1 deletions
|
|
@ -7820,10 +7820,12 @@ crocus_upload_render_state(struct crocus_context *ice,
|
|||
ib.IndexFormat = draw->index_size >> 1;
|
||||
ib.BufferStartingAddress = ro_bo(bo, offset);
|
||||
#if GFX_VER >= 8
|
||||
ib.MOCS = crocus_mocs(bo, &batch->screen->isl_dev);
|
||||
ib.BufferSize = bo->size - offset;
|
||||
#else
|
||||
ib.BufferEndingAddress = ro_bo(bo, offset + size - 1);
|
||||
#endif
|
||||
#if GFX_VER >= 6
|
||||
ib.MOCS = crocus_mocs(bo, &batch->screen->isl_dev);
|
||||
#endif
|
||||
}
|
||||
ice->state.index_buffer.size = size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue