From: Eric Anholt Date: Sat, 2 Feb 2019 00:41:56 +0000 (-0800) Subject: v3d: Fix precompile of FRAG_RESULT_DATA1 and higher outputs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17a649af052b8d4b0eef0a6a52b772ceb9732494;p=mesa.git v3d: Fix precompile of FRAG_RESULT_DATA1 and higher outputs. I was just leaving the other MRT targets than DATA0 out, by accident. --- diff --git a/src/gallium/drivers/v3d/v3d_program.c b/src/gallium/drivers/v3d/v3d_program.c index bebcf196ee8..61ae1f25981 100644 --- a/src/gallium/drivers/v3d/v3d_program.c +++ b/src/gallium/drivers/v3d/v3d_program.c @@ -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);