v3d: Fix precompile of FRAG_RESULT_DATA1 and higher outputs.

I was just leaving the other MRT targets than DATA0 out, by accident.
This commit is contained in:
Eric Anholt 2019-02-01 16:41:56 -08:00
parent ba4b22011a
commit 17a649af05

View file

@ -200,7 +200,7 @@ v3d_shader_precompile(struct v3d_context *v3d,
nir_foreach_variable(var, &s->outputs) {
if (var->data.location == FRAG_RESULT_COLOR) {
key.nr_cbufs = 1;
} else if (var->data.location == FRAG_RESULT_DATA0) {
} else if (var->data.location >= FRAG_RESULT_DATA0) {
key.nr_cbufs = MAX2(key.nr_cbufs,
var->data.location -
FRAG_RESULT_DATA0 + 1);