diff options
author | Eduardo Lima Mitev <[email protected]> | 2017-10-10 14:08:35 +0200 |
---|---|---|
committer | Alejandro PiƱeiro <[email protected]> | 2018-03-30 09:14:56 +0200 |
commit | e7fc18097ef5770f0da4186050f772518f28174a (patch) | |
tree | 9c375a43e0102ad557bb3b62daaa538ae5a8303a /src | |
parent | e7d97aa75ded652a36e8addad52d075c51b58c33 (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_link.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |