summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2008-07-09 23:23:39 +0200
committerPatrice Mandin <pmandin@caramail.com>2008-07-09 23:23:39 +0200
commit225863aeb5f2dfe4980ae5887f5623ecb05e9ced (patch)
treea638a0f9e2fc4e5c8269afee17981380596f79b0 /src/gallium
parent2fed964a27f208f69edc0b2d9a2d0b0717184ee5 (diff)
nv30: min/max lod are used for mipmap, there is just enable bit in tx_format
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nv30/nv30_fragtex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv30/nv30_fragtex.c b/src/gallium/drivers/nv30/nv30_fragtex.c
index 92b3f93929..f253087c88 100644
--- a/src/gallium/drivers/nv30/nv30_fragtex.c
+++ b/src/gallium/drivers/nv30/nv30_fragtex.c
@@ -96,11 +96,11 @@ nv30_fragtex_build(struct nv30_context *nv30, int unit)
}
txf = tf->format << 8;
- txf |= (pt->last_level + 1) << 16;
+ txf |= ((pt->last_level>0) ? NV34TCL_TX_FORMAT_MIPMAP : 0);
txf |= log2i(pt->width[0]) << 20;
txf |= log2i(pt->height[0]) << 24;
txf |= log2i(pt->depth[0]) << 28;
- txf |= NV34TCL_TX_FORMAT_NO_BORDER;
+ txf |= NV34TCL_TX_FORMAT_NO_BORDER | 0x10000;
switch (pt->target) {
case PIPE_TEXTURE_CUBE: