r600: Take ALU_EXTENDED into account when evaluating jump offsets
authorGert Wollny <gw.fossdev@gmail.com>
Sat, 24 Feb 2018 10:31:22 +0000 (11:31 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 26 Feb 2018 00:29:48 +0000 (10:29 +1000)
commitc7cadcbda47537d474eea52b9e77e57ef9287f9b
tree1c04c2bec326e71deea71bc681e57328184ff982
parent51562ea7a0678b8067f438f17a3d5fbe5280a997
r600: Take ALU_EXTENDED into account when evaluating jump offsets

ALU_EXTENDED needs 4 DWORDS instead of the usual 2, hence if the last ALU
clause within a IF-JUMP or ELSE branch is ALU_EXTENDED the target jump
offset needs to be adjusted accordingly.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104654
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c