Skip to content
Snippets Groups Projects
Commit a1a567c1 authored by Chris Wilson's avatar Chris Wilson :thinking: Committed by Emil Velikov
Browse files

i965: Remove early release of DRI2 miptree


intel_update_winsys_renderbuffer_miptree() will release the existing
miptree when wrapping a new DRI2 buffer, so we can remove the early
release and so prevent a NULL mt dereference should importing the new
DRI2 name fail for any reason. (Reusing the old DRI2 name will result
in the rendering going astray, to a stale buffer, and not shown on the
screen, but it allows us to issue a warning and not crash much later in
innocent code.)

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86281


Reviewed-by: default avatarMartin Peres <martin.peres@linux.intel.com>
Reviewed-by: default avatarChad Versace <chad.versace@intel.com>
(cherry picked from commit 70e91d61)
Nominated-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent f6c645d9
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment