svga: Remove wierd code which forces non-sRGB formats.
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sun, 23 Sep 2012 11:44:09 +0000 (13:44 +0200)
committerBrian Paul <brianp@vmware.com>
Thu, 11 Oct 2012 00:22:22 +0000 (18:22 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c

index 9830e79d1060109e6223b783abac10bb4a3421b5..97ec7eeea7ec38fda66d245bbfb50e99edb40e65 100644 (file)
@@ -540,14 +540,6 @@ svga_texture_from_handle(struct pipe_screen *screen,
    pipe_reference_init(&tex->b.b.reference, 1);
    tex->b.b.screen = screen;
 
-   if (format == SVGA3D_X8R8G8B8)
-      tex->b.b.format = PIPE_FORMAT_B8G8R8X8_UNORM;
-   else if (format == SVGA3D_A8R8G8B8)
-      tex->b.b.format = PIPE_FORMAT_B8G8R8A8_UNORM;
-   else {
-      /* ?? */
-   }
-
    SVGA_DBG(DEBUG_DMA, "wrap surface sid %p\n", srf);
 
    tex->key.cachable = 0;