glsl/standalone: init shader stage in init_gl_program()
authorVasily Khoruzhick <anarsoul@gmail.com>
Fri, 16 Aug 2019 05:17:26 +0000 (22:17 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Sat, 17 Aug 2019 18:14:40 +0000 (11:14 -0700)
commit0e394cda0db60ce8b584aac37913b793847ad518
tree22a45ab4d021546b8b5e3cbe96b0cc88a89b824c
parent16edd02bfa872c9af8725f732d81760c948d76e8
glsl/standalone: init shader stage in init_gl_program()

Otherwise lima standalone compiler fails when trying to compile fragment
shader with:

lima_compiler: ../src/compiler/nir/nir.c:55: nir_shader_create: Assertion `si->stage == stage' failed

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/compiler/glsl/standalone.cpp