anv: move canonical_address calculation into a separate function
authorScott D Phillips <scott.d.phillips@intel.com>
Thu, 15 Mar 2018 19:53:05 +0000 (12:53 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 28 May 2018 02:24:33 +0000 (19:24 -0700)
commit4714784daeb4df97fa82cfcf8f566661cc4ff4a4
treed17453772751e10221f4787d90e314fae356bad9
parent1aec4a07d45164fdb9ba4bc97f330a0e217e3bef
anv: move canonical_address calculation into a separate function

A later patch will make use of this in other places. Also, remove
dependency on undefined behavior of left-shifting a signed value.

v2: - move function into a separate header (Chris)
v3: (by Ken) Add new header to the various build systems.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/Makefile.sources
src/intel/common/gen_gem.h [new file with mode: 0644]
src/intel/common/meson.build
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_private.h