anv: fix incorrect VMA alignment for CCS main surfaces
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 10 Dec 2019 11:49:49 +0000 (03:49 -0800)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 10 Dec 2019 16:06:54 +0000 (16:06 +0000)
commit5fdea9f40182002899fc941bfb8c3f36ed5366a1
tree675c0772b905aaa8d49411a81954a5533be55d71
parentdcfe1903c3f501429851d0278ba78742e907355b
anv: fix incorrect VMA alignment for CCS main surfaces

Maybe finer way of dealing with this requirement would be to increase
the number of pdevice->memory.types[] to add a category for special
alignment cases.

Meanwhile this fixes the problem of CCS surface alignment and it's
probably not going to cause issues given the size of our address
space.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 6af8a4acc4a4 ("anv: Add aux-map translation for gen12+")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c