glsl: copy the how_declared field when converting to nir
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 22 Oct 2019 00:29:47 +0000 (11:29 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 13 Dec 2019 00:07:19 +0000 (00:07 +0000)
commit89b2b0f767e2bf7bc83972c2110b9cdc6a2e1c08
tree97482df5a1f5bbb3133b2b352f082cbe090c1c62
parentc3823d2d2944e8cd1f22bba01390cfb96c245bf7
glsl: copy the how_declared field when converting to nir

This is needed to make use of nir_build_program_resource_list().

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/glsl_to_nir.cpp