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:
Kenneth Graunke 2021-10-20 14:55:01 -07:00 committed by Marge Bot
parent be0d22a9ce
commit de99b5502b

View file

@ -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;