mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
i965: Set MOCS on NULL stream output buffers
We'd like to add safeguards against accidental use of MOCS 0 (uncached), which can have large performance implications. One case where we use MOCS of 0 is disabled stream output targets, MOCS shouldn't matter, as there's no actual buffer to be cached. That said, it should be harmless to set MOCS for these null stream output buffers; we can just assume a MOCS for generic internal buffers. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13480>
This commit is contained in:
parent
59f53b07c4
commit
eaaa3c7e04
1 changed files with 1 additions and 0 deletions
|
|
@ -3689,6 +3689,7 @@ genX(upload_3dstate_so_buffers)(struct brw_context *brw)
|
|||
if (!bufferobj || !size) {
|
||||
brw_batch_emit(brw, GENX(3DSTATE_SO_BUFFER), sob) {
|
||||
sob.SOBufferIndex = i;
|
||||
sob.MOCS = brw_mocs(&brw->isl_dev, NULL);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue