nv50: take format from sampler view, not the referenced texture
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 11 Mar 2010 16:14:14 +0000 (17:14 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 11 Mar 2010 16:31:51 +0000 (17:31 +0100)
src/gallium/drivers/nv50/nv50_tex.c

index 79639e81eb35f61dae9b4cbded97d749a298f8b6..85ab947c0063eae6afb15cf51f4246e0db618100 100644 (file)
@@ -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);