virgl_hw: add YUV support
authorGurchetan Singh <gurchetansingh@chromium.org>
Fri, 14 Jun 2019 00:00:36 +0000 (17:00 -0700)
committerGurchetan Singh <gurchetansingh@google.com>
Tue, 18 Jun 2019 16:18:58 +0000 (09:18 -0700)
Add corresponding entries from p_format.h

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/drivers/virgl/virgl_hw.h

index 7a8aa12d084dc7215ab4ffc2a4e67d2f1c785943..7f300e5cd1549254bcbd805caa8a9345c522babc 100644 (file)
@@ -138,6 +138,12 @@ enum virgl_formats {
    VIRGL_FORMAT_L32_FLOAT               = 160,
    VIRGL_FORMAT_L32A32_FLOAT            = 161,
 
+   VIRGL_FORMAT_YV12                    = 163,
+   VIRGL_FORMAT_YV16                    = 164,
+   VIRGL_FORMAT_IYUV                    = 165,  /**< aka I420 */
+   VIRGL_FORMAT_NV12                    = 166,
+   VIRGL_FORMAT_NV21                    = 167,
+
    VIRGL_FORMAT_R8_UINT                 = 177,
    VIRGL_FORMAT_R8G8_UINT               = 178,
    VIRGL_FORMAT_R8G8B8_UINT             = 179,