aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-02-01 16:41:56 -0800
committerEric Anholt <[email protected]>2019-02-05 15:35:49 -0800
commit17a649af052b8d4b0eef0a6a52b772ceb9732494 (patch)
treeae85e2985748d87106d9d1e0f99ce1979af4c7da /src/gallium/drivers/v3d
parentba4b22011a213dcd23a2f5824e6720d0aa28076a (diff)
v3d: Fix precompile of FRAG_RESULT_DATA1 and higher outputs.
I was just leaving the other MRT targets than DATA0 out, by accident.
Diffstat (limited to 'src/gallium/drivers/v3d')
-rw-r--r--src/gallium/drivers/v3d/v3d_program.c2
1 files changed, 1 insertions, 1 deletions
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);