wrapper for grTexLodBiasValue()
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 15 Apr 2000 23:04:11 +0000 (23:04 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 15 Apr 2000 23:04:11 +0000 (23:04 +0000)
src/mesa/drivers/glide/fxddtex.c
src/mesa/drivers/glide/fxglidew.h

index 6f817ccaa395277202500a94db029cd49645cb82..3745312923c6ab790b8f922241ab940c033775a1 100644 (file)
@@ -176,10 +176,10 @@ void fxDDTexEnv(GLcontext *ctx, GLenum target, GLenum pname, const GLfloat *para
 
    /* apply any lod biasing right now */
    if (pname==GL_TEXTURE_LOD_BIAS_EXT) {
-     grTexLodBiasValue(GR_TMU0,*param);
+     FX_grTexLodBiasValue(GR_TMU0,*param);
 
      if(fxMesa->haveTwoTMUs) {
-       grTexLodBiasValue(GR_TMU1,*param);
+       FX_grTexLodBiasValue(GR_TMU1,*param);
      }
 
    }
index 28556d8c58deac061ffbce35988661c07d0ab07f..6da1ea5f309912ac84c250074c4c439e27375889 100644 (file)
@@ -821,9 +821,18 @@ extern FxU32 FX_grTexTextureMemRequired(FxU32 evenOdd, GrTexInfo *info);
 
 #define FX_grGlideShutdown()           \
   do {                                 \
-    BEGIN_CLIP_LOOP();                 \
+    BEGIN_BOARD_LOCK();                        \
     grGlideShutdown();                 \
-    END_CLIP_LOOP();                   \
+    END_BOARD_LOCK();                  \
+  } while (0)
+
+#define FX_grTexLodBiasValue_NoLock(t, v) grTexLodBiasValue(t, v)
+
+#define FX_grTexLodBiasValue(t, v)     \
+  do {                                 \
+    BEGIN_BOARD_LOCK();                        \
+    grTexLodBiasValue(t, v);   \
+    END_BOARD_LOCK();                  \
   } while (0)
 
 #define FX_grGlideInit_NoLock grGlideInit