[Mesa-dev] [PATCH] st/mesa: don't do linear->srgb conversion in decompress_with_blit
Marek Olšák
maraeo at gmail.com
Thu Jun 14 20:16:06 PDT 2012
This fixes piglit/getteximage-formats on r600g.
NOTE: This is a candidate for stable branches.
---
src/mesa/state_tracker/st_cb_texture.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 9d1b7f6..67c3f95 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -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;
--
1.7.9.5
More information about the mesa-dev
mailing list