diff options
author | Dave Airlie <[email protected]> | 2012-01-05 16:16:24 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-01-11 17:35:25 +0000 |
commit | fffca9046c96e3411493c39ebb1855012620495c (patch) | |
tree | 179b07cf92167d47d493cf0aff4e1e106870d48d /src | |
parent | 2f275466f78b7268e4f7ae8890eafd4243a2b8b0 (diff) |
softpipe: route correct coordinates for shadow cube sampling.
This fixes the shadow cube map sampling on softpipe.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tex_sample.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index f552b5e3237..bd0546e0215 100644 --- a/src/gallium/drivers/softpipe/sp_tex_sample.c +++ b/src/gallium/drivers/softpipe/sp_tex_sample.c @@ -2118,7 +2118,8 @@ sample_compare(struct tgsi_sampler *tgsi_sampler, * RGBA channels. We look at the red channel here. */ - if (samp->view->texture->target == PIPE_TEXTURE_2D_ARRAY) { + if (samp->view->texture->target == PIPE_TEXTURE_2D_ARRAY || + samp->view->texture->target == PIPE_TEXTURE_CUBE) { pc0 = CLAMP(c0[0], 0.0F, 1.0F); pc1 = CLAMP(c0[1], 0.0F, 1.0F); pc2 = CLAMP(c0[2], 0.0F, 1.0F); |