diff options
author | Roland Scheidegger <[email protected]> | 2006-09-10 13:48:51 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2006-09-10 13:48:51 +0000 |
commit | 799896244439c586b9610c7eedfef715f652d51b (patch) | |
tree | 98293c3f0ca03b49ec53370696d3c3d158b38cf7 /src | |
parent | 02df36f394da4f699b4841c279a6b573fcb7c32b (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')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_texstate.c | 3 |
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 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. |