mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] egl: RGB24 improvements
This patch performs several changes. * Alters the fourcc codes to types that ignore the alpha channel where possible to allow the gpu to internally use 24-bit formats. * Attempts to use DRM_FORMAT_RGB888 first as some GPUs may support this * If DMABUF is not in use the data is now imported directly as RGB24 without the post-processing shader
This commit is contained in:
@@ -346,11 +346,6 @@ bool egl_desktopSetup(EGL_Desktop * desktop, const LG_RendererFormat format)
|
||||
|
||||
case FRAME_TYPE_RGB_24:
|
||||
pixFmt = EGL_PF_RGB_24;
|
||||
// the data width is correct per the format, but we are going to use a
|
||||
// 32-bit texture to load the data, so we need to alter the width for the
|
||||
// different bpp
|
||||
desktop->format.dataWidth =
|
||||
desktop->format.pitch / 4;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user