[PATCH 1/7] glamor: only use (un)pack_subimage when available
Matt Turner
mattst88 at gmail.com
Mon Jan 12 19:47:15 PST 2015
On Mon, Jan 12, 2015 at 6:29 AM, Maarten Lankhorst
<maarten.lankhorst at ubuntu.com> wrote:
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at ubuntu.com>
> ---
> glamor/glamor.c | 7 ++++++
> glamor/glamor_priv.h | 2 ++
> glamor/glamor_transfer.c | 55 +++++++++++++++++++++++++++++++-----------------
> 3 files changed, 45 insertions(+), 19 deletions(-)
>
> diff --git a/glamor/glamor.c b/glamor/glamor.c
> index e6e8647..f139680 100644
> --- a/glamor/glamor.c
> +++ b/glamor/glamor.c
> @@ -412,6 +412,13 @@ glamor_init(ScreenPtr screen, unsigned int flags)
> epoxy_has_gl_extension("GL_ARB_buffer_storage");
> glamor_priv->has_nv_texture_barrier =
> epoxy_has_gl_extension("GL_NV_texture_barrier");
> + glamor_priv->has_unpack_subimage =
> + glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP ||
> + epoxy_gl_version() >= 30 ||
> + epoxy_has_gl_extension("GL_EXT_unpack_subimage");
> + glamor_priv->has_pack_subimage = /* not defined for GLES 2 */
You could check for NV_pack_subimage here if you care to.
> + glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP ||
> + epoxy_gl_version() >= 30;
More information about the xorg-devel
mailing list