anv: Drop the instance pointer from anv_device
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 18 Jan 2020 05:05:13 +0000 (23:05 -0600)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jan 2020 22:08:52 +0000 (22:08 +0000)
commit78ff747408379387f72fca802f3065915e496f4c
tree050dc7326ea722fa387effb65964601640bf052a
parentf0519c9cf9fdccf93b0c3b81b47911de2422b285
anv: Drop the instance pointer from anv_device

There are very few times when we actually want to fetch the instance
from the anv_device.  We can put up with a bit of pain there in exchange
for strongly discouraging people from doing this in general.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3461>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_pipeline_cache.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_pipeline.c