diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-08-12 20:59:43 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-08-12 21:12:34 -0300 |
commit | 059bc85d0c5761f2228d7749c4b663837d24efbd (patch) | |
tree | f6826161a6a16e98d506e430f71e940f2a887206 /libre-multilib/lib32-opencl-mesa/0001-i965-Remove-early-release-of-DRI2-miptree.patch | |
parent | 511e29caae6ab89699cdd1c759350889aa4d2e45 (diff) | |
download | abslibre-059bc85d0c5761f2228d7749c4b663837d24efbd.tar.gz abslibre-059bc85d0c5761f2228d7749c4b663837d24efbd.tar.bz2 abslibre-059bc85d0c5761f2228d7749c4b663837d24efbd.zip |
lib32-opencl-mesa-10.6.4-1: updating version
Diffstat (limited to 'libre-multilib/lib32-opencl-mesa/0001-i965-Remove-early-release-of-DRI2-miptree.patch')
-rw-r--r-- | libre-multilib/lib32-opencl-mesa/0001-i965-Remove-early-release-of-DRI2-miptree.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libre-multilib/lib32-opencl-mesa/0001-i965-Remove-early-release-of-DRI2-miptree.patch b/libre-multilib/lib32-opencl-mesa/0001-i965-Remove-early-release-of-DRI2-miptree.patch new file mode 100644 index 000000000..2cd33eedd --- /dev/null +++ b/libre-multilib/lib32-opencl-mesa/0001-i965-Remove-early-release-of-DRI2-miptree.patch @@ -0,0 +1,33 @@ +From e2a696a4cd93c2dbe445243de48ed478fbdb8009 Mon Sep 17 00:00:00 2001 +From: Chris Wilson <chris@chris-wilson.co.uk> +Date: Fri, 10 Jul 2015 10:41:35 +0100 +Subject: [PATCH] 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: Chris Wilson <chris@chris-wilson.co.uk> +--- + src/mesa/drivers/dri/i965/brw_context.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c +index e8d1396..72f3897 100644 +--- a/src/mesa/drivers/dri/i965/brw_context.c ++++ b/src/mesa/drivers/dri/i965/brw_context.c +@@ -1388,7 +1388,6 @@ intel_process_dri2_buffer(struct brw_context *brw, + buffer->cpp, buffer->pitch); + } + +- intel_miptree_release(&rb->mt); + bo = drm_intel_bo_gem_create_from_name(brw->bufmgr, buffer_name, + buffer->name); + if (!bo) { +-- +2.5.0 + |