From 636f9c91d37a59a71b4ed2c30b025e3d30dc0a1b Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Tue, 15 Feb 2022 19:41:39 +0900 Subject: [PATCH] shader: Handle TGSI_SEMANTIC_BCOLOR as input Signed-off-by: Akihiko Odaki Reviewed-by: Gert Wollny --- src/vrend_shader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index d91afa4..dc102e0 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -1285,6 +1285,8 @@ iter_declaration(struct tgsi_iterate_context *iter, snprintf(ctx->inputs[i].glsl_name, 128, "%s_f%d", name_prefix, ctx->inputs[i].sid); } else if (ctx->inputs[i].name == TGSI_SEMANTIC_COLOR) snprintf(ctx->inputs[i].glsl_name, 128, "%s_c%d", name_prefix, ctx->inputs[i].sid); + else if (ctx->inputs[i].name == TGSI_SEMANTIC_BCOLOR) + snprintf(ctx->inputs[i].glsl_name, 128, "%s_bc%d", name_prefix, ctx->inputs[i].sid); else if (ctx->inputs[i].name == TGSI_SEMANTIC_GENERIC) snprintf(ctx->inputs[i].glsl_name, 128, "%s_g%dA%d", name_prefix, ctx->inputs[i].sid, ctx->inputs[i].array_id); else if (ctx->inputs[i].name == TGSI_SEMANTIC_PATCH)