diff options
author | Eric Anholt <eric@anholt.net> | 2015-06-30 14:59:55 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-07-02 10:06:36 -0700 |
commit | 7b6edb52435f474c43130f6ac4c6b2d2b28814f5 (patch) | |
tree | 5b64caf8a3b35a140c48a7be3e259f6fa1796ecf /glamor/glamor_core.c | |
parent | 3fe6731b17ae953d49db4c1bf95e0022244513e1 (diff) |
glamor: Mark a bunch of single-file data static.
This gives the compiler a chance to optimize when the data is never
changed -- for example, with pict_format_combine_tab, the compiler
ends up inlining the 24 bytes of data into just 10 more bytes of code.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'glamor/glamor_core.c')
-rw-r--r-- | glamor/glamor_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_core.c b/glamor/glamor_core.c index 4f3526ccd..79f5981b1 100644 --- a/glamor/glamor_core.c +++ b/glamor/glamor_core.c @@ -283,7 +283,7 @@ glamor_init_finish_access_shaders(ScreenPtr screen) glUniform1i(glamor_priv->finish_access_swap_rb[1], 0); } -GCOps glamor_gc_ops = { +static GCOps glamor_gc_ops = { .FillSpans = glamor_fill_spans, .SetSpans = glamor_set_spans, .PutImage = glamor_put_image, |