From 2648774bba8dbfa04f1dc7cea574203ab90792a3 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 1 Mar 2018 03:38:32 +0000 Subject: [PATCH] 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: Signed-off-by: Dave Airlie (cherry picked from commit bf2af063c3ac1ef7b948ddfb203aea04f857fc0f) --- src/gallium/drivers/r600/r600_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index e1efdf9c5f4..1fd009f5db9 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -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; }