mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
nv50: take format from sampler view, not the referenced texture
This commit is contained in:
parent
9e9839bd04
commit
a671a9eed0
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ nv50_tex_construct(struct nv50_sampler_view *view)
|
||||||
struct nv50_miptree *mt = nv50_miptree(view->pipe.texture);
|
struct nv50_miptree *mt = nv50_miptree(view->pipe.texture);
|
||||||
uint32_t swz[4], *tic = view->tic;
|
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[0] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_r);
|
||||||
swz[1] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_g);
|
swz[1] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_g);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue