r600/sb/cayman: fix indirect ubo access on cayman
authorDave Airlie <airlied@redhat.com>
Mon, 5 Feb 2018 06:04:18 +0000 (16:04 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Feb 2018 20:08:11 +0000 (06:08 +1000)
commit8bdad9fa1faf3fa258a7731605e8b2bf218a33bd
tree8ac2921ead636c14b8b077926ce0fde6e2abf013
parent012100b80936325945f24a580f643e535028fe19
r600/sb/cayman: fix indirect ubo access on cayman

With sb enabled on cayman, this was overwriting the proper
cf index value with random ones if the dst gpr was 2 or 3,
only save the value for a MOVA instruction.

Fixes:
KHR-GL45.gpu_shader5.uniform_blocks_array_indexing
(on cayman with sb)

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_bc_parser.cpp