mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
iris: Don't check VF address high bits when there is no buffer.
If there is no buffer, then it doesn't matter. Leave the old stale high bits in place (for next time) and don't bother invalidating. Cuts 5.6% of the flushes in the Civilization VI demo on Kabylake GT2.
This commit is contained in:
parent
ecc500398f
commit
db8f57a5cb
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ blorp_vf_invalidate_for_vb_48b_transitions(struct blorp_batch *blorp_batch,
|
|||
struct iris_bo *bo = addrs[i].buffer;
|
||||
uint16_t high_bits = bo ? bo->gtt_offset >> 32u : 0;
|
||||
|
||||
if (high_bits != ice->state.last_vbo_high_bits[i]) {
|
||||
if (bo && high_bits != ice->state.last_vbo_high_bits[i]) {
|
||||
need_invalidate = true;
|
||||
ice->state.last_vbo_high_bits[i] = high_bits;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue