mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 22:10:11 +01:00
intel/hang_replay: fix the typo in the ioctl call
What we really want to pass is DRM_IOCTL_I915_GEM_CONTEXT_GETPARAM vs DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM Fixes:a9f1151de2("intel/hang_replay: use hw image param") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11959 Signed-off-by: Carlos Santa <carlos.santa@intel.corp-partner.google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31494> (cherry picked from commit700141da43)
This commit is contained in:
parent
2155cd545c
commit
df0aa4ebef
2 changed files with 6 additions and 2 deletions
|
|
@ -1774,7 +1774,7 @@
|
|||
"description": "intel/hang_replay: fix the typo in the ioctl call",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "a9f1151de270c5270a9e0280924b70b39d4692e1",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -138,7 +138,11 @@ gem_context_set_hw_image(int drm_fd, uint32_t ctx_id,
|
|||
param.param = I915_CONTEXT_PARAM_RECOVERABLE;
|
||||
param.value = (uint64_t)(uintptr_t)&val;
|
||||
|
||||
ret = intel_ioctl(drm_fd, DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM, ¶m);
|
||||
/* Force i915 to convert the "proto" context to be a "live" context, since
|
||||
* the I915_CONTEXT_PARAM_CONTEXT_IMAGE parameter cannot be set on a "proto"
|
||||
* context. See kernel docs for i915_gem_proto_context.
|
||||
*/
|
||||
ret = intel_ioctl(drm_fd, DRM_IOCTL_I915_GEM_CONTEXT_GETPARAM, ¶m);
|
||||
if (ret)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue