st/mesa: don't do srgb->linear conversion in decompress_with_blit
authorMarek Olšák <maraeo@gmail.com>
Fri, 15 Jun 2012 03:13:02 +0000 (05:13 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 15 Jun 2012 16:54:14 +0000 (18:54 +0200)
This fixes piglit/getteximage-formats on r600g.

NOTE: This is a candidate for stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_texture.c

index 9d1b7f672f5dc6917844119563986db0600097b6..67c3f9590123d9d943d197f577c70839e105ba0e 100644 (file)
@@ -600,6 +600,7 @@ decompress_with_blit(struct gl_context * ctx,
 
       u_sampler_view_default_template(&sv_temp, stObj->pt, stObj->pt->format);
 
+      sv_temp.format = util_format_linear(sv_temp.format);
       sv_temp.u.tex.first_level =
       sv_temp.u.tex.last_level = texImage->Level;