mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
frontends/vdpau: Support skip clear on surface creation
Reviewed-by: Leo Liu <leo.liu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31677>
This commit is contained in:
parent
5df9097c95
commit
b4b74617ae
1 changed files with 7 additions and 2 deletions
|
|
@ -94,9 +94,14 @@ vlVdpVideoSurfaceCreate(VdpDevice device, VdpChromaType chroma_type,
|
|||
);
|
||||
if (p_surf->templat.buffer_format != PIPE_FORMAT_NONE)
|
||||
p_surf->video_buffer = pipe->create_video_buffer(pipe, &p_surf->templat);
|
||||
|
||||
/* do not mandate early allocation of a video buffer */
|
||||
vlVdpVideoSurfaceClear(p_surf);
|
||||
|
||||
if (!pipe->screen->get_video_param(pipe->screen,
|
||||
PIPE_VIDEO_PROFILE_UNKNOWN,
|
||||
PIPE_VIDEO_ENTRYPOINT_UNKNOWN,
|
||||
PIPE_VIDEO_CAP_SKIP_CLEAR_SURFACE))
|
||||
vlVdpVideoSurfaceClear(p_surf);
|
||||
|
||||
mtx_unlock(&dev->mutex);
|
||||
|
||||
*surface = vlAddDataHTAB(p_surf);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue