From 17a649af052b8d4b0eef0a6a52b772ceb9732494 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 1 Feb 2019 16:41:56 -0800 Subject: [PATCH] v3d: Fix precompile of FRAG_RESULT_DATA1 and higher outputs. I was just leaving the other MRT targets than DATA0 out, by accident. --- src/gallium/drivers/v3d/v3d_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2