summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-04-02 17:58:30 -0400
committerMarek Olšák <[email protected]>2018-04-04 16:55:52 -0400
commitd9dc26c94e454385e2094727f4163e7ba4e20a7f (patch)
treecbef81295e26e81045366dae0fa2fc196609561a
parent498d9d0f4decb69457857841873e147f1fa6a176 (diff)
st/mesa: set stencil border color the same as intensity
This fixes some stencil border color tests on Vega and Raven chips. Reviewed-by: Ilia Mirkin <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index c50ce1e14bb..3db3c7e967c 100644
--- 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;