anv: pass the fd directly to anv_gem_reg_read()
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 15 May 2019 10:20:06 +0000 (11:20 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 May 2020 21:49:10 +0000 (21:49 +0000)
commite27f311c859652e11d5e793a7041efc50cdbb2b3
treec73b492cf148f16823d0d2cdff44c09742cc0d44
parent6bf40c28c9bf2e59b34ee7d7ce9e2698a57afba2
anv: pass the fd directly to anv_gem_reg_read()

This allows its use without the need for an anv_device.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2797>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_gem.c
src/intel/vulkan/anv_gem_stubs.c
src/intel/vulkan/anv_private.h