Add formats R8, RG88, GR88
It's follow-up patch of libdrm patch https://lists.freedesktop.org/archives/dri-devel/2015-July/086041.html i915 allows R8 and GR88 because Mesa supports R8 and GR88 dma_bufs. https://lists.freedesktop.org/archives/mesa-commit/2015-July/057676.html It's need to enable zero-copy video playback. BUG=chromium:356871 TEST=AMD64/HSW,BDW,SKL Change-Id: I9c822f882f4a8e448ebca68b24c7fbd7bf86155a Reviewed-on: https://chromium-review.googlesource.com/337730 Commit-Ready: Stéphane Marchesin <marcheu@chromium.org> Tested-by: Dongseong Hwang <dongseong.hwang@intel.com> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> Reviewed-by: Dongseong Hwang <dongseong.hwang@intel.com>
This commit is contained in:
parent
5c22777ca4
commit
b26f26d3c6
4 changed files with 16 additions and 1 deletions
7
gbm.h
7
gbm.h
|
|
@ -84,6 +84,13 @@ enum gbm_bo_format {
|
|||
/* color index */
|
||||
#define GBM_FORMAT_C8 __gbm_fourcc_code('C', '8', ' ', ' ') /* [7:0] C */
|
||||
|
||||
/* 8 bpp Red */
|
||||
#define GBM_FORMAT_R8 __gbm_fourcc_code('R', '8', ' ', ' ') /* [7:0] R */
|
||||
|
||||
/* 16 bpp RG */
|
||||
#define GBM_FORMAT_RG88 __gbm_fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
|
||||
#define GBM_FORMAT_GR88 __gbm_fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
|
||||
|
||||
/* 8 bpp RGB */
|
||||
#define GBM_FORMAT_RGB332 __gbm_fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */
|
||||
#define GBM_FORMAT_BGR233 __gbm_fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue