Remove #ifdef's around PolygonOffset function.
authorVladimir Dergachev <volodya@freedesktop.org>
Tue, 8 Feb 2005 20:27:09 +0000 (20:27 +0000)
committerVladimir Dergachev <volodya@freedesktop.org>
Tue, 8 Feb 2005 20:27:09 +0000 (20:27 +0000)
Print number of missing entry for texture format.
Add alpha-luminance format.

src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/r300/r300_texstate.c

index 38a61ae6c8e99567ff2fd5a8feecf1190254b158..0abe242958d8eedb62668c759e6d82821bc49a60 100644 (file)
@@ -817,7 +817,6 @@ static void r300DepthRange(GLcontext * ctx, GLclampd nearval, GLclampd farval)
 /* =============================================================
  * Polygon state
  */
-#ifdef HAVE_ZBS
 static void r300PolygonOffset(GLcontext * ctx, GLfloat factor, GLfloat units)
 {
        r300ContextPtr rmesa = R300_CONTEXT(ctx);
@@ -833,7 +832,6 @@ static void r300PolygonOffset(GLcontext * ctx, GLfloat factor, GLfloat units)
        rmesa->hw.zbs.cmd[R300_ZBS_W_FACTOR] = r300PackFloat32(factor);
        rmesa->hw.zbs.cmd[R300_ZBS_W_CONSTANT] = r300PackFloat32(constant);
 }
-#endif
 
 /* Routing and texture-related */
 
@@ -1212,7 +1210,7 @@ void r300_setup_textures(GLcontext *ctx)
                                }
                        //fprintf(stderr, "t->format=%08x\n", t->format);
                        if((t->format & 0xffffff00)==0xffffff00){
-                               WARN_ONCE("unknown texture format encountered. Help me !\n");
+                               WARN_ONCE("unknown texture format (entry %x) encountered. Help me !\n", t->format & 0xff);
                                //fprintf(stderr, "t->format=%08x\n", t->format);
                                }
                        if (RADEON_DEBUG & DEBUG_STATE)
index bb79c18ded3fe10c2b53ad2eb7bc7126bb26a360..949ce987e104ec7828a02178fe012a2a284afe2f 100644 (file)
@@ -105,7 +105,7 @@ static const struct {
            {0xffffff09, 0},
            {0xffffff10, 0},
            {0xffffff11, 0},
-           {0xffffff12, 0},
+           {R300_EASY_TX_FORMAT(Y, Y, Y, X, Y8X8), 0},
            {0xffffff13, 0},
            {0xffffff14, 0},
            {0xffffff15,  0},