diff options
author | Chris Wilson <[email protected]> | 2019-03-30 10:03:49 +0000 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2019-03-31 08:38:01 +0100 |
commit | cde5f7edd511b190c175ab817f3f02c5f0897895 (patch) | |
tree | f73b8f55efa13d6908650652a764e8e5d0fba9c3 /scripts/gdb/linux/config.py | |
parent | 52b832606038c5b3cb1070e7653e4115b7942606 (diff) |
drm/i915: Avoid using ctx->file_priv during construction
As we only set ctx->file_priv on registering the GEM context after
construction, it is invalid to try and use it in the middle for setting
various parameters. Indeed, we put the file_priv into struct create_ext
so that we have the right file_private available without having to look
at ctx->file_priv. However, it helps to use it!
Reported-by: Jordan Justen <[email protected]>
Fixes: b91715417244 ("drm/i915: Extend CONTEXT_CREATE to set parameters upon construction")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: Jordan Justen <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Tested-by: Jordan Justen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions