r600/sb: update last_cf if alu is the last clause
authorDave Airlie <airlied@redhat.com>
Wed, 10 Jan 2018 03:46:50 +0000 (03:46 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Jan 2018 03:36:41 +0000 (03:36 +0000)
commit2f2cef385fd0f96f5cca3d5ccc48184bbc681831
treed12254667712f8e06c6805831c13deb5f1f431c0
parentda977ad9074707932b9dc1f7c52b5427ce920c13
r600/sb: update last_cf if alu is the last clause

It's rare to have a final alu clause on normal shaders (exports)
but tess shaders write to LDS as their output, so we see some
alu clauses, and the CF_END get put in the wrong place.

This makes sure to update last_cf correctly.

Acked-By: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_bc_finalize.cpp