summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index cea2a490eca..b48c2c4c5c9 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -2210,8 +2210,11 @@ vc4_get_compiled_shader(struct vc4_context *vc4, enum qstage stage,
if (sem->semantic == (uint8_t)~0)
continue;
- if (sem->semantic == TGSI_SEMANTIC_COLOR)
+ if (sem->semantic == TGSI_SEMANTIC_COLOR ||
+ sem->semantic == TGSI_SEMANTIC_BCOLOR) {
shader->color_inputs |= (1 << shader->num_inputs);
+ }
+
shader->input_semantics[shader->num_inputs] = *sem;
shader->num_inputs++;
}