anv: Don't presume to know what address is in a surface relocation
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 1 Nov 2016 14:21:00 +0000 (07:21 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 9 Nov 2016 19:30:57 +0000 (11:30 -0800)
commitba1eea4f957ca068eceea121bc3a70e2fe07873d
tree6e36ddde371448622a668f751b1d0691c5cb4a1b
parentdb9f4b2a2bbf1aff3c6c878735495fc7accbb11e
anv: Don't presume to know what address is in a surface relocation

Because our relocation processing happens at EndCommandBuffer time and
because RENDER_SURFACE_STATE objects may be shared by batches, we really
have no clue whatsoever what address is actually written to the relocation
offset in the BO.  We need to stop making such claims to the kernel and
just let it relocate for us.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_private.h