mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
frontends/va: 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
76df53f59b
commit
5df9097c95
1 changed files with 6 additions and 0 deletions
|
|
@ -1030,6 +1030,12 @@ vlVaHandleSurfaceAllocate(vlVaDriver *drv, vlVaSurface *surface,
|
|||
if (!surface->buffer)
|
||||
return VA_STATUS_ERROR_ALLOCATION_FAILED;
|
||||
|
||||
if (drv->pipe->screen->get_video_param(drv->pipe->screen,
|
||||
PIPE_VIDEO_PROFILE_UNKNOWN,
|
||||
PIPE_VIDEO_ENTRYPOINT_UNKNOWN,
|
||||
PIPE_VIDEO_CAP_SKIP_CLEAR_SURFACE))
|
||||
return VA_STATUS_SUCCESS;
|
||||
|
||||
surfaces = surface->buffer->get_surfaces(surface->buffer);
|
||||
if (surfaces) {
|
||||
for (i = 0; i < VL_MAX_SURFACES; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue