anv/batch_chain: Improve write_reloc
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 2 Nov 2016 17:42:45 +0000 (10:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 9 Nov 2016 19:31:06 +0000 (11:31 -0800)
commit095c48a496fccdd95821ee426d70674bc75dc6af
tree9d59361d2b7d250d5b964c1fbbe05e43ba1153eb
parentd46bfb629725a5b8c327f3bd7f76d04f5ae262aa
anv/batch_chain: Improve write_reloc

The old version wasn't properly handling large addresses where we have to
sign-extend to get it into the "canonical form" expected by the hardware.
Also, the new version is capable of doing a clflush of the newly written
reloc if requested.

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