diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-05-08 05:59:28 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-05-08 23:03:45 +0200 |
commit | 78e881368b392d8a6945990c20493560fcd73231 (patch) | |
tree | 1979b9d4c840fd1ebaef2029626bfd7e50cb2761 /src/gallium/drivers/r300/r300_fs.c | |
parent | e812c0439cc6a6ee7b0cda33d30dc5cbc9159733 (diff) | |
download | external_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.c | 2 |
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; |