- patch: i965_dri_video: don't try to render an invalid surface
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libva?expand=0&rev=3
This commit is contained in:
parent
7b30ed2504
commit
fdda702266
@ -1,7 +1,7 @@
|
|||||||
From 2b7850b35a51c59a6692781d5e40e4bb608b6344 Mon Sep 17 00:00:00 2001
|
From 2b7850b35a51c59a6692781d5e40e4bb608b6344 Mon Sep 17 00:00:00 2001
|
||||||
From: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
|
From: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
|
||||||
Date: Thu, 27 Jan 2011 10:41:24 +0100
|
Date: Thu, 27 Jan 2011 10:41:24 +0100
|
||||||
Subject: [PATCH] i965_drv_video: make VADriverContext.vtable a pointer.
|
Subject: [PATCH 1/2] i965_drv_video: make VADriverContext.vtable a pointer.
|
||||||
|
|
||||||
---
|
---
|
||||||
i965_drv_video/i965_drv_video.c | 85 ++++++++++++++++++++-------------------
|
i965_drv_video/i965_drv_video.c | 85 ++++++++++++++++++++-------------------
|
||||||
@ -111,5 +111,5 @@ index 303e090..5baa0ff 100644
|
|||||||
i965 = (struct i965_driver_data *)calloc(1, sizeof(*i965));
|
i965 = (struct i965_driver_data *)calloc(1, sizeof(*i965));
|
||||||
assert(i965);
|
assert(i965);
|
||||||
--
|
--
|
||||||
1.7.3.4
|
1.7.4.1
|
||||||
|
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
From 3739a5e19700f508eac0b874856d08a06ea9ff45 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Xiang, Haihao <haihao.xiang@intel.com>
|
||||||
|
Date: Thu, 24 Feb 2011 15:22:46 +0800
|
||||||
|
Subject: [PATCH 2/2] i965_dri_video: don't try to render an invalid surface
|
||||||
|
|
||||||
|
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
||||||
|
---
|
||||||
|
i965_drv_video/i965_drv_video.c | 2 +-
|
||||||
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c
|
||||||
|
index 5baa0ff..0f09d8a 100644
|
||||||
|
--- a/i965_drv_video/i965_drv_video.c
|
||||||
|
+++ b/i965_drv_video/i965_drv_video.c
|
||||||
|
@@ -1736,7 +1736,7 @@ i965_PutSurface(VADriverContextP ctx,
|
||||||
|
* will get here
|
||||||
|
*/
|
||||||
|
obj_surface = SURFACE(surface);
|
||||||
|
- if (obj_surface->bo == NULL)
|
||||||
|
+ if (!obj_surface || !obj_surface->bo)
|
||||||
|
return VA_STATUS_SUCCESS;
|
||||||
|
|
||||||
|
dri_drawable = dri_get_drawable(ctx, (Drawable)draw);
|
||||||
|
--
|
||||||
|
1.7.4.1
|
||||||
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 3 15:02:06 UTC 2011 - kkhere.geo@gmail.com
|
||||||
|
|
||||||
|
- patch: i965_dri_video: don't try to render an invalid surface
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 15 12:05:12 UTC 2011 - kkhere.geo@gmail.com
|
Tue Feb 15 12:05:12 UTC 2011 - kkhere.geo@gmail.com
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ Url: http://freedesktop.org/wiki/Software/vaapi
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Source: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.bz2
|
Source: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.bz2
|
||||||
Patch1: 0001-i965_drv_video-make-VADriverContext.vtable-a-pointer.patch
|
Patch1: 0001-i965_drv_video-make-VADriverContext.vtable-a-pointer.patch
|
||||||
|
Patch2: 0002-i965_dri_video-don-t-try-to-render-an-invalid-surfac.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: pkg-config libudev-devel
|
BuildRequires: pkg-config libudev-devel
|
||||||
BuildRequires: xorg-x11-devel xorg-x11-libXext-devel xorg-x11-libXfixes-devel
|
BuildRequires: xorg-x11-devel xorg-x11-libXext-devel xorg-x11-libXfixes-devel
|
||||||
@ -49,6 +50,7 @@ This package provides the development environment for libva.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -v --install
|
autoreconf -v --install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user