From: Christoph Bumiller Date: Fri, 4 Mar 2011 21:17:36 +0000 (+0100) Subject: nv50,nvc0: get format desc for TIC entry from sampler view format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0698396dcc70f6c8a16090dfb1674996538db3a;p=mesa.git nv50,nvc0: get format desc for TIC entry from sampler view format Fixes piglit/tex-srgb. --- diff --git a/src/gallium/drivers/nv50/nv50_tex.c b/src/gallium/drivers/nv50/nv50_tex.c index e9d6e5f2016..9192d2e2590 100644 --- a/src/gallium/drivers/nv50/nv50_tex.c +++ b/src/gallium/drivers/nv50/nv50_tex.c @@ -79,7 +79,7 @@ nv50_create_sampler_view(struct pipe_context *pipe, tic = &view->tic[0]; - desc = util_format_description(mt->base.base.format); + desc = util_format_description(view->pipe.format); /* TIC[0] */ diff --git a/src/gallium/drivers/nvc0/nvc0_tex.c b/src/gallium/drivers/nvc0/nvc0_tex.c index a6f393d1ecc..24850b19986 100644 --- a/src/gallium/drivers/nvc0/nvc0_tex.c +++ b/src/gallium/drivers/nvc0/nvc0_tex.c @@ -78,7 +78,7 @@ nvc0_create_sampler_view(struct pipe_context *pipe, tic = &view->tic[0]; - desc = util_format_description(mt->base.base.format); + desc = util_format_description(view->pipe.format); /* TIC[0] */