[Mesa-dev] [PATCH] st/mesa: don't do linear->srgb conversion in decompress_with_blit

Brian Paul brian.e.paul at gmail.com
Fri Jun 15 06:56:15 PDT 2012


On Thu, Jun 14, 2012 at 9:16 PM, Marek Olšák <maraeo at gmail.com> wrote:
> 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;
>

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list