vc4: Consider FS backface color loads as color inputs as well.

This fixes flatshading of backface color in 4 of the piglit interpolation
tests.
This commit is contained in:
Eric Anholt
2014-12-11 21:28:12 -08:00
parent 5b3c0d999c
commit 92b85fba89
+4 -1
View File
@@ -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++;
}