radeonsi/nir: Don't add const offset to indirect
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 20 Aug 2019 10:45:32 +0000 (12:45 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 23 Aug 2019 09:05:31 +0000 (11:05 +0200)
commit82589d3ffd71f3d4b1dee08b058cd89702a3d7cd
treef930fc25e3b0d9e2091e99fd0069c4957a902755
parent400db1852bda58f0559c5612fcc378695380425a
radeonsi/nir: Don't add const offset to indirect

This is already done in get_deref_offset() in the common code. We were
adding it twice accidentally.

Fixes KHR-GL45.enhanced_layouts.varying_array_locations.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c