diff options
author | John Kåre Alsaker <[email protected]> | 2012-09-23 13:44:09 +0200 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-10-10 18:22:22 -0600 |
commit | 6c53ec1ef279bd346ec8b59f44520ca79f886c93 (patch) | |
tree | 18359e13ec8e08f6b43eae5e08ab480888ec5b5c | |
parent | 1a4aad11b01163c5e11c991b18997060dcedf41d (diff) |
svga: Remove wierd code which forces non-sRGB formats.
Signed-off-by: Brian Paul <[email protected]>
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_texture.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c index 9830e79d106..97ec7eeea7e 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.c +++ b/src/gallium/drivers/svga/svga_resource_texture.c @@ -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; |