From: Vladimir Dergachev Date: Thu, 6 Jan 2005 04:02:52 +0000 (+0000) Subject: Add texture format to get lesson19 working again. X-Git-Tag: mesa-7.8~10048 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91538b44322ca8970f8423395ff37cb1c38e8c32;p=platform%2Fupstream%2Fmesa.git Add texture format to get lesson19 working again. --- diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index 63ec0d5..b094dc2 100644 --- a/src/mesa/drivers/dri/r300/r300_state.c +++ b/src/mesa/drivers/dri/r300/r300_state.c @@ -816,19 +816,20 @@ static GLuint translate_texture_format(GLcontext *ctx, GLint tex_unit, GLuint fo )){ case FORMAT_HASH(0, 1, 0x2100, 0, 1, 0x2100, 0x00088047): return 0x1a0c; - case FORMAT_HASH(0, 1, 0x2100, 0, 4, 0x1e01, 0x00088047): - return 0x53a0c; case FORMAT_HASH(0, 1, 0x2100, 0, 1, 0x2100, 0x00077047): return 0x4ba0c; case FORMAT_HASH(0, 1, 0x2100, 0, 1, 0x2100, 0x00055047): return 0x53a0c; + case FORMAT_HASH(0, 1, 0x2100, 0, 4, 0x1e01, 0x00088047): + return 0x53a0c; + case FORMAT_HASH(0, 1, 0x2100, 0, 4, 0x1e01, 0x00055047): + return 0x53a0c; default: { static int warn_once=1; if(warn_once){ - fprintf(stderr, "%s:%s Do not know how to translate texture format %08x - help me !\n", - __FILE__, __FUNCTION__, - format); + fprintf(stderr, "%s:%s Do not know how to translate texture format - help me !\n", + __FILE__, __FUNCTION__); warn_once=0; } }