mesa/src
Kenneth Graunke 92f01fc5f9 i965: Emit VF cache invalidates for 48-bit addressing bugs with softpin.
We'd like to start using soft-pin to assign BO addresses up front, and
never move them again.  Our previous plan for dealing with 48-bit VF
cache bugs was to relocate vertex buffers to the low 4GB, so we'd never
have addresses that alias in the low 32 bits.  But that requires moving
buffers dynamically.

This patch tracks the last seen BO address for each vertex/index buffer,
and emits a VF cache invalidate if the high bits change.  (Ideally, we
won't hit this case very often.)  This should work for the soft-pin
case, but unfortunately won't work in the relocation case, as we don't
actually know the addresses.  So, we have to use both methods.

v2: Mention that the cache uses a <VertexBufferIndex, Address> tuple
    more explicitly (suggested by Scott).  Mention "single batch" too
    (suggested by Chris).

Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
2018-05-22 10:02:28 -07:00
..
amd radv: fix computation of user sgprs for 32-bit pointers 2018-05-22 15:53:29 +02:00
broadcom v3d: Add support for glSampleMask / glSampleCoverage. 2018-05-17 15:09:46 +01:00
compiler nir: Implement optional b2f->iand lowering 2018-05-18 22:44:09 +02:00
egl android: change include "cutils/log.h" to "log/log.h" on Android API >=26 2018-05-14 08:08:31 +03:00
gallium v3d: Include v3d_drm.h path. 2018-05-21 11:15:47 -07:00
gbm gbm: remove never-implemented function 2018-03-28 16:25:52 +01:00
getopt
glx meson: allow empty sources when using link_whole 2018-04-24 14:08:15 -07:00
gtest autotools: include meson build files in tarball 2018-01-19 16:30:51 -08:00
hgl meson: Add Haiku platform support v4 2018-02-16 16:56:34 -06:00
intel intel/eu: Set EXECUTE_1 when setting the rounding mode in cr0 2018-05-22 09:53:23 -07:00
loader dri3: Stricter SBC wraparound handling 2018-05-22 17:59:53 +02:00
mapi mesa: drop GL_EXT_polygon_offset support 2018-05-18 09:21:24 +10:00
mesa i965: Emit VF cache invalidates for 48-bit addressing bugs with softpin. 2018-05-22 10:02:28 -07:00
util util/set: add a set_clear function 2018-05-04 10:13:33 -07:00
vulkan vulkan/wsi: Only use LINEAR modifier for prime if supported. 2018-05-08 15:47:16 +02:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am vulkan: Drop vk_android_native_buffer.xml 2018-04-10 19:29:49 -07:00
meson.build meson: only build mesa_st tests when build-tests is true 2018-04-24 14:08:15 -07:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00