[Mesa-dev] [PATCH v3 2/8] glsl: Add required variables to _mesa_glsl_parse_state for EXT_blend_func_extended
Ian Romanick
idr at freedesktop.org
Tue Nov 10 14:02:18 PST 2015
This patch is
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
On 11/05/2015 06:47 PM, Ryan Houdek wrote:
> This adds a state for the maximum dual source draw variables available
> and the variable for determining if the extension has been enabled
> in the program shaders.
> ---
> src/glsl/glsl_parser_extras.cpp | 3 +++
> src/glsl/glsl_parser_extras.h | 5 +++++
> 2 files changed, 8 insertions(+)
>
> diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
> index 14cb9fc..31c0319 100644
> --- a/src/glsl/glsl_parser_extras.cpp
> +++ b/src/glsl/glsl_parser_extras.cpp
> @@ -102,6 +102,8 @@ _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *_ctx,
>
> this->Const.MaxDrawBuffers = ctx->Const.MaxDrawBuffers;
>
> + this->Const.MaxDualSourceDrawBuffers = ctx->Const.MaxDualSourceDrawBuffers;
> +
> /* 1.50 constants */
> this->Const.MaxVertexOutputComponents = ctx->Const.Program[MESA_SHADER_VERTEX].MaxOutputComponents;
> this->Const.MaxGeometryInputComponents = ctx->Const.Program[MESA_SHADER_GEOMETRY].MaxInputComponents;
> @@ -643,6 +645,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
> EXT(AMD_shader_trinary_minmax, true, false, dummy_true),
> EXT(AMD_vertex_shader_layer, true, false, AMD_vertex_shader_layer),
> EXT(AMD_vertex_shader_viewport_index, true, false, AMD_vertex_shader_viewport_index),
> + EXT(EXT_blend_func_extended, false, true, ARB_blend_func_extended),
> EXT(EXT_draw_buffers, false, true, dummy_true),
> EXT(EXT_separate_shader_objects, false, true, dummy_true),
> EXT(EXT_shader_integer_mix, true, true, EXT_shader_integer_mix),
> diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
> index b54c535..7dd9477 100644
> --- a/src/glsl/glsl_parser_extras.h
> +++ b/src/glsl/glsl_parser_extras.h
> @@ -375,6 +375,9 @@ struct _mesa_glsl_parse_state {
> /* ARB_draw_buffers */
> unsigned MaxDrawBuffers;
>
> + /* ARB_blend_func_extended */
> + unsigned MaxDualSourceDrawBuffers;
> +
> /* 3.00 ES */
> int MinProgramTexelOffset;
> int MaxProgramTexelOffset;
> @@ -588,6 +591,8 @@ struct _mesa_glsl_parse_state {
> bool AMD_vertex_shader_layer_warn;
> bool AMD_vertex_shader_viewport_index_enable;
> bool AMD_vertex_shader_viewport_index_warn;
> + bool EXT_blend_func_extended_enable;
> + bool EXT_blend_func_extended_warn;
> bool EXT_draw_buffers_enable;
> bool EXT_draw_buffers_warn;
> bool EXT_separate_shader_objects_enable;
>
More information about the mesa-dev
mailing list