[virglrenderer-devel] [PATCH 0/6] vrend: Take format swizzles into account when blitting with GL
Alexandros Frantzis
alexandros.frantzis at collabora.com
Wed Apr 11 13:39:09 UTC 2018
Currently, format swizzles are not used by the GL blitter. Formats that
need some kind of swizzle (e.g., emulated alpha) are implemented with
special cases and shaders.
This patchset adds more general support for both source and destination
swizzles when blitting with GL, removing special cases in the process.
Patches (1) to (3) prepare the virgl formats descriptions to accept
swizzles and also implement the infrastructure required to properly
support swizzles in the blitter.
Patches (4) to (6) take advantage of the new swizzle infrastructure to
improve support for some virgl formats.
Alexandros Frantzis (6):
vrend: Add swizzle to format descriptions
vrend: Use source swizzle when blitting with GL
vrend: Use destination swizzle when creating blit shaders
vrend: Use red with swizzle for luminance formats
vrend: Use red/green with swizzle for luminance/alpha formats
vrend: Use RGB1 swizzle for formats with "don't care" components
src/vrend_blitter.c | 145 +++++++++++++-------------
src/vrend_blitter.h | 16 +--
src/vrend_formats.c | 283 ++++++++++++++++++++++++++-------------------------
src/vrend_renderer.c | 15 ++-
src/vrend_renderer.h | 3 +-
5 files changed, 234 insertions(+), 228 deletions(-)
--
2.15.1
More information about the virglrenderer-devel
mailing list