OSDN Git Service

anv/batch_chain: Improve write_reloc
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 2 Nov 2016 17:42:45 +0000 (10:42 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 9 Nov 2016 23:32:31 +0000 (23:32 +0000)
commitd22958eecb09e1abce115b959314640c23c39df0
tree57b34fa59426ab7e81d23992a0d8d6bcf64afc22
parentab3aeab2972cb4f36ec99e42ca7dec80f0d27043
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>
(cherry picked from commit 095c48a496fccdd95821ee426d70674bc75dc6af)
src/intel/vulkan/anv_batch_chain.c