mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
vl: add pipe_video_buffer::flags to sync up with pipe_resource::flags
Reviewed-by: David Rosca <david.rosca@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31319>
This commit is contained in:
parent
caafa50af6
commit
8494849b92
2 changed files with 3 additions and 0 deletions
|
|
@ -197,6 +197,7 @@ vl_video_buffer_template(struct pipe_resource *templ,
|
|||
templ->array_size = array_size;
|
||||
templ->bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET | tmpl->bind;
|
||||
templ->usage = usage;
|
||||
templ->flags = tmpl->flags;
|
||||
|
||||
vl_video_buffer_adjust_size(&templ->width0, &height, plane,
|
||||
chroma_format, false);
|
||||
|
|
@ -514,6 +515,7 @@ vl_video_buffer_create_as_resource(struct pipe_context *pipe,
|
|||
templ.array_size = array_size;
|
||||
templ.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET | tmpl->bind;
|
||||
templ.usage = PIPE_USAGE_DEFAULT;
|
||||
templ.flags = tmpl->flags;
|
||||
|
||||
if (tmpl->buffer_format == PIPE_FORMAT_YUYV)
|
||||
templ.format = PIPE_FORMAT_R8G8_R8B8_UNORM;
|
||||
|
|
|
|||
|
|
@ -222,6 +222,7 @@ struct pipe_video_buffer
|
|||
unsigned height;
|
||||
bool interlaced;
|
||||
unsigned bind;
|
||||
unsigned flags;
|
||||
bool contiguous_planes;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue