mesa/src
Kenneth Graunke 084a1cdbb7 blorp: Add blorp_get_surface_address to the driver interface.
Currently, BLORP expects drivers to provide two functions for dealing
with buffers: blorp_emit_reloc and blorp_surface_reloc.  Both record a
relocation and combine the BO address and offset into a full 64-bit
address.  Traditionally, blorp_surface_reloc has written that combined
address to an implicitly-known buffer where surface states are stored.
(In contrast, blorp_emit_reloc returns the value.)

The upcoming Iris driver stores surface states in multiple buffers,
which makes it impossible for blorp_surface_reloc to write the combined
address - it only takes an offset, not the actual buffer to write to.

This commit adds a third function, blorp_get_surface_address, which
combines and returns an address, which is then passed to ISL's surface
state fill functions.  Softpin-only drivers can return a real address
here and skip writing it in blorp_surface_reloc.  Relocation-based
drivers are have options.  They can simply return 0 from the new
function, and continue writing the address from blorp_surface_reloc.
Or, they can return a presumed address from blorp_get_surface_address,
and have other relocation processing write the real value later.

For now, i965 and anv simply return 0.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2019-01-10 20:51:53 -08:00
..
amd radv: remove a few more unnecessary KHR suffixes 2019-01-10 16:53:44 +00:00
broadcom nir: Add nir_lower_tex support for Broadcom's swizzled TG4 results. 2019-01-08 13:03:41 -08:00
compiler glsl: Make invariant outputs in ES fragment shader not to cause error 2019-01-11 13:01:11 +11:00
egl egl/haiku: Fix reference to disp vs dpy 2019-01-02 13:45:09 +00:00
freedreno freedreno: make cmdstream bo's read-only to GPU 2019-01-10 14:21:39 -05:00
gallium docs: fix gallium screen cap docs 2019-01-10 21:44:09 -05:00
gbm meson: Add tests to suites 2018-11-20 09:09:22 -08:00
getopt
glx glx/test: meson: assorted include fixes 2018-12-12 19:24:14 +00:00
gtest meson: hide warnings from external project gtest 2018-10-31 18:20:25 +00:00
hgl
intel blorp: Add blorp_get_surface_address to the driver interface. 2019-01-10 20:51:53 -08:00
loader dri3: initialize adaptive_sync as false before configQueryb 2019-01-08 08:15:07 +02:00
mapi glapi: fixup EXT_multisampled_render_to_texture dispatch 2018-12-10 15:09:07 -08:00
mesa blorp: Add blorp_get_surface_address to the driver interface. 2019-01-10 20:51:53 -08:00
util drirc: Initial blacklist for adaptive sync 2018-12-28 16:44:27 +01:00
vulkan wsi: drop unneeded KHR suffix 2019-01-08 18:48:03 +00:00
Makefile.am freedreno: move drm to common location 2018-11-27 15:44:02 -05:00
meson.build TODO: glx: meson: build dri based glx tests, only with -Dglx=dri 2018-12-12 17:47:36 +00:00
SConscript scons: Remove gles option. 2018-10-19 16:50:26 +01:00