summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2011-03-04 22:17:36 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2011-03-05 00:51:07 +0100
commitb0698396dcc70f6c8a16090dfb1674996538db3a (patch)
treeddcb1982ac22b5472cacbef3d6b30edf44f5685d /src/gallium/drivers/nv50
parent1f5d6fc59bd899e211c70026eb74cd2219858008 (diff)
nv50,nvc0: get format desc for TIC entry from sampler view format
Fixes piglit/tex-srgb.
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/nv50_tex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_tex.c b/src/gallium/drivers/nv50/nv50_tex.c
index e9d6e5f201..9192d2e259 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] */