diff options
author | Yuriy <uuvasiliev@yandex.ru> | 2021-09-16 14:47:44 +0300 |
---|---|---|
committer | Konstantin <ria.freelander@gmail.com> | 2022-12-01 08:41:57 +0000 |
commit | 65392d27d77fbdb66e874ba3e2d85dbcf46e4583 (patch) | |
tree | 89f7b14e15b985965e06ab153f3b23430bcafe95 /render | |
parent | a59531533fb8fd137d21e0578909d8e91c28dff6 (diff) |
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>
Diffstat (limited to 'render')
-rw-r--r-- | render/picture.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/render/picture.h b/render/picture.h index 4499a0021..c3a73d1d8 100644 --- a/render/picture.h +++ b/render/picture.h @@ -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; /* |