summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorVladimir Dergachev <[email protected]>2005-01-11 06:22:55 +0000
committerVladimir Dergachev <[email protected]>2005-01-11 06:22:55 +0000
commit0cb0a36d8c0a5c201eece033d331b0f9321abf22 (patch)
tree19bfc898b9a4f5fd5e285653690ee7350ccbcdd0 /src/mesa
parentd5432ac584f922527922c6813f39f6caa00b9037 (diff)
Get NeHe lesson08 to work. Note: it appears the filtering does not work properly. Need to find place where it is broken and put an fprintf() complaining about it.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/r300_state.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c
index 6555d306ecf..7c09e3c026a 100644
--- a/src/mesa/drivers/dri/r300/r300_state.c
+++ b/src/mesa/drivers/dri/r300/r300_state.c
@@ -847,6 +847,9 @@ static GLuint translate_texture_format(GLcontext *ctx, GLint tex_unit, GLuint fo
lesson 07
*/
return 0x53a0c;
+ case FORMAT_HASH(0, 1, 0x2100, 0, 4, 0x1e01, 0x00077047, 0x00000003):
+ /* Tested with NeHe lesson 08 */
+ return 0x53a0c;
//case FORMAT_HASH(0, 1, 0x2100, 0, 4, 0x1e01, 0x00055047, 0):
/* Can't remember what I tested this with..
try putting return 0 of you see broken textures which
@@ -999,7 +1002,7 @@ void r300_setup_textures(GLcontext *ctx)
0x00a0c | (fmt<<12));
fprintf(stderr, "size=%08x\n", t->size);
}
- r300->hw.tex.format.cmd[R300_TEX_VALUE_0+i]=0x00a0b | (fmt<<12);
+ r300->hw.tex.format.cmd[R300_TEX_VALUE_0+i]=0x00a0c | (fmt<<12);
//r300->hw.tex.format.cmd[R300_TEX_VALUE_0+i]=0x51a00 | (fmt);
//r300->hw.tex.format.cmd[R300_TEX_VALUE_0+i]=0x53a0c | (fmt<<24);
}