From b76b43928bf4dcf5ce3a4b58c7fefe780070c0d3 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Tue, 21 Dec 2010 16:25:23 +1000 Subject: add back generic include of nouveau_pushbuf.h So places that FIRE_RING() still work. Signed-off-by: Ben Skeggs --- src/nv_include.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nv_include.h b/src/nv_include.h index 9cb697a..de76d92 100644 --- a/src/nv_include.h +++ b/src/nv_include.h @@ -79,5 +79,6 @@ #include "nouveau_grobj.h" #include "nouveau_notifier.h" #include "nouveau_local.h" +#include "nouveau_pushbuf.h" #endif /* __NV_INCLUDE_H__ */ -- cgit v1.2.1 From dc89dac734167bcbc667b39ca6ee2043871a60bf Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sun, 19 Dec 2010 23:17:34 +0100 Subject: nv04/exa: kill useless WAIT_RING Signed-off-by: Francisco Jerez --- src/nv04_exa.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/nv04_exa.c b/src/nv04_exa.c index f2819d2..267c7b5 100644 --- a/src/nv04_exa.c +++ b/src/nv04_exa.c @@ -150,7 +150,6 @@ NV04EXASolid (PixmapPtr pPixmap, int x1, int y1, int x2, int y2) int width = x2-x1; int height = y2-y1; - WAIT_RING (chan, 3); BEGIN_RING(chan, rect, NV04_GDI_RECTANGLE_TEXT_UNCLIPPED_RECTANGLE_POINT(0), 2); OUT_RING (chan, (x1 << 16) | y1); @@ -280,7 +279,6 @@ NV04EXACopy(PixmapPtr pDstPixmap, int srcX, int srcY, int dstX, int dstY, dstY = 0; } - WAIT_RING (chan, 4); BEGIN_RING(chan, blit, NV01_IMAGE_BLIT_POINT_IN, 3); OUT_RING (chan, (srcY << 16) | srcX); OUT_RING (chan, (dstY << 16) | dstX); -- cgit v1.2.1 From b795ca6e97fae9735843748585401098dae1c3e1 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Fri, 7 Jan 2011 13:33:36 +1000 Subject: nv50: fix pitch of linear scanout buffers Un-breaks NoAccel on these chipsets. Signed-off-by: Ben Skeggs --- src/nv_accel_common.c | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/nv_accel_common.c b/src/nv_accel_common.c index b1553f6..dc7215e 100644 --- a/src/nv_accel_common.c +++ b/src/nv_accel_common.c @@ -32,13 +32,26 @@ nouveau_allocate_surface(ScrnInfoPtr scrn, int width, int height, int bpp, Bool tiled = (usage_hint & NOUVEAU_CREATE_PIXMAP_TILED); int tile_mode = 0, tile_flags = 0; int flags = NOUVEAU_BO_MAP | (bpp >= 8 ? NOUVEAU_BO_VRAM : 0); - int ret; - - if ((scanout && pNv->tiled_scanout) || - (!scanout && pNv->Architecture >= NV_ARCH_50 && bpp >= 8)) - tiled = TRUE; - - *pitch = NOUVEAU_ALIGN(width * bpp, 512) / 8; + int cpp = bpp / 8, ret; + + if (pNv->Architecture >= NV_ARCH_50) { + if (scanout) { + if (pNv->tiled_scanout) { + tiled = TRUE; + *pitch = NOUVEAU_ALIGN(width * cpp, 64); + } else { + *pitch = NOUVEAU_ALIGN(width * cpp, 256); + } + } else { + if (bpp >= 8) + tiled = TRUE; + *pitch = NOUVEAU_ALIGN(width * cpp, 64); + } + } else { + if (scanout && pNv->tiled_scanout) + tiled = TRUE; + *pitch = NOUVEAU_ALIGN(width * cpp, 64); + } if (tiled) { if (pNv->Architecture >= NV_ARCH_50) { -- cgit v1.2.1