r600/cayman: fix fragcood loading recip generation.

This fixes some hangs seen where the recip_ieee opcodes would
end up split across the wrong slots.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit bf2af063c3)
This commit is contained in:
Dave Airlie 2018-03-01 03:38:32 +00:00 committed by Juan A. Suarez Romero
parent a12309466c
commit 2648774bba

View file

@ -3231,7 +3231,7 @@ static int r600_shader_from_tgsi(struct r600_context *rctx,
alu.dst.sel = shader->input[ctx.fragcoord_input].gpr;
alu.dst.chan = j;
alu.dst.write = (j == 3);
alu.last = 1;
alu.last = (j == 3);
if ((r = r600_bytecode_add_alu(ctx.bc, &alu)))
return r;
}