diff options
author | Kenneth Graunke <[email protected]> | 2019-03-05 01:21:53 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-03-07 17:08:07 -0800 |
commit | 335726fdaca2751a12c9cb515cdfd34b51e00049 (patch) | |
tree | e219d4b7692eb7c9b46399ebbb4d0aa1ba8d0c42 /src/gallium/auxiliary/tgsi | |
parent | b0c214cceeada1e5d4afa89b1ce819c79d8b8c5b (diff) |
iris: Spruce up "are we using this engine?" checks for flushing
We were using batch->contains_draw as a proxy for "are we even using
this engine?" That isn't quite right, because it only counts regular
draws. BLORP operations may have also rendered to a resource, which
needs to trigger flushing. To check for this, we also see if the
render and sometimes depth caches are non-empty.
We can also drop the "but there might already be stale data in the
cache even if we haven't emitted any commands yet" concern in the
comments. The kernel flushes caches between batches.
This may not be great but it's at least better than what was there.
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
0 files changed, 0 insertions, 0 deletions