summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_tex.c
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-03-11 17:14:14 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-03-11 17:31:51 +0100
commita671a9eed08e63e97ec4257adea2c09dd7d2b4e2 (patch)
treecae5094bd5292803f3ac082058591bcddd480357 /src/gallium/drivers/nv50/nv50_tex.c
parent9e9839bd04b5d4e554a1a9ede22ccf44fc1306b6 (diff)
nv50: take format from sampler view, not the referenced texture
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_tex.c')
-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 79639e81eb..85ab947c00 100644
--- a/src/gallium/drivers/nv50/nv50_tex.c
+++ b/src/gallium/drivers/nv50/nv50_tex.c
@@ -105,7 +105,7 @@ nv50_tex_construct(struct nv50_sampler_view *view)
struct nv50_miptree *mt = nv50_miptree(view->pipe.texture);
uint32_t swz[4], *tic = view->tic;
- tic[0] = nv50_texture_formats[mt->base.base.format];
+ tic[0] = nv50_texture_formats[view->pipe.format];
swz[0] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_r);
swz[1] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_g);