summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_screen.c
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-09-04 02:05:14 +0200
committerLuca Barbieri <[email protected]>2010-09-04 02:08:02 +0200
commitfa82ad84fbe2be2bbfe9de7cda3e901a069ae16c (patch)
tree7ef84da339b307e7a961a3b8e23e7b839ca6aa15 /src/gallium/drivers/nvfx/nvfx_screen.c
parent60fe5757aea835214c45f05aa940e8e9e3dbd5da (diff)
nvfx: set magic bit to round NPOT mipmap sizes down and not up
Does any API even use rounding-up?
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_screen.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c
index e6ba7bc87a0..b5b7a340819 100644
--- a/src/gallium/drivers/nvfx/nvfx_screen.c
+++ b/src/gallium/drivers/nvfx/nvfx_screen.c
@@ -328,6 +328,9 @@ static void nv40_screen_init(struct nvfx_screen *screen)
OUT_RING(chan, 0x00d30000);
OUT_RING(chan, RING_3D(0x1e94, 1));
OUT_RING(chan, 0x00000001);
+
+ OUT_RING(chan, RING_3D(NV40TCL_MIPMAP_ROUNDING, 1));
+ OUT_RING(chan, NV40TCL_MIPMAP_ROUNDING_DOWN);
}
static unsigned