Commit 17a649af authored by Emma Anholt's avatar Emma Anholt
Browse files

v3d: Fix precompile of FRAG_RESULT_DATA1 and higher outputs.

I was just leaving the other MRT targets than DATA0 out, by accident.
parent ba4b2201
...@@ -200,7 +200,7 @@ v3d_shader_precompile(struct v3d_context *v3d, ...@@ -200,7 +200,7 @@ v3d_shader_precompile(struct v3d_context *v3d,
nir_foreach_variable(var, &s->outputs) { nir_foreach_variable(var, &s->outputs) {
if (var->data.location == FRAG_RESULT_COLOR) { if (var->data.location == FRAG_RESULT_COLOR) {
key.nr_cbufs = 1; 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, key.nr_cbufs = MAX2(key.nr_cbufs,
var->data.location - var->data.location -
FRAG_RESULT_DATA0 + 1); FRAG_RESULT_DATA0 + 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment