}
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;
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);