projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
498d9d0
)
st/mesa: set stencil border color the same as intensity
author
Marek Olšák
<marek.olsak@amd.com>
Mon, 2 Apr 2018 21:58:30 +0000
(17:58 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 4 Apr 2018 20:55:52 +0000
(16:55 -0400)
This fixes some stencil border color tests on Vega and Raven chips.
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_format.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_format.c
b/src/mesa/state_tracker/st_format.c
index c50ce1e14bb14307cb053f038a8a91e7b10d102a..3db3c7e967c6dcd1a5d6389f7311e949d3d87ba4 100644
(file)
--- a/
src/mesa/state_tracker/st_format.c
+++ b/
src/mesa/state_tracker/st_format.c
@@
-2545,6
+2545,8
@@
st_translate_color(const union gl_color_union *colorIn,
out[0] = out[1] = out[2] = in[0];
out[3] = in[3];
break;
+ /* Stencil border is tricky on some hw. Help drivers a little here. */
+ case GL_STENCIL_INDEX:
case GL_INTENSITY:
out[0] = out[1] = out[2] = out[3] = in[0];
break;