intel/gem: Return length from intel_i915_query_alloc

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13866>
This commit is contained in:
Jordan Justen
2021-10-30 03:25:09 -07:00
committed by Marge Bot
parent 83da7dc487
commit 695ba644ab
6 changed files with 12 additions and 6 deletions

View File

@@ -424,5 +424,5 @@ anv_gem_reg_read(int fd, uint32_t offset, uint64_t *result)
struct drm_i915_query_engine_info *
anv_gem_get_engine_info(int fd)
{
return intel_i915_query_alloc(fd, DRM_I915_QUERY_ENGINE_INFO);
return intel_i915_query_alloc(fd, DRM_I915_QUERY_ENGINE_INFO, NULL);
}