mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-28 11:06:25 +00:00
- radeon fix clip emits
This commit is contained in:
parent
9d6cc8706e
commit
3b4e893bb9
2 changed files with 20 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
Summary: Mesa graphics libraries
|
Summary: Mesa graphics libraries
|
||||||
Name: mesa
|
Name: mesa
|
||||||
Version: 7.5
|
Version: 7.5
|
||||||
Release: 0.12%{?dist}
|
Release: 0.13%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.mesa3d.org
|
URL: http://www.mesa3d.org
|
||||||
|
@ -48,6 +48,8 @@ Patch9: intel-revert-vbl.patch
|
||||||
Patch12: mesa-7.1-disable-intel-classic-warn.patch
|
Patch12: mesa-7.1-disable-intel-classic-warn.patch
|
||||||
Patch13: mesa-7.5-sparc64.patch
|
Patch13: mesa-7.5-sparc64.patch
|
||||||
|
|
||||||
|
Patch15: radeon-rewrite-emit1clip.patch
|
||||||
|
|
||||||
BuildRequires: pkgconfig autoconf automake
|
BuildRequires: pkgconfig autoconf automake
|
||||||
%if %{with_dri}
|
%if %{with_dri}
|
||||||
BuildRequires: libdrm-devel >= 2.4.5-1
|
BuildRequires: libdrm-devel >= 2.4.5-1
|
||||||
|
@ -175,6 +177,7 @@ This package provides some demo applications for testing Mesa.
|
||||||
%patch9 -p1 -b .intel-vbl
|
%patch9 -p1 -b .intel-vbl
|
||||||
%patch12 -p1 -b .intel-nowarn
|
%patch12 -p1 -b .intel-nowarn
|
||||||
%patch13 -p1 -b .sparc64
|
%patch13 -p1 -b .sparc64
|
||||||
|
%patch15 -p1 -b .fix-clip
|
||||||
|
|
||||||
# Hack the demos to use installed data files
|
# Hack the demos to use installed data files
|
||||||
sed -i 's,../images,%{_libdir}/mesa-demos-data,' progs/demos/*.c
|
sed -i 's,../images,%{_libdir}/mesa-demos-data,' progs/demos/*.c
|
||||||
|
@ -429,6 +432,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_libdir}/mesa-demos-data
|
%{_libdir}/mesa-demos-data
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 28 2009 Dave Airlie <airlied@redhat.com> 7.5-0.13
|
||||||
|
- radeon fix clip emits
|
||||||
|
|
||||||
* Tue Apr 28 2009 Dave Airlie <airlied@redhat.com> 7.5-0.12
|
* Tue Apr 28 2009 Dave Airlie <airlied@redhat.com> 7.5-0.12
|
||||||
- rebase to upstream snapshot + radeon-rewrite
|
- rebase to upstream snapshot + radeon-rewrite
|
||||||
|
|
||||||
|
|
13
radeon-rewrite-emit1clip.patch
Normal file
13
radeon-rewrite-emit1clip.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/src/mesa/drivers/dri/r300/r300_cmdbuf.c b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
|
||||||
|
index afca0e2..a006e8f 100644
|
||||||
|
--- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c
|
||||||
|
+++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
|
||||||
|
@@ -252,7 +252,7 @@ static void emit_cb_offset(GLcontext *ctx, struct radeon_state_atom * atom)
|
||||||
|
((rrb->height - 1) << R300_SCISSORS_Y_SHIFT));
|
||||||
|
END_BATCH();
|
||||||
|
BEGIN_BATCH_NO_AUTOSTATE(16);
|
||||||
|
- for (i = 0; i < 4; i++) {
|
||||||
|
+ for (i = 0; i < 1; i++) {
|
||||||
|
OUT_BATCH_REGSEQ(R300_SC_CLIPRECT_TL_0 + (i * 8), 2);
|
||||||
|
OUT_BATCH((0 << R300_CLIPRECT_X_SHIFT) | (0 << R300_CLIPRECT_Y_SHIFT));
|
||||||
|
OUT_BATCH(((rrb->width - 1) << R300_CLIPRECT_X_SHIFT) | ((rrb->height - 1) << R300_CLIPRECT_Y_SHIFT));
|
Loading…
Reference in a new issue