intel: Store the aperture size in devinfo.
We will later use the devinfo from iris_bufmgr, where we don't have access to the screen pointer. And since we are moving it, we can reuse it in Anv and i965. v2: return error code and check for it on Anv (Lionel). v3: Remove anv_gem_get_aperture() from anv_private.h and stubs (Lionel). Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5043>
This commit is contained in:

committed by
Marge Bot

parent
a887ad7c84
commit
bb3545a6ee
@@ -389,20 +389,6 @@ anv_gem_get_context_param(int fd, int context, uint32_t param, uint64_t *value)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
anv_gem_get_aperture(int fd, uint64_t *size)
|
||||
{
|
||||
struct drm_i915_gem_get_aperture aperture = { 0 };
|
||||
|
||||
int ret = gen_ioctl(fd, DRM_IOCTL_I915_GEM_GET_APERTURE, &aperture);
|
||||
if (ret == -1)
|
||||
return -1;
|
||||
|
||||
*size = aperture.aper_available_size;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
anv_gem_gpu_get_reset_stats(struct anv_device *device,
|
||||
uint32_t *active, uint32_t *pending)
|
||||
|
Reference in New Issue
Block a user