X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-minigbm.git;a=blobdiff_plain;f=gbm.h;h=ce05ce370030e6ad0fc67ec68e5757ce0768a2c1;hp=a58aadbb1d91586e6775d353aa274ceae66a890f;hb=0d41d268684a339ae76309b193610bdcbdbbbe69;hpb=e0807b1eaaaa44b81bcb0aa610480cbc3beecc52 diff --git a/gbm.h b/gbm.h index a58aadb..ce05ce3 100644 --- a/gbm.h +++ b/gbm.h @@ -236,7 +236,8 @@ enum gbm_bo_flags { * Buffer is guaranteed to be laid out linearly in memory. That is, the * buffer is laid out as an array with 'height' blocks, each block with * length 'stride'. Each stride is in the same order as the rows of the - * buffer. + * buffer. This is intended to be used with buffers that will be accessed + * via dma-buf mmap(). */ GBM_BO_USE_LINEAR = (1 << 4), /** @@ -255,6 +256,19 @@ enum gbm_bo_flags { * Buffer inaccessible to unprivileged users. */ GBM_BO_USE_PROTECTED = (1 << 8), + /** + * These flags specify the frequency of software access. These flags do not + * guarantee the buffer is linear, but do guarantee gbm_bo_map(..) will + * present a linear view. + */ + GBM_BO_USE_SW_READ_OFTEN = (1 << 9), + GBM_BO_USE_SW_READ_RARELY = (1 << 10), + GBM_BO_USE_SW_WRITE_OFTEN = (1 << 11), + GBM_BO_USE_SW_WRITE_RARELY = (1 << 12), + /** + * The buffer will be written by a video decode accelerator. + */ + GBM_BO_USE_HW_VIDEO_DECODER = (1 << 13), }; int