summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_fs.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-05-08 01:19:59 +0200
committerMarek Olšák <maraeo@gmail.com>2010-05-08 23:03:44 +0200
commiteb9dc2595f33f43e99c70dd69588f5573459fbca (patch)
tree8cf1cced82daeeffbdcdb45bcc82986de2fe8872 /src/gallium/drivers/r300/r300_fs.c
parentc637f38e70881b2321db12f5f5fea9b46057ff6a (diff)
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.c4
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 88303f074c..5173e2cf6d 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;