projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f27546
)
softpipe: route correct coordinates for shadow cube sampling.
author
Dave Airlie
<airlied@redhat.com>
Thu, 5 Jan 2012 16:16:24 +0000
(16:16 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 11 Jan 2012 17:35:25 +0000
(17:35 +0000)
This fixes the shadow cube map sampling on softpipe.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_tex_sample.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_tex_sample.c
b/src/gallium/drivers/softpipe/sp_tex_sample.c
index f552b5e323760f24ba3ade6e80a10679dbe83858..bd0546e021539b7747cd0649a5ca0187e42b1c07 100644
(file)
--- 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);