Skip to content
Snippets Groups Projects
Commit 73eb497b authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig Committed by Marge Bot
Browse files

nir/lower_fragcolor: Fix driver_location assignment


Fixes crash in
dEQP-GLES31.functional.shaders.framebuffer_fetch.basic.last_frag_data
when using this pass.

Signed-off-by: default avatarAlyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: default avatarErik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <mesa/mesa!10411>
parent fe989df3
No related merge requests found
......@@ -88,7 +88,7 @@ lower_fragcolor_instr(nir_builder *b, nir_instr *intr, UNUSED void *data)
nir_variable *out_color = nir_variable_create(b->shader, nir_var_shader_out,
out->type, name);
out_color->data.location = FRAG_RESULT_DATA0 + i;
out_color->data.driver_location = i;
out_color->data.driver_location = b->shader->num_outputs++;
out_color->data.index = out->data.index;
nir_store_var(b, out_color, frag_color, writemask);
b->shader->info.outputs_written |= BITFIELD64_BIT(FRAG_RESULT_DATA0 + i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment