mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
gallium: track if st_egl_image was created by a dmabuf
This is required by GL_EXT_EGL_image_storage to verify if the image is valid Signed-off-by: Simon Zeni <simon@bl4ckb0ne.ca> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18673>
This commit is contained in:
parent
70e2a1faad
commit
25f569f58a
3 changed files with 4 additions and 0 deletions
|
|
@ -738,6 +738,7 @@ dri_get_egl_image(struct st_manager *smapi,
|
|||
stimg->format = map ? map->pipe_format : img->texture->format;
|
||||
stimg->level = img->level;
|
||||
stimg->layer = img->layer;
|
||||
stimg->imported_dmabuf = img->imported_dmabuf;
|
||||
|
||||
if (img->imported_dmabuf && map) {
|
||||
/* Guess sized internal format for dma-bufs. Could be used
|
||||
|
|
|
|||
|
|
@ -140,4 +140,5 @@ stw_translate_image(struct stw_image *in, struct st_egl_image *out)
|
|||
out->format = in->format;
|
||||
out->layer = in->layer;
|
||||
out->level = in->level;
|
||||
out->imported_dmabuf = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -193,6 +193,8 @@ struct st_egl_image
|
|||
|
||||
/* one of __DRI_YUV_RANGE_* */
|
||||
unsigned yuv_range;
|
||||
|
||||
bool imported_dmabuf;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue