From eb9dc2595f33f43e99c70dd69588f5573459fbca Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 8 May 2010 01:19:59 +0200 Subject: r300/compiler: generalize depth texture mode to support arbitrary swizzles --- src/gallium/drivers/r300/r300_fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index 88303f074cd..5173e2cf6d0 100644 --- a/src/gallium/drivers/r300/r300_fs.c +++ b/src/gallium/drivers/r300/r300_fs.c @@ -147,8 +147,8 @@ static void get_external_state( if (s->state.compare_mode == PIPE_TEX_COMPARE_R_TO_TEXTURE) { /* XXX Gallium doesn't provide us with any information regarding - * this mode, so we are screwed. I'm setting 0 = LUMINANCE. */ - state->unit[i].depth_texture_mode = 0; + * this mode, so we are screwed. Let's set INTENSITY for now. */ + state->unit[i].depth_texture_swizzle = RC_SWIZZLE_XYZW; /* Fortunately, no need to translate this. */ state->unit[i].texture_compare_func = s->state.compare_func; -- cgit v1.2.3