mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
glamor: fix CbCr format handling
In GLES2, we cannot do GL_RED or GL_RG without GL_EXT_texture_rg. So, add check for GL_EXT_texture_rg to make it working. Also add a yuv2 pixman format into render.h to make Xv yuv rendering works. Signed-off-by: Yuriy Vasilev <uuvasiliev@yandex.ru> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Emma Anholt <emma@anholt.net>
This commit is contained in:
@@ -125,7 +125,10 @@ typedef enum _PictFormatShort {
|
||||
/* 1bpp formats */
|
||||
PICT_a1 = PIXMAN_a1,
|
||||
|
||||
PICT_g1 = PIXMAN_g1
|
||||
PICT_g1 = PIXMAN_g1,
|
||||
|
||||
/* YCbCr formats */
|
||||
PICT_yuv2 = PIXMAN_yuy2
|
||||
} PictFormatShort;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user