summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/nv40
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-01-07 04:36:22 +1100
committerBen Skeggs <skeggsb@gmail.com>2008-01-07 04:36:22 +1100
commita50f224f41faaf4ba75902d2dd46f1fe595f098f (patch)
tree951783353a551ee405f10a649c261f5a2435184b /src/mesa/pipe/nv40
parent9bac4c7268cdbc79a1ce2d05779ed05c32e1e57b (diff)
nv40: use a more "normal" 2x8bit format, the other is likely a HILO format.
Diffstat (limited to 'src/mesa/pipe/nv40')
-rw-r--r--src/mesa/pipe/nv40/nv40_state_tex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/pipe/nv40/nv40_state_tex.c b/src/mesa/pipe/nv40/nv40_state_tex.c
index 7c353c138f..f54a65c780 100644
--- a/src/mesa/pipe/nv40/nv40_state_tex.c
+++ b/src/mesa/pipe/nv40/nv40_state_tex.c
@@ -13,6 +13,7 @@
#define NV40TCL_TEX_FORMAT_FORMAT_Z16 0x1200
#define NV40TCL_TEX_FORMAT_FORMAT_Z24 0x1000
+#define NV40TCL_TEX_FORMAT_FORMAT_A8L8_2 0x0b00
struct nv40_texture_format {
boolean defined;
@@ -30,7 +31,7 @@ nv40_texture_formats[] = {
_(U_L8 , L8 , S1, S1, S1, ONE, X, X, X, X),
_(U_A8 , L8 , ZERO, ZERO, ZERO, S1, X, X, X, X),
_(U_I8 , L8 , S1, S1, S1, S1, X, X, X, X),
- _(U_A8_L8 , A8L8 , S1, S1, S1, S1, Z, W, X, Y),
+ _(U_A8_L8 , A8L8_2 , S1, S1, S1, S1, X, X, X, Y),
_(Z16_UNORM , Z16 , S1, S1, S1, ONE, X, X, X, X),
_(Z24S8_UNORM , Z24 , S1, S1, S1, ONE, X, X, X, X),
// _(RGB_DXT1 , 0x86, S1, S1, S1, ONE, X, Y, Z, W, 0x00, 0x00),
@@ -105,8 +106,6 @@ nv40_tex_unit_enable(struct nv40_context *nv40, int unit)
}
txs = tf->swizzle;
- if (pt->format == PIPE_FORMAT_U_A8_L8)
- txs |= (1<<16); /*nfi*/
nv40->tex[unit].buffer = nv40mt->buffer;
nv40->tex[unit].format = txf;