From 799896244439c586b9610c7eedfef715f652d51b Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Sun, 10 Sep 2006 13:48:51 +0000 Subject: cause a raster fallback if a yuv texture is used on texture unit > 0 as yuv conversion appears only to work on first unit. --- src/mesa/drivers/dri/radeon/radeon_texstate.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/radeon/radeon_texstate.c b/src/mesa/drivers/dri/radeon/radeon_texstate.c index 3467832a3b..0a3c20f707 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. -- cgit v1.2.3