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

Tracked-On: OAM-112578
  • Loading branch information
curro authored and ShenghuaLinINTEL committed Dec 12, 2023
1 parent f7a155b commit 86af7f7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/intel/dev/i915/intel_device_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,14 @@ 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 86af7f7

Please sign in to comment.