glamor: Replace glamor_get/put_context() with just glamor_make_current().
authorEric Anholt <eric@anholt.net>
Sat, 15 Mar 2014 00:31:18 +0000 (17:31 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 Apr 2014 17:32:23 +0000 (10:32 -0700)
commitfab0a4a4c9dad2275bb398d09632f4274b5e16f2
tree0c32caee6cefb480f03c53e8c8aa189500a880be
parent11ff12d4e74c0b514cb62cc47df9770c91e5002a
glamor: Replace glamor_get/put_context() with just glamor_make_current().

Now that we have the DIX global state for the current context, we
don't need to track nesting to try to reduce MakeCurrent overhead.

v2: Fix a mistaken replacement of a put_context with make_current in
    glamor_fill_spans_gl() (caught by keithp).

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (v1)
Reviewed-by: Adam Jackson <ajax@redhat.com> (v1)
24 files changed:
glamor/glamor.c
glamor/glamor_context.h
glamor/glamor_copyarea.c
glamor/glamor_core.c
glamor/glamor_egl.c
glamor/glamor_fbo.c
glamor/glamor_fill.c
glamor/glamor_font.c
glamor/glamor_glx.c
glamor/glamor_glyphblt.c
glamor/glamor_glyphs.c
glamor/glamor_gradient.c
glamor/glamor_pixmap.c
glamor/glamor_points.c
glamor/glamor_rects.c
glamor/glamor_render.c
glamor/glamor_spans.c
glamor/glamor_text.c
glamor/glamor_tile.c
glamor/glamor_transfer.c
glamor/glamor_trapezoid.c
glamor/glamor_utils.h
glamor/glamor_vbo.c
glamor/glamor_xv.c