nv50,nvc0: remove explicit target argument from view creation
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 21 Mar 2021 17:41:03 +0000 (13:41 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Mar 2021 15:20:45 +0000 (15:20 +0000)
commit3e39d059dff033653364267908e5c9fad1244638
tree41aba777f4771f0af66fc0d391bd420929a42ceb
parent38371ff6286df9108dfbfdb4e1d9cbcf12eff918
nv50,nvc0: remove explicit target argument from view creation

Before texture views were supported, this was needed in some cases.
However with texture views (added eons ago), there is now a target
attribute in the template. Use it and remove the explicit argument.

Should help prevent bugs with inconsistencies between the stored
template target and the one that's used to create the view.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9740>
src/gallium/drivers/nouveau/nv50/nv50_context.h
src/gallium/drivers/nouveau/nv50/nv50_surface.c
src/gallium/drivers/nouveau/nv50/nv50_tex.c
src/gallium/drivers/nouveau/nvc0/nvc0_context.h
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c