diff options
author | Chad Versace <chad.versace@intel.com> | 2015-07-09 19:38:39 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2015-07-10 17:35:52 -0700 |
commit | c7f512721c5b835e255e82b0a2aa7f0c40053ab7 (patch) | |
tree | c276ebb3f15edb2e0b3cf9eba45ad845d4a0b21f | |
parent | 8cda3e9b1bc0df5b2acfb8e3afac854a8d0defe7 (diff) | |
download | mesa-c7f512721c5b835e255e82b0a2aa7f0c40053ab7.tar.gz |
vk/gem: Change signature of anv_gem_get_aperture()
Replace the anv_device parameter with anv_physical_device, because this needs
querying before vkCreateDevice.
-rw-r--r-- | src/vulkan/gem.c | 4 | ||||
-rw-r--r-- | src/vulkan/private.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/vulkan/gem.c b/src/vulkan/gem.c index 7bc5e49a810..db0d29f42c7 100644 --- a/src/vulkan/gem.c +++ b/src/vulkan/gem.c @@ -230,13 +230,13 @@ anv_gem_destroy_context(struct anv_device *device, int context) } int -anv_gem_get_aperture(struct anv_device *device, uint64_t *size) +anv_gem_get_aperture(struct anv_physical_device *physical_dev, uint64_t *size) { struct drm_i915_gem_get_aperture aperture; int ret; VG_CLEAR(aperture); - ret = anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_GET_APERTURE, &aperture); + ret = anv_ioctl(physical_dev->fd, DRM_IOCTL_I915_GEM_GET_APERTURE, &aperture); if (ret == -1) return -1; diff --git a/src/vulkan/private.h b/src/vulkan/private.h index b4f7e3f7a45..38679edaa2b 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -448,7 +448,7 @@ int anv_gem_set_tiling(struct anv_device *device, int gem_handle, int anv_gem_create_context(struct anv_device *device); int anv_gem_destroy_context(struct anv_device *device, int context); int anv_gem_get_param(int fd, uint32_t param); -int anv_gem_get_aperture(struct anv_device *device, uint64_t *size); +int anv_gem_get_aperture(struct anv_physical_device *physical_dev, uint64_t *size); int anv_gem_handle_to_fd(struct anv_device *device, int gem_handle); int anv_gem_fd_to_handle(struct anv_device *device, int fd); int anv_gem_userptr(struct anv_device *device, void *mem, size_t size); |