summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/va_private.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2017-03-06 17:53:04 +0100
committerChristian König <[email protected]>2017-03-13 08:51:38 +0100
commite58a1e8f68b3b740d915468012573a4d7befb875 (patch)
tree7bbc8ca4c17c341d1e4f4b9fc57e7f5ff5ad7ff9 /src/gallium/state_trackers/va/va_private.h
parentf1d1deb0157fd011daa60d439157bb16f30566ca (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/va_private.h')
-rw-r--r--src/gallium/state_trackers/va/va_private.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index a7cedaeead6..7216aba4379 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -49,7 +49,7 @@
#define VL_VA_DRIVER(ctx) ((vlVaDriver *)ctx->pDriverData)
#define VL_VA_PSCREEN(ctx) (VL_VA_DRIVER(ctx)->vscreen->pscreen)
-#define VL_VA_MAX_IMAGE_FORMATS 9
+#define VL_VA_MAX_IMAGE_FORMATS 11
#define VL_VA_ENC_GOP_COEFF 16
static inline enum pipe_video_chroma_format
@@ -73,6 +73,9 @@ VaFourccToPipeFormat(unsigned format)
switch(format) {
case VA_FOURCC('N','V','1','2'):
return PIPE_FORMAT_NV12;
+ case VA_FOURCC('P','0','1','0'):
+ case VA_FOURCC('P','0','1','6'):
+ return PIPE_FORMAT_P016;
case VA_FOURCC('I','4','2','0'):
return PIPE_FORMAT_IYUV;
case VA_FOURCC('Y','V','1','2'):
@@ -101,6 +104,8 @@ PipeFormatToVaFourcc(enum pipe_format p_format)
switch (p_format) {
case PIPE_FORMAT_NV12:
return VA_FOURCC('N','V','1','2');
+ case PIPE_FORMAT_P016:
+ return VA_FOURCC('P','0','1','6');
case PIPE_FORMAT_IYUV:
return VA_FOURCC('I','4','2','0');
case PIPE_FORMAT_YV12: