st/va: add support for P010 and P016 formats v3
authorChristian König <christian.koenig@amd.com>
Mon, 6 Mar 2017 16:53:04 +0000 (17:53 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 13 Mar 2017 07:51:38 +0000 (08:51 +0100)
commite58a1e8f68b3b740d915468012573a4d7befb875
tree7bbc8ca4c17c341d1e4f4b9fc57e7f5ff5ad7ff9
parentf1d1deb0157fd011daa60d439157bb16f30566ca
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 <christian.koenig@amd.com>
Reviewed-by: Mark Thompson <sw@jkqxz.net>
src/gallium/state_trackers/va/image.c
src/gallium/state_trackers/va/picture.c
src/gallium/state_trackers/va/postproc.c
src/gallium/state_trackers/va/va_private.h