From: Eduardo Lima Mitev Date: Tue, 10 Oct 2017 12:08:35 +0000 (+0200) Subject: i965: Don't call process_glsl_ir() for SPIR-V shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7fc18097ef5770f0da4186050f772518f28174a;p=mesa.git i965: Don't call process_glsl_ir() for SPIR-V shaders v2: Use 'spirv_data' from gl_linked_shader instead, to check if shader is SPIR-V. (Timothy Arceri) Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp index 274a738cbbf..7841626dc33 100644 --- a/src/mesa/drivers/dri/i965/brw_link.cpp +++ b/src/mesa/drivers/dri/i965/brw_link.cpp @@ -237,7 +237,8 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) struct gl_program *prog = shader->Program; prog->Parameters = _mesa_new_parameter_list(); - process_glsl_ir(brw, shProg, shader); + if (!shader->spirv_data) + process_glsl_ir(brw, shProg, shader); _mesa_copy_linked_program_data(shProg, shader);