From: Roland Scheidegger Date: Sun, 10 Sep 2006 13:48:51 +0000 (+0000) Subject: cause a raster fallback if a yuv texture is used on texture unit > 0 as yuv conversio... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=799896244439c586b9610c7eedfef715f652d51b;p=mesa.git cause a raster fallback if a yuv texture is used on texture unit > 0 as yuv conversion appears only to work on first unit. --- diff --git a/src/mesa/drivers/dri/radeon/radeon_texstate.c b/src/mesa/drivers/dri/radeon/radeon_texstate.c index 3467832a3b0..0a3c20f7071 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texstate.c +++ b/src/mesa/drivers/dri/radeon/radeon_texstate.c @@ -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.