From b6971e08b8e0b37434988371a8608ed2543dd055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 5 Mar 2015 22:43:46 +0100 Subject: [PATCH] shader: ignore empty color mask in emit_color_select() Fixes piglit interpolation-flat-other-flat-none.shader_test --- src/vrend_shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index a53ee2d..d997c0c 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -678,8 +678,8 @@ static int emit_color_select(struct dump_ctx *ctx) { char buf[255]; char *sret = NULL; - - if (!ctx->key->color_two_side) + + if (!ctx->key->color_two_side || !(ctx->color_in_mask & 0x3)) return 0; if (ctx->color_in_mask & 1) {