diff mbox

[04/33] drm/vmwgfx: Update the surface defines header for new hardware formats

Message ID 1389904761-16163-5-git-send-email-thellstrom@vmware.com (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Hellstrom Jan. 16, 2014, 8:38 p.m. UTC
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
---
 drivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
diff mbox

Patch

diff --git a/drivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h b/drivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h
index 8369c3b..3571e4a 100644
--- a/drivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h
+++ b/drivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h
@@ -700,6 +700,22 @@  static const struct svga3d_surface_desc svga3d_surface_descs[] = {
 	{SVGA3DBLOCKDESC_DS,
 	 {1, 1, 1},  4, 4, {32, {{0}, {8}, {24}, {0} } },
 	 {{{0}, {24}, {0}, {0} } } },    /* SVGA3D_Z_D24S8_INT */
+
+	{SVGA3DBLOCKDESC_YV12,
+	 {2, 2, 1},  6, 2, {48, {{0}, {0}, {48}, {0} } },
+	 {{{0}, {0}, {0}, {0} } } },     /* SVGA3D_YV12 */
+
+	{SVGA3DBLOCKDESC_BUFFER,
+	 {1, 1, 1},  16, 16, {128, {{0}, {0}, {128}, {0} } },
+	 {{{0}, {0}, {0}, {0} } } },     /* SVGA3D_SURFACE_SHADERCONST_FLOAT */
+
+	{SVGA3DBLOCKDESC_BUFFER,
+	 {1, 1, 1},  16, 16, {128, {{0}, {0}, {128}, {0} } },
+	 {{{0}, {0}, {0}, {0} } } },     /* SVGA3D_SURFACE_SHADERCONST_INT */
+
+	{SVGA3DBLOCKDESC_BUFFER,
+	 {1, 1, 1},  4, 4, {32, {{0}, {0}, {32}, {0} } },
+	 {{{0}, {0}, {0}, {0} } } },     /* SVGA3D_SURFACE_SHADERCONST_BOOL */
 };
 
 static inline u32 clamped_umul32(u32 a, u32 b)