nir: Fix crash in nir_lower_wpos_center().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 20 May 2016 23:29:44 +0000 (16:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 May 2016 23:33:24 +0000 (16:33 -0700)
commitf7eb95a5269fab015df23dd7c5152418bbd10033
treef2b172136ab349c8c1ea541a86231661034d13bc
parent0970c563d6e4a30ab0852ef664dc97a995997f88
nir: Fix crash in nir_lower_wpos_center().

Otherwise we rewrote the fadd to use itself, causing crashes in
validation.  Instead, start after the last use like we should.

A brown paper bag fix.  Fixes crashes in several Vulkan tests.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_lower_wpos_center.c