glamor: xv: add rgba32 format

This commit adds RGBA32 format to XVideo along with shader for handling it.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Yuriy Vasilev <uuvasiliev@yandex.ru>
This commit is contained in:
Yuriy Vasilev
2021-09-09 18:14:02 +03:00
committed by Konstantin
parent 832b392f70
commit 15412e78c8
2 changed files with 74 additions and 0 deletions

View File

@@ -176,4 +176,23 @@
XvTopToBottom \
}
#define FOURCC_RGBA32 0x34325241
#define XVIMAGE_RGB32 \
{ \
FOURCC_RGBA32, \
XvRGB, \
LSBFirst, \
{'R','A','2','4', \
0x00, 0x00, 0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
32, \
XvPacked, \
1, \
32, 0xff0000, 0xff00, 0xff, \
0, 0, 0, \
0, 0, 0, \
0, 0, 0, \
{0,0,0,0, \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
0 \
}
#endif /* _XF86_FOURCC_H_ */