radeonsi: fix a regression in si_eliminate_const_output
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 20 Oct 2016 11:05:40 +0000 (13:05 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 21 Oct 2016 07:59:26 +0000 (09:59 +0200)
commit17353ef043beede4f46462004864cefc29ab0014
tree56118f3fdc319258e95a73df52b57906c1fbc07e
parent8cf0f057130ffb322344dbda8d18c93836ef6fed
radeonsi: fix a regression in si_eliminate_const_output

A constant value of float type is not necessarily a ConstantFP: it could also
be a constant expression that for some reason hasn't been folded.

This fixes a regression in GL45-CTS.arrays_of_arrays_gl.InteractionFunctionCalls2
that was introduced by commit 3ec9975555d1cc5365413ad9062f412904f944a3.

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