This makes sure the pixelization for dashed lines matches non-dashed lines, while also speeding them up. v2: Switch to glamor_make_current v3: Create dash pattern pixmap without GLAMOR_CREATE_FBO_NO_FBO v4: Adopt suggestions from Eric's review: - Drops power-of-two alignment of our line vertex data, simplifying the code. - Stops reading from the VBO. While on keithp's and my machines the VBO is mapped cached, on many implementations it will be mapped WC, making those reads extremely expensive. - Style fixes (line wrapping, spaces around operators). v5: Adopt suggestions from Markus' review: - Use max when computing zero-width dashed line length. Don't open code max here. - Embed CoordModePrevious into VBO writing for dashed lines Instead of pre-computing the coord mode previous results, just embed this in the loop which fills the vertex buffer. Saves re-writing the request buffer, and shortens the code a bit v6: Export glamor_destroy_gc for UXA UXA needs to call glamor_destroy_gc from its GCFuncs, so export it. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
55 lines
1.0 KiB
Makefile
55 lines
1.0 KiB
Makefile
noinst_LTLIBRARIES = libglamor.la libglamor_egl_stubs.la
|
|
|
|
libglamor_la_LIBADD = $(GLAMOR_LIBS)
|
|
|
|
AM_CFLAGS = $(CWARNFLAGS) $(DIX_CFLAGS) $(GLAMOR_CFLAGS)
|
|
|
|
libglamor_la_SOURCES = \
|
|
glamor.c \
|
|
glamor_context.h \
|
|
glamor_copy.c \
|
|
glamor_core.c \
|
|
glamor_dash.c \
|
|
glamor_debug.h \
|
|
glamor_fill.c \
|
|
glamor_font.c \
|
|
glamor_font.h \
|
|
glamor_glx.c \
|
|
glamor_glyphs.c \
|
|
glamor_image.c \
|
|
glamor_lines.c \
|
|
glamor_segs.c \
|
|
glamor_render.c \
|
|
glamor_gradient.c \
|
|
glamor_prepare.c \
|
|
glamor_prepare.h \
|
|
glamor_program.c \
|
|
glamor_program.h \
|
|
glamor_rects.c \
|
|
glamor_spans.c \
|
|
glamor_text.c \
|
|
glamor_transfer.c \
|
|
glamor_transfer.h \
|
|
glamor_transform.c \
|
|
glamor_transform.h \
|
|
glamor_trapezoid.c \
|
|
glamor_tile.c \
|
|
glamor_triangles.c\
|
|
glamor_addtraps.c\
|
|
glamor_glyphblt.c\
|
|
glamor_points.c\
|
|
glamor_priv.h\
|
|
glamor_pixmap.c\
|
|
glamor_largepixmap.c\
|
|
glamor_picture.c\
|
|
glamor_vbo.c \
|
|
glamor_window.c\
|
|
glamor_fbo.c\
|
|
glamor_compositerects.c\
|
|
glamor_utils.h\
|
|
glamor.h
|
|
|
|
libglamor_egl_stubs_la_SOURCES = glamor_egl_stubs.c
|
|
|
|
sdk_HEADERS = glamor.h
|