projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fed964
)
nv30: min/max lod are used for mipmap, there is just enable bit in tx_format
author
Patrice Mandin
<pmandin@caramail.com>
Wed, 9 Jul 2008 21:23:39 +0000
(23:23 +0200)
committer
Patrice Mandin
<pmandin@caramail.com>
Wed, 9 Jul 2008 21:23:39 +0000
(23:23 +0200)
src/gallium/drivers/nv30/nv30_fragtex.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv30/nv30_fragtex.c
b/src/gallium/drivers/nv30/nv30_fragtex.c
index 92b3f93929786e27a4b0b25ce3c8cf2ca3b06d32..f253087c884989b82be3aaf08a830359ed4a8c7c 100644
(file)
--- 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: