[Mesa-dev] [PATCH v2 25/25] i965: Don't call process_glsl_ir() for SPIR-V shaders

Timothy Arceri tarceri at itsqueeze.com
Wed Dec 6 09:06:20 UTC 2017


Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

On 01/12/17 04:28, Eduardo Lima Mitev wrote:
> v2: Use 'spirv_data' from gl_linked_shader instead, to check if shader
>     is SPIR-V. (Timothy Arceri)
> ---
>   src/mesa/drivers/dri/i965/brw_link.cpp | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp
> index d18521e792d..6bf4c413db4 100644
> --- a/src/mesa/drivers/dri/i965/brw_link.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_link.cpp
> @@ -236,7 +236,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);
>   
> 


More information about the mesa-dev mailing list