[Mesa-dev] [PATCH 07/16] glsl: Merge blend_support qualifiers when linking.
Francisco Jerez
currojerez at riseup.net
Tue Aug 16 21:46:05 UTC 2016
Kenneth Graunke <kenneth at whitecape.org> writes:
> Since each qualifier represents a blending mode the shader can be used
> with, we take the union of all possible modes when linking.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
> ---
> src/compiler/glsl/linker.cpp | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp
> index 10df74a..e8f2e29 100644
> --- a/src/compiler/glsl/linker.cpp
> +++ b/src/compiler/glsl/linker.cpp
> @@ -1880,6 +1880,7 @@ link_fs_inout_layout_qualifiers(struct gl_shader_program *prog,
> linked_shader->info.uses_gl_fragcoord = false;
> linked_shader->info.origin_upper_left = false;
> linked_shader->info.pixel_center_integer = false;
> + linked_shader->info.BlendSupport = 0;
>
> if (linked_shader->Stage != MESA_SHADER_FRAGMENT ||
> (prog->Version < 150 && !prog->ARB_fragment_coord_conventions_enable))
> @@ -1938,6 +1939,7 @@ link_fs_inout_layout_qualifiers(struct gl_shader_program *prog,
>
> linked_shader->info.EarlyFragmentTests |=
> shader->info.EarlyFragmentTests;
> + linked_shader->info.BlendSupport |= shader->info.BlendSupport;
> }
> }
>
> --
> 2.9.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160816/4bfb32a1/attachment.sig>
More information about the mesa-dev
mailing list