svga: Remove wierd code which forces non-sRGB formats.

Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
John Kåre Alsaker 2012-09-23 13:44:09 +02:00 committed by Brian Paul
parent 1a4aad11b0
commit 6c53ec1ef2
1 changed files with 0 additions and 8 deletions

View 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;