mesa: ensure that variable is initialized
authorDylan Baker <dylan@pnwbakers.com>
Mon, 2 Apr 2018 22:29:45 +0000 (15:29 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 3 Apr 2018 15:47:59 +0000 (08:47 -0700)
commit6f6e711c721eba8dad1541479e31d5db5108b41d
treeb870b364a4d96cb9f826a53d1cfeda046c1a3b7a
parentd3e96b106307af7a5de8875cc5d6751c5b5edbb1
mesa: ensure that variable is initialized

This variable controls whether we link using the glsl code path or the
spirv path. It's set when we validate that all shaders are glsl or
spirv, but if there are no shaders attached to the program it will
remain unset, resulting in undefined behavior. We want to go down the
glsl path in that case, so initialize to false.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105820
Fixes: 16f6634e7fb5ada308e55b852cd49251e7f3f8b1
       ("mesa/program: Link SPIR-V shaders using the SPIR-V code-path")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/mesa/program/ir_to_mesa.cpp