cause a raster fallback if a yuv texture is used on texture unit > 0 as yuv conversio...
authorRoland Scheidegger <rscheidegger@gmx.ch>
Sun, 10 Sep 2006 13:48:51 +0000 (13:48 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Sun, 10 Sep 2006 13:48:51 +0000 (13:48 +0000)
src/mesa/drivers/dri/radeon/radeon_texstate.c

index 3467832a3b0c6435c15d1385c0d2d351a8f14dcc..0a3c20f707189dfdb72caa2be2662e2ebb70bc93 100644 (file)
@@ -1197,6 +1197,9 @@ static GLboolean update_tex_common( GLcontext *ctx, int unit )
       fprintf(stderr, "%s: border\n", __FUNCTION__);
       return GL_FALSE;
    }
+   /* yuv conversion only works in first unit */
+   if (unit != 0 && (t->pp_txfilter & RADEON_YUV_TO_RGB))
+      return GL_FALSE;
 
    /* Update state if this is a different texture object to last
     * time.