glsl/mesa: set separate_shader directly in shader_info
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 31 Oct 2016 08:35:49 +0000 (19:35 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 29 Dec 2016 23:57:16 +0000 (10:57 +1100)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/glsl_to_nir.cpp
src/mesa/main/shaderapi.c

index fcaca9f8b6c006d32afb0141b3b8da8e4184873d..4127638d2afd2d009ca1def8f0aef97b21c0e9a7 100644 (file)
@@ -154,7 +154,6 @@ glsl_to_nir(const struct gl_shader_program *shader_prog,
    shader->info->num_ssbos = sh->NumShaderStorageBlocks;
    shader->info->clip_distance_array_size = sh->Program->ClipDistanceArraySize;
    shader->info->cull_distance_array_size = sh->Program->CullDistanceArraySize;
-   shader->info->separate_shader = shader_prog->SeparateShader;
    shader->info->has_transform_feedback_varyings =
       shader_prog->TransformFeedback.NumVarying > 0;
 
index 270c7d6645ea8dc07eb24660da6b7000dc90ba14..c1e67f363664af3e503aa802567743007083b997 100644 (file)
@@ -2160,6 +2160,7 @@ _mesa_copy_linked_program_data(const struct gl_shader_program *src,
    struct gl_program *dst = dst_sh->Program;
 
    dst->info.num_images = dst_sh->NumImages;
+   dst->info.separate_shader = src->SeparateShader;
 
    switch (dst_sh->Stage) {
    case MESA_SHADER_VERTEX: