diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2021-03-21 01:47:36 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-03-22 15:20:45 +0000 |
commit | 38371ff6286df9108dfbfdb4e1d9cbcf12eff918 (patch) | |
tree | 7eec5f99e18baf8c7306ed4fabd8d2faf2648c03 /src/gallium/drivers/nouveau/nv50/nv50_surface.c | |
parent | 208250b3765600681b768057d4772f5bb38f186d (diff) |
nv50: initialize target for blit source surfaces
This target is used to determine whether MS scaling factors are to be
uploaded.
Fixes: 1288ac7632b3 ("nv50: don't try to upload MSAA settings for BUFFER textures")
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>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50/nv50_surface.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_surface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_surface.c b/src/gallium/drivers/nouveau/nv50/nv50_surface.c index 97bc4f2c9fe..b524eb9603b 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_surface.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_surface.c @@ -1157,6 +1157,7 @@ nv50_blit_set_src(struct nv50_blitctx *blit, target = nv50_blit_reinterpret_pipe_texture_target(res->target); + templ.target = target; templ.format = format; templ.u.tex.first_level = templ.u.tex.last_level = level; templ.u.tex.first_layer = templ.u.tex.last_layer = layer; |