Skip to content

Commit

Permalink
intel/dev: Read geometry topology with PRELIM_DRM_I915_QUERY_GEOMETRY…
Browse files Browse the repository at this point in the history
…_SLICES
  • Loading branch information
curro authored and JeevakaPrabu committed Oct 10, 2023
1 parent 2804ac7 commit 9655f0e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/intel/dev/intel_device_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -1594,10 +1594,15 @@ query_topology(struct intel_device_info *devinfo, int fd)

if (devinfo->verx10 >= 125) {
struct drm_i915_query_topology_info *geom_topo_info =
intel_i915_query_alloc(fd, DRM_I915_QUERY_GEOMETRY_SUBSLICES, NULL);
intel_i915_query_alloc(fd, PRELIM_DRM_I915_QUERY_GEOMETRY_SLICES,
NULL);
if (geom_topo_info == NULL) {
free(topo_info);
return false;
geom_topo_info =
intel_i915_query_alloc(fd, DRM_I915_QUERY_GEOMETRY_SUBSLICES, NULL);
if (geom_topo_info == NULL) {
free(topo_info);
return false;
}
}

update_from_single_slice_topology(devinfo, topo_info, geom_topo_info);
Expand Down

0 comments on commit 9655f0e

Please sign in to comment.