summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorRoland Scheidegger <rscheidegger@gmx.ch>2006-09-10 13:48:51 +0000
committerRoland Scheidegger <rscheidegger@gmx.ch>2006-09-10 13:48:51 +0000
commit799896244439c586b9610c7eedfef715f652d51b (patch)
tree98293c3f0ca03b49ec53370696d3c3d158b38cf7 /src/mesa
parent02df36f394da4f699b4841c279a6b573fcb7c32b (diff)
cause a raster fallback if a yuv texture is used on texture unit > 0 as yuv conversion appears only to work on first unit.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_texstate.c3
1 files changed, 3 insertions, 0 deletions
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.