diff --git a/libdrm-2.4.22.tar.bz2 b/libdrm-2.4.22.tar.bz2 deleted file mode 100644 index 6005c30..0000000 --- a/libdrm-2.4.22.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0bb0e594e4094d9000d80f38e96e8f640b6364f96cfef5b970cf4481443c6b3d -size 399380 diff --git a/libdrm-2.4.22_101031_d0a4f2e.tar.bz2 b/libdrm-2.4.22_101031_d0a4f2e.tar.bz2 new file mode 100644 index 0000000..51f7577 --- /dev/null +++ b/libdrm-2.4.22_101031_d0a4f2e.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca7c296449d09bf6fe5e4f1a7db595677614ecc42a478fa00ad44617f9478618 +size 391381 diff --git a/libdrm.changes b/libdrm.changes index 7bcb58e..ddedb65 100644 --- a/libdrm.changes +++ b/libdrm.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Nov 2 13:28:24 UTC 2010 - sndirsch@novell.com + +- updated to git master commit #d0a4f2e (2010-10-31, still 2.4.22) +- revert-09b1062.diff (to fix Mesa's nouveau driver build) + * Revert "nouveau: Let the user choose the push buffer size." + This reverts commit 09b1062628f2cbddb3ebae20e7b3b8a0a93acebf. + ------------------------------------------------------------------- Wed Sep 29 12:34:42 UTC 2010 - sndirsch@novell.com diff --git a/libdrm.spec b/libdrm.spec index 056778a..d13615e 100644 --- a/libdrm.spec +++ b/libdrm.spec @@ -35,9 +35,10 @@ Provides: libdrm-64bit = %{version} %endif # Summary: Userspace Interface for Kernel DRM Services -Source: %{name}-%{version}.tar.bz2 +Source: %{name}-%{version}_101031_d0a4f2e.tar.bz2 Source2: baselibs.conf Patch: enable_test_tools.diff +Patch1: revert-09b1062.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -62,8 +63,9 @@ The package contains the userspace interface to the kernel DRM services. %prep -%setup -q +%setup -q -n %{name}-%{version}_101031_d0a4f2e %patch +%patch1 -p1 %build autoreconf -fi diff --git a/revert-09b1062.diff b/revert-09b1062.diff new file mode 100644 index 0000000..b1bb13a --- /dev/null +++ b/revert-09b1062.diff @@ -0,0 +1,106 @@ +commit 0e7cfad7d267742f12052a0d43159f7e08ba5c9f +Author: Stefan Dirsch +Date: Tue Nov 2 17:39:41 2010 +0100 + + Revert "nouveau: Let the user choose the push buffer size." + + This reverts commit 09b1062628f2cbddb3ebae20e7b3b8a0a93acebf. + +diff --git a/nouveau/nouveau_channel.c b/nouveau/nouveau_channel.c +index ded5424..40a0b34 100644 +--- a/nouveau/nouveau_channel.c ++++ b/nouveau/nouveau_channel.c +@@ -28,8 +28,7 @@ + + int + nouveau_channel_alloc(struct nouveau_device *dev, uint32_t fb_ctxdma, +- uint32_t tt_ctxdma, int pushbuf_size, +- struct nouveau_channel **chan) ++ uint32_t tt_ctxdma, struct nouveau_channel **chan) + { + struct nouveau_device_priv *nvdev = nouveau_device(dev); + struct nouveau_channel_priv *nvchan; +@@ -91,7 +90,7 @@ nouveau_channel_alloc(struct nouveau_device *dev, uint32_t fb_ctxdma, + return ret; + } + +- ret = nouveau_pushbuf_init(&nvchan->base, pushbuf_size); ++ ret = nouveau_pushbuf_init(&nvchan->base); + if (ret) { + nouveau_channel_free((void *)&nvchan); + return ret; +diff --git a/nouveau/nouveau_channel.h b/nouveau/nouveau_channel.h +index d61a4c0..ddcf8e4 100644 +--- a/nouveau/nouveau_channel.h ++++ b/nouveau/nouveau_channel.h +@@ -49,7 +49,7 @@ struct nouveau_channel { + + int + nouveau_channel_alloc(struct nouveau_device *, uint32_t fb, uint32_t tt, +- int pushbuf_size, struct nouveau_channel **); ++ struct nouveau_channel **); + + void + nouveau_channel_free(struct nouveau_channel **); +diff --git a/nouveau/nouveau_private.h b/nouveau/nouveau_private.h +index 124fe87..f98864a 100644 +--- a/nouveau/nouveau_private.h ++++ b/nouveau/nouveau_private.h +@@ -37,8 +37,8 @@ + #include "nouveau_pushbuf.h" + #include "nouveau_reloc.h" + +-#define CALPB_BUFFERS 3 +- ++#define CALPB_BUFFERS 4 ++#define CALPB_BUFSZ 16384 + struct nouveau_pushbuf_priv { + uint32_t cal_suffix0; + uint32_t cal_suffix1; +@@ -64,7 +64,7 @@ struct nouveau_pushbuf_priv { + #define nouveau_pushbuf(n) ((struct nouveau_pushbuf_priv *)(n)) + + int +-nouveau_pushbuf_init(struct nouveau_channel *, int buf_size); ++nouveau_pushbuf_init(struct nouveau_channel *); + void + nouveau_pushbuf_fini(struct nouveau_channel *); + +diff --git a/nouveau/nouveau_pushbuf.c b/nouveau/nouveau_pushbuf.c +index 90836bc..28b8018 100644 +--- a/nouveau/nouveau_pushbuf.c ++++ b/nouveau/nouveau_pushbuf.c +@@ -78,7 +78,7 @@ nouveau_pushbuf_fini_call(struct nouveau_channel *chan) + } + + static int +-nouveau_pushbuf_init_call(struct nouveau_channel *chan, int buf_size) ++nouveau_pushbuf_init_call(struct nouveau_channel *chan) + { + struct drm_nouveau_gem_pushbuf req; + struct nouveau_channel_priv *nvchan = nouveau_channel(chan); +@@ -101,7 +101,7 @@ nouveau_pushbuf_init_call(struct nouveau_channel *chan, int buf_size) + + for (i = 0; i < CALPB_BUFFERS; i++) { + ret = nouveau_bo_new(dev, flags | NOUVEAU_BO_MAP, +- 0, buf_size, &nvpb->buffer[i]); ++ 0, CALPB_BUFSZ, &nvpb->buffer[i]); + if (ret) { + nouveau_pushbuf_fini_call(chan); + return ret; +@@ -114,13 +114,13 @@ nouveau_pushbuf_init_call(struct nouveau_channel *chan, int buf_size) + } + + int +-nouveau_pushbuf_init(struct nouveau_channel *chan, int buf_size) ++nouveau_pushbuf_init(struct nouveau_channel *chan) + { + struct nouveau_channel_priv *nvchan = nouveau_channel(chan); + struct nouveau_pushbuf_priv *nvpb = &nvchan->pb; + int ret; + +- ret = nouveau_pushbuf_init_call(chan, buf_size); ++ ret = nouveau_pushbuf_init_call(chan); + if (ret) + return ret; +