svga: revert packing of surface key
authorKeith Whitwell <keithw@vmware.com>
Wed, 25 Nov 2009 11:44:41 +0000 (11:44 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 25 Nov 2009 11:45:20 +0000 (11:45 +0000)
Over-ambitious packing of values broke my cursor.

src/gallium/drivers/svga/svga_screen_cache.h

index b745769..f5aa740 100644 (file)
@@ -58,10 +58,10 @@ struct svga_screen;
  */
 struct svga_host_surface_cache_key
 {
+   SVGA3dSurfaceFlags flags;
+   SVGA3dSurfaceFormat format;
    SVGA3dSize size;
-   uint32_t flags:8;
-   uint32_t format:8;
-   uint32_t numFaces:8;
+   uint32_t numFaces:24;
    uint32_t numMipLevels:7;
    uint32_t cachable:1;         /* False if this is a shared surface */
 };