Mesa (master): nv50,nvc0: get format desc for TIC entry from sampler view format

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Fri Mar 4 23:51:38 UTC 2011


Module: Mesa
Branch: master
Commit: b0698396dcc70f6c8a16090dfb1674996538db3a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0698396dcc70f6c8a16090dfb1674996538db3a

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Fri Mar  4 22:17:36 2011 +0100

nv50,nvc0: get format desc for TIC entry from sampler view format

Fixes piglit/tex-srgb.

---

 src/gallium/drivers/nv50/nv50_tex.c |    2 +-
 src/gallium/drivers/nvc0/nvc0_tex.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_tex.c b/src/gallium/drivers/nv50/nv50_tex.c
index e9d6e5f..9192d2e 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 a6f393d..24850b1 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] */
 




More information about the mesa-commit mailing list