zink: don't render with multisampling when it is disabled
authorantonino <antonino.maniscalco@collabora.com>
Fri, 21 Apr 2023 11:25:33 +0000 (13:25 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Apr 2023 14:22:18 +0000 (14:22 +0000)
commita004825266fdcb43afd5e9fdf946ad9641f1e296
treefe21c51346bae9d01bdcb4ff188231aac3cc59c0
parent14d58926099fb735312705f0853785dcd1888c2e
zink: don't render with multisampling when it is disabled

Previously zink ignored whether multisampling was enabled and rendered
with mulisampling whenever the target buffer had multiple samples.

This change now will only render with multisampling when it is enabled
and will use a lowering pass to make sure this case is handled correcly.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22626>
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_draw.cpp
src/gallium/drivers/zink/zink_pipeline.c