diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-05-08 01:19:59 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-05-08 23:03:44 +0200 |
commit | eb9dc2595f33f43e99c70dd69588f5573459fbca (patch) | |
tree | 8cf1cced82daeeffbdcdb45bcc82986de2fe8872 /src/gallium/drivers/r300/r300_fs.c | |
parent | c637f38e70881b2321db12f5f5fea9b46057ff6a (diff) | |
download | external_mesa3d-eb9dc2595f33f43e99c70dd69588f5573459fbca.zip external_mesa3d-eb9dc2595f33f43e99c70dd69588f5573459fbca.tar.gz external_mesa3d-eb9dc2595f33f43e99c70dd69588f5573459fbca.tar.bz2 |
r300/compiler: generalize depth texture mode to support arbitrary swizzles
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index 88303f0..5173e2c 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; |