[Mesa-dev] [PATCH 4/5] st/mesa: expose ARB_indirect_parameters when the backend driver allows

Marek Olšák maraeo at gmail.com
Mon Jan 4 04:21:43 PST 2016


Patches 1-4:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sat, Jan 2, 2016 at 9:38 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/mesa/state_tracker/st_cb_bufferobjects.c | 1 +
>  src/mesa/state_tracker/st_extensions.c       | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
> index 5d20b26..e775453 100644
> --- a/src/mesa/state_tracker/st_cb_bufferobjects.c
> +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
> @@ -230,6 +230,7 @@ st_bufferobj_data(struct gl_context *ctx,
>        bind = PIPE_BIND_CONSTANT_BUFFER;
>        break;
>     case GL_DRAW_INDIRECT_BUFFER:
> +   case GL_PARAMETER_BUFFER_ARB:
>        bind = PIPE_BIND_COMMAND_ARGS_BUFFER;
>        break;
>     default:
> diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
> index 90eb677..3c198ec 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -452,6 +452,7 @@ void st_init_extensions(struct pipe_screen *screen,
>        { o(ARB_draw_instanced),               PIPE_CAP_TGSI_INSTANCEID                  },
>        { o(ARB_fragment_program_shadow),      PIPE_CAP_TEXTURE_SHADOW_MAP               },
>        { o(ARB_framebuffer_object),           PIPE_CAP_MIXED_FRAMEBUFFER_SIZES          },
> +      { o(ARB_indirect_parameters),          PIPE_CAP_MULTI_DRAW_INDIRECT_PARAMS       },
>        { o(ARB_instanced_arrays),             PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR  },
>        { o(ARB_occlusion_query),              PIPE_CAP_OCCLUSION_QUERY                  },
>        { o(ARB_occlusion_query2),             PIPE_CAP_OCCLUSION_QUERY                  },
> --
> 2.4.10
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list