gallium/vl: return the buffer plane order for yuv444p format
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Tue, 1 Nov 2022 14:45:56 +0000 (20:15 +0530)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Nov 2022 18:35:13 +0000 (18:35 +0000)
plane order is expected when trying to render yuv surfaces, update it for yuv444p

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19445>

src/gallium/auxiliary/vl/vl_video_buffer.c

index be3aae2c18e5575113d5061136c8d86b362c5153..42479c6de2ef19a5b7fba9ae65c03b3cd0206272 100644 (file)
@@ -76,6 +76,7 @@ vl_video_buffer_plane_order(enum pipe_format format)
       return const_resource_plane_order_YVU;
 
    case PIPE_FORMAT_NV12:
+   case PIPE_FORMAT_Y8_U8_V8_444_UNORM:
    case PIPE_FORMAT_R8G8B8A8_UNORM:
    case PIPE_FORMAT_R8G8B8X8_UNORM:
    case PIPE_FORMAT_B8G8R8A8_UNORM: