Browse Source

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 <imirkin@alum.mit.edu>
tags/18.1-branchpoint
Marek Olšák 7 years ago
parent
commit
d9dc26c94e
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/mesa/state_tracker/st_format.c

+ 2
- 0
src/mesa/state_tracker/st_format.c View File

@@ -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;

Loading…
Cancel
Save