summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Dergachev <[email protected]>2005-02-05 03:13:34 +0000
committerVladimir Dergachev <[email protected]>2005-02-05 03:13:34 +0000
commitb64d4a27cb44325803a348e3b2ccb7ef12af4ccd (patch)
tree2c09d958d8a5cbfede25986ff8418cfbdec03bf5
parenta02b83115a865a58d3f0d118a6b3ad2922a0ab75 (diff)
Warn of unknown texture formats.
-rw-r--r--src/mesa/drivers/dri/r300/r300_state.c4
-rw-r--r--src/mesa/drivers/dri/r300/r300_texstate.c34
2 files changed, 21 insertions, 17 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c
index 7a23eddfac7..13607018713 100644
--- a/src/mesa/drivers/dri/r300/r300_state.c
+++ b/src/mesa/drivers/dri/r300/r300_state.c
@@ -1200,6 +1200,10 @@ void r300_setup_textures(GLcontext *ctx)
t=&default_tex_obj;
}
//fprintf(stderr, "t->format=%08x\n", t->format);
+ if((t->format & 0xffffff00)==0xffffff00){
+ WARN_ONCE("unknown texture format encountered. Help me !\n");
+ //fprintf(stderr, "t->format=%08x\n", t->format);
+ }
if (RADEON_DEBUG & DEBUG_STATE)
fprintf(stderr, "Activating texture unit %d\n", i);
max_texture_unit=i;
diff --git a/src/mesa/drivers/dri/r300/r300_texstate.c b/src/mesa/drivers/dri/r300/r300_texstate.c
index 76be5c649aa..bb79c18ded3 100644
--- a/src/mesa/drivers/dri/r300/r300_texstate.c
+++ b/src/mesa/drivers/dri/r300/r300_texstate.c
@@ -94,23 +94,23 @@ static const struct {
GLuint format, filter;
} tx_table[] = {
{R300_EASY_TX_FORMAT(Y, Z, W, X, W8Z8Y8X8), 0},
- {1, 0},
- {2, 0},
- {3, 0},
- {4, 0},
- {5, 0},
- {6, 0},
- {7, 0},
- {8, 0},
- {9, 0},
- {10, 0},
- {11, 0},
- {12, 0},
- {13, 0},
- {14, 0},
- {15, 0},
- {16, 0},
- {17, 0},
+ {0xffffff01, 0},
+ {0xffffff02, 0},
+ {0xffffff03, 0},
+ {0xffffff04, 0},
+ {0xffffff05, 0},
+ {0xffffff06, 0},
+ {0xffffff07, 0},
+ {0xffffff08, 0},
+ {0xffffff09, 0},
+ {0xffffff10, 0},
+ {0xffffff11, 0},
+ {0xffffff12, 0},
+ {0xffffff13, 0},
+ {0xffffff14, 0},
+ {0xffffff15, 0},
+ {0xffffff16, 0},
+ {0xffffff17, 0},
};