diff --git a/src/gallium/auxiliary/vl/vl_video_buffer.c b/src/gallium/auxiliary/vl/vl_video_buffer.c index 3c395fdb227..7c10a0c0d6c 100644 --- a/src/gallium/auxiliary/vl/vl_video_buffer.c +++ b/src/gallium/auxiliary/vl/vl_video_buffer.c @@ -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; diff --git a/src/gallium/include/pipe/p_video_codec.h b/src/gallium/include/pipe/p_video_codec.h index e528a61722b..604b3ba61c6 100644 --- a/src/gallium/include/pipe/p_video_codec.h +++ b/src/gallium/include/pipe/p_video_codec.h @@ -222,6 +222,7 @@ struct pipe_video_buffer unsigned height; bool interlaced; unsigned bind; + unsigned flags; bool contiguous_planes; /**