Warn of unknown texture formats.

This commit is contained in:
Vladimir Dergachev 2005-02-05 03:13:34 +00:00
parent a02b83115a
commit b64d4a27cb
2 changed files with 21 additions and 17 deletions

View file

@ -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;

View file

@ -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},
};