diff --git a/gbm.h b/gbm.h index 1fb338f..312b098 100644 --- a/gbm.h +++ b/gbm.h @@ -239,6 +239,10 @@ enum gbm_bo_flags { * buffer. */ GBM_BO_USE_LINEAR = (1 << 4), + /** + * The buffer will be used as a texture that will be sampled from. + */ + GBM_BO_USE_TEXTURING = (1 << 5), }; int diff --git a/gbm_helpers.c b/gbm_helpers.c index c60a315..2b9ce23 100644 --- a/gbm_helpers.c +++ b/gbm_helpers.c @@ -22,6 +22,8 @@ uint64_t gbm_convert_flags(uint32_t flags) usage |= BO_USE_CURSOR_64X64; if (flags & GBM_BO_USE_RENDERING) usage |= BO_USE_RENDERING; + if (flags & GBM_BO_USE_TEXTURING) + usage |= BO_USE_TEXTURE; if (flags & GBM_BO_USE_LINEAR) usage |= BO_USE_LINEAR;