radeonsi: ensure that temp array allocas are in the entry block
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 29 Jul 2017 07:17:53 +0000 (09:17 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 13:00:22 +0000 (15:00 +0200)
commit2879a602dd5d133c792d262b6be98aa6f810c16d
treeff4295818e3dbff895212b0e90bbef0078fc30f0
parentdfe237aef9e39c02df92299fb30c44d3534dc524
radeonsi: ensure that temp array allocas are in the entry block

Otherwise, code generation fails. This has become necessary since some
shaders are wrapped in control flow.

Fixes: 081ac6e5c6d2 ("radeonsi/gfx9: always wrap GS and TCS in an if-block (v2)")
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c