summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_fs.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-05-08 05:59:28 +0200
committerMarek Olšák <maraeo@gmail.com>2010-05-08 23:03:45 +0200
commit78e881368b392d8a6945990c20493560fcd73231 (patch)
tree1979b9d4c840fd1ebaef2029626bfd7e50cb2761 /src/gallium/drivers/r300/r300_fs.c
parente812c0439cc6a6ee7b0cda33d30dc5cbc9159733 (diff)
downloadexternal_mesa3d-78e881368b392d8a6945990c20493560fcd73231.zip
external_mesa3d-78e881368b392d8a6945990c20493560fcd73231.tar.gz
external_mesa3d-78e881368b392d8a6945990c20493560fcd73231.tar.bz2
r300g: respect compare mode regardless of sampler type
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.c')
-rw-r--r--src/gallium/drivers/r300/r300_fs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c
index 5173e2c..1902345 100644
--- a/src/gallium/drivers/r300/r300_fs.c
+++ b/src/gallium/drivers/r300/r300_fs.c
@@ -146,6 +146,8 @@ static void get_external_state(
}
if (s->state.compare_mode == PIPE_TEX_COMPARE_R_TO_TEXTURE) {
+ state->unit[i].compare_mode_enabled = 1;
+
/* XXX Gallium doesn't provide us with any information regarding
* this mode, so we are screwed. Let's set INTENSITY for now. */
state->unit[i].depth_texture_swizzle = RC_SWIZZLE_XYZW;