r600/shader: when using images always load thread id gpr at start (v2)
authorDave Airlie <airlied@redhat.com>
Wed, 28 Feb 2018 06:42:53 +0000 (06:42 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Feb 2018 20:16:19 +0000 (20:16 +0000)
commit7cb9353de38461c6492712b7b43ee69c57921705
treec33f70362508deb6d7f33416d6e4121c5fd95aa2
parent8369fdee8ba311aab6a6cf5e75f5f12f56469779
r600/shader: when using images always load thread id gpr at start (v2)

The delayed loading code was fail if we had control flow.

This fixes:
tests/spec/arb_shader_image_load_store/execution/image_checkerboard.shader_test

v2: don't use temp_reg before setting temp_reg up.

Tested-by: Gert Wollny <gw.fossdev@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c