intel: Fix a typo in intel_device_info.c:has_get_tiling

The structs are of equal size and both ioctls were added at the same
time, so the functionality is equivalent, but it's nonetheless the
incorrect type being passed.

Signed-off-by: tranquillitycodes@proton.me
Fixes: 762e601f77
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31974>
(cherry picked from commit 10c92cbd39)
This commit is contained in:
itycodes 2024-11-05 04:12:33 +01:00 committed by Eric Engestrom
parent ee5ae8c717
commit 4962a83c21
2 changed files with 2 additions and 2 deletions

View file

@ -1234,7 +1234,7 @@
"description": "intel: Fix a typo in intel_device_info.c:has_get_tiling",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "762e601f776e7d692f49c328e526e6e2c3b14345",
"notes": null

View file

@ -491,7 +491,7 @@ has_get_tiling(int fd)
struct drm_i915_gem_get_tiling get_tiling = {
.handle = gem_create.handle,
};
ret = intel_ioctl(fd, DRM_IOCTL_I915_GEM_SET_TILING, &get_tiling);
ret = intel_ioctl(fd, DRM_IOCTL_I915_GEM_GET_TILING, &get_tiling);
struct drm_gem_close close = {
.handle = gem_create.handle,