summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@freedesktop.org>2005-03-09 05:31:31 +0000
committerVladimir Dergachev <volodya@freedesktop.org>2005-03-09 05:31:31 +0000
commit5737fda093f8e1f4daabda3d55762dc7c4fe8ed9 (patch)
treebcb87c04b72c861bc3485fe539a0c0e2008fc205 /src/mesa/drivers/dri
parent439f7feab1ed90eb1c323420f0fd608a2a155177 (diff)
downloadexternal_mesa3d-5737fda093f8e1f4daabda3d55762dc7c4fe8ed9.zip
external_mesa3d-5737fda093f8e1f4daabda3d55762dc7c4fe8ed9.tar.gz
external_mesa3d-5737fda093f8e1f4daabda3d55762dc7c4fe8ed9.tar.bz2
Don't use R200 texture constants - R300 fields are all different.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/r300/r300_texstate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_texstate.c b/src/mesa/drivers/dri/r300/r300_texstate.c
index cb615fa..3d9126e 100644
--- a/src/mesa/drivers/dri/r300/r300_texstate.c
+++ b/src/mesa/drivers/dri/r300/r300_texstate.c
@@ -1095,10 +1095,12 @@ static GLboolean enable_tex_2d(GLcontext * ctx, int unit)
/* Need to load the 2d images associated with this unit.
*/
+ #if 0
if (t->format & R200_TXFORMAT_NON_POWER2) {
t->format &= ~R200_TXFORMAT_NON_POWER2;
t->base.dirty_images[0] = ~0;
}
+ #endif
ASSERT(tObj->Target == GL_TEXTURE_2D || tObj->Target == GL_TEXTURE_1D);
@@ -1199,10 +1201,12 @@ static GLboolean enable_tex_rect(GLcontext * ctx, int unit)
struct gl_texture_object *tObj = texUnit->_Current;
r300TexObjPtr t = (r300TexObjPtr) tObj->DriverData;
+ #if 0
if (!(t->format & R200_TXFORMAT_NON_POWER2)) {
t->format |= R200_TXFORMAT_NON_POWER2;
t->base.dirty_images[0] = ~0;
}
+ #endif
ASSERT(tObj->Target == GL_TEXTURE_RECTANGLE_NV);