st/mesa: always report the max samples as supported
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 15 Jun 2021 04:49:02 +0000 (00:49 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 16 Jun 2021 05:13:16 +0000 (05:13 +0000)
commit561f9ae74b2b7da06bb4830aaca8d017a3dd2746
tree3d719cad5c5bc219f30cbf4798dca877032469b9
parentb14b1bef5d8dba0457868fc5263d55af5fd7e100
st/mesa: always report the max samples as supported

This is required by GL. Doing this even when the backend driver does not
support it leads to creating attachments which are not renderable. This
is not ideal, but does pass tests. This covers scenarios such as missing
MSAA for 128-bit formats on Sandybridge, and missing 8x MSAA on 128-bit
formats on NVIDIA Tesla generation boards.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11372>
src/mesa/state_tracker/st_format.c