• Chris Wilson's avatar
    Fixup glx support · 556adfa6
    Chris Wilson authored
    Renaming glamor_priv->dispatch and wrapping the access to
    the dispatch table with a function that also ensured the
    context was bound.
     dispatch = glamor_get_dispatch(glamor_priv);
    So that we catch all places where we attempt to call into GL withouta
    context. As an optimisation we can then do glamor_get_context();
    glamor_put_context() around the rendering entry points to reduce the
    frequency of having to restore the old context. (Along with allowing
    the context to be recursively acquired and making the old context part of
    the glamor_egl state.)
    Reviewed-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
    Signed-off-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
glamor_render.c 48.4 KB