projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f382fd
)
softpipe: return alpha=1 in shadow_compare() function
author
Brian Paul
<brianp@vmware.com>
Fri, 19 Jun 2009 14:40:43 +0000
(08:40 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 19 Jun 2009 14:53:15 +0000
(08:53 -0600)
The alpha value wasn't set at all before so we got unpredictable results.
Note that we don't currently obey GL_DEPTH_TEXTURE_MODE in the state
tracker. For now, we return the result in the default mode (r,r,r,1).
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 adbd0cb7f0c18a9e8b9e482c0607af3f75e1ac40..5de358dae9395ded753d730dfc337074f36fa481 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/
src/gallium/drivers/softpipe/sp_tex_sample.c
@@
-744,7
+744,9
@@
shadow_compare(uint compare_func,
break;
}
+ /* XXX returning result for default GL_DEPTH_TEXTURE_MODE = GL_LUMINANCE */
rgba[0][j] = rgba[1][j] = rgba[2][j] = (float) k;
+ rgba[3][j] = 1.0F;
}