intel/blorp: Emit VF cache invalidates for 48-bit bugs with softpin.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 31 May 2018 23:39:16 +0000 (16:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Jun 2018 02:45:09 +0000 (19:45 -0700)
commit74259b98aab010d3062c5903770dc3067665b59e
tree9229583cc2b30b8b7d4a05286e05f2c613f7467e
parent2a74296f24ba15b14602286a680ca5f344a71059
intel/blorp: Emit VF cache invalidates for 48-bit bugs with softpin.

commit 92f01fc5f914fd500497d0c3aed75f3ac8dc054d made i965 start emitting
VF cache invalidates when the high bits of vertex buffers change.  But
we were not tracking vertex buffers emitted by BLORP.  This was papered
over by a mistake where I emitted VF cache invalidates all the time,
which Chris fixed in commit 3ac5fbadfd8644d30fce9ff267cb811ad157996a.

This patch adds a new hook which allows the driver to track addresses
and request a VF cache invalidate as appropriate.

v2: Make the driver do the PIPE_CONTROL so it can apply workarounds
    (caught by Jason Ekstrand).  Rebase on anv bug fix.
v3: Don't screw up the boolean (caught by Jason Ekstrand).

Fixes: 92f01fc5f914 ("i965: Emit VF cache invalidates for 48-bit addressing bugs with softpin.")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/blorp/blorp_genX_exec.h
src/intel/vulkan/genX_blorp_exec.c
src/mesa/drivers/dri/i965/genX_blorp_exec.c