diff options
author | Eric Anholt <eric@anholt.net> | 2014-03-14 17:31:18 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-04-23 10:32:23 -0700 |
commit | fab0a4a4c9dad2275bb398d09632f4274b5e16f2 (patch) | |
tree | 0c32caee6cefb480f03c53e8c8aa189500a880be /glamor/glamor_context.h | |
parent | 11ff12d4e74c0b514cb62cc47df9770c91e5002a (diff) |
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)
Diffstat (limited to 'glamor/glamor_context.h')
-rw-r--r-- | glamor/glamor_context.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/glamor/glamor_context.h b/glamor/glamor_context.h index 8781afc48..47b87e620 100644 --- a/glamor/glamor_context.h +++ b/glamor/glamor_context.h @@ -43,14 +43,7 @@ struct glamor_context { /** The GLXDrawable we should MakeCurrent to */ uint32_t drawable_xid; - /** - * Count of how deep in glamor_get_context() we are, to reduce - * MakeCurrent calls. - */ - int get_count; - - void (*get_context)(struct glamor_context *glamor_ctx); - void (*put_context)(struct glamor_context *glamor_ctx); + void (*make_current)(struct glamor_context *glamor_ctx); }; Bool glamor_glx_screen_init(struct glamor_context *glamor_ctx); |