aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/tools/intel_dump_gpu.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2020-02-28 10:46:53 +0200
committerLionel Landwerlin <[email protected]>2020-03-02 08:24:40 +0000
commit85457e350dde0589c96083c75594d089d339fba4 (patch)
tree1bd4ca8dff1f04fd658c1fc0dbf15ef92b5934fa /src/intel/tools/intel_dump_gpu.c
parent1e43910aa2e018a1819bcfef6916d5ce5e1e7276 (diff)
intel/tools/dump_gpu: fix getparam values
Don't return the pci_id for all params Fixes: 76bf38eaf0b6 ("intel/tools/aub_dump: move aub file initialization to maybe_init()") Reviewed-by: Tapani Pälli <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3994> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3994>
Diffstat (limited to 'src/intel/tools/intel_dump_gpu.c')
-rw-r--r--src/intel/tools/intel_dump_gpu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/intel/tools/intel_dump_gpu.c b/src/intel/tools/intel_dump_gpu.c
index 9dfa752f153..551477db23b 100644
--- a/src/intel/tools/intel_dump_gpu.c
+++ b/src/intel/tools/intel_dump_gpu.c
@@ -469,7 +469,14 @@ ioctl(int fd, unsigned long request, ...)
case DRM_IOCTL_I915_GETPARAM: {
struct drm_i915_getparam *getparam = argp;
- return get_pci_id(fd, getparam->value);
+
+ if (getparam->param == I915_PARAM_CHIPSET_ID)
+ return get_pci_id(fd, getparam->value);
+
+ if (device_override)
+ return -1;
+
+ return libc_ioctl(fd, request, argp);
}
case DRM_IOCTL_I915_GEM_EXECBUFFER: {