summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx/nvfx_miptree.c
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-03-11 18:06:28 +0100
committerLuca Barbieri <luca@luca-barbieri.com>2010-08-21 20:42:14 +0200
commitff74143fcc80b0157875bb0ce4b34a80f92e09c2 (patch)
treec843dae731b7b2d07a80ac66f31e0bec85fa7c99 /src/gallium/drivers/nvfx/nvfx_miptree.c
parent4793f48a19465ad27c3a33d9453a0def78775736 (diff)
nv30: new 2D: support ARB_texture_rectangle
This uses nv30's _RECT formats.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_miptree.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_miptree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_miptree.c b/src/gallium/drivers/nvfx/nvfx_miptree.c
index ffacf8a8e5..7deb9d7b9a 100644
--- a/src/gallium/drivers/nvfx/nvfx_miptree.c
+++ b/src/gallium/drivers/nvfx/nvfx_miptree.c
@@ -23,7 +23,8 @@ nvfx_miptree_choose_format(struct nvfx_miptree *mt)
if (!util_is_pot(pt->width0) ||
!util_is_pot(pt->height0) ||
- !util_is_pot(pt->depth0)
+ !util_is_pot(pt->depth0) ||
+ (!nvfx_screen(pt->screen)->is_nv4x && pt->target == PIPE_TEXTURE_RECT)
)
uniform_pitch = 1;