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
+1 -1
View File
@@ -1528,7 +1528,7 @@ static bool
query_topology(struct intel_device_info *devinfo, int fd)
{
struct drm_i915_query_topology_info *topo_info =
intel_i915_query_alloc(fd, DRM_I915_QUERY_TOPOLOGY_INFO);
intel_i915_query_alloc(fd, DRM_I915_QUERY_TOPOLOGY_INFO, NULL);
if (topo_info == NULL)
return false;