[virglrenderer-devel] [PATCH 2/3] initial feature extension support

Dave Airlie airlied at gmail.com
Mon Jul 23 02:46:49 UTC 2018


On 23 July 2018 at 12:08, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This adds a mechanism to detect supported GL features on the
> host side and use them to set the caps bits later.
> ---
>  src/vrend_renderer.c | 60 ++++++++++++++++++++++++++++++++++++++++++----------
>  1 file changed, 49 insertions(+), 11 deletions(-)
>
> diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
> index 317024a..3643550 100644
> --- a/src/vrend_renderer.c
> +++ b/src/vrend_renderer.c
> @@ -87,6 +87,26 @@ struct global_error_state {
>     enum virgl_errors last_error;
>  };
>
> +enum feature_name
> +{
> +   FEAT_START = 0,
> +   FEAT_TESSELLATION = 0,
> +   FEAT_END,
> +};
> +
> +struct features {
> +   int gl_ver;
> +   int gles_ver;
> +   const char *gl_ext;
> +   const char *gles_ext;
> +};
> +
> +static const struct features features_list[] = {
> +   [FEAT_TESSELLATION] = { 400, -1, "GL_ARB_tessellation_shader", NULL },

This 400 is meant to be a 40

Dave.


More information about the virglrenderer-devel mailing list