gallium: Add PIPE_FORMAT_P010 support

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3153>
This commit is contained in:
Thong Thai
2019-12-18 11:26:34 -05:00
committed by Marge Bot
parent ee8344bdcf
commit f3569f215d
7 changed files with 9 additions and 0 deletions

View File

@@ -495,6 +495,7 @@ get_sampler_view_format(struct st_context *st,
case PIPE_FORMAT_IYUV:
format = PIPE_FORMAT_R8_UNORM;
break;
case PIPE_FORMAT_P010:
case PIPE_FORMAT_P016:
format = PIPE_FORMAT_R16_UNORM;
break;