diff options
author | Luca Barbieri <[email protected]> | 2010-03-22 18:36:16 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-03-22 18:36:16 +0100 |
commit | 4e3b950c70721b826c712636d37197dd5a76b910 (patch) | |
tree | 6e875c9e091b45494cf192e6a2ad09f1816e0e06 /src/gallium/drivers/nvfx/nv30_fragtex.c | |
parent | 98b4e7aee83c7874db0ea23f632851b6fb5ba62a (diff) |
nvfx: fix sampler views support
The code was half converted, resulting in texturing being totally broken.
Diffstat (limited to 'src/gallium/drivers/nvfx/nv30_fragtex.c')
-rw-r--r-- | src/gallium/drivers/nvfx/nv30_fragtex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nv30_fragtex.c b/src/gallium/drivers/nvfx/nv30_fragtex.c index 2b56f454921..54e47574c4d 100644 --- a/src/gallium/drivers/nvfx/nv30_fragtex.c +++ b/src/gallium/drivers/nvfx/nv30_fragtex.c @@ -91,7 +91,7 @@ struct nouveau_stateobj * nv30_fragtex_build(struct nvfx_context *nvfx, int unit) { struct nvfx_sampler_state *ps = nvfx->tex_sampler[unit]; - struct nvfx_miptree *nv30mt = nvfx->tex_miptree[unit]; + struct nvfx_miptree *nv30mt = (struct nvfx_miptree *)nvfx->fragment_sampler_views[unit]->texture; struct pipe_texture *pt = &nv30mt->base; struct nouveau_bo *bo = nouveau_bo(nv30mt->buffer); struct nv30_texture_format *tf; |