glsl: set old ldexp operand to NULL when lowering
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 17 Aug 2017 23:32:15 +0000 (09:32 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 18 Aug 2017 02:07:34 +0000 (12:07 +1000)
commitc03eefdf843098c93c8e95856e0e482a60915590
treec48d6ed68468ecf3934c8407177e60ed8edcd2a3
parent1af8342b0c30d93feafdae99a69021cdb0caa8b5
glsl: set old ldexp operand to NULL when lowering

This fixes an assert during IR validation in LLVMpipe.

Fixes: e2e2c5abd279 (glsl: calculate number of operands in an expression once)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102274
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Brian Paul <brianp@vmware.com>
src/compiler/glsl/lower_instructions.cpp