diff options
author | Christian König <[email protected]> | 2017-03-06 17:53:04 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2017-03-13 08:51:38 +0100 |
commit | e58a1e8f68b3b740d915468012573a4d7befb875 (patch) | |
tree | 7bbc8ca4c17c341d1e4f4b9fc57e7f5ff5ad7ff9 /src/gallium/state_trackers/va/postproc.c | |
parent | f1d1deb0157fd011daa60d439157bb16f30566ca (diff) |
st/va: add support for P010 and P016 formats v3
No hardware I know off can actually support P010 natively. But we can easily
support P016 and as long as nobody decodes anything into the lower 6bits it
doesn't make any difference to P010.
v2: allow P0160 for post processing as well
v3: fix post processing once more
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Mark Thompson <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/postproc.c')
-rw-r--r-- | src/gallium/state_trackers/va/postproc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/postproc.c b/src/gallium/state_trackers/va/postproc.c index fbec69aec35..8467b0e8f42 100644 --- a/src/gallium/state_trackers/va/postproc.c +++ b/src/gallium/state_trackers/va/postproc.c @@ -292,7 +292,8 @@ vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *contex src_region = vlVaRegionDefault(param->surface_region, src_surface->buffer, &def_src_region); dst_region = vlVaRegionDefault(param->output_region, context->target, &def_dst_region); - if (context->target->buffer_format != PIPE_FORMAT_NV12) + if (context->target->buffer_format != PIPE_FORMAT_NV12 && + context->target->buffer_format != PIPE_FORMAT_P016) return vlVaPostProcCompositor(drv, context, src_region, dst_region, src, context->target, deinterlace); else |