llvmpipe: add a max samples define set to 4.
authorDave Airlie <airlied@redhat.com>
Tue, 10 Mar 2020 00:50:49 +0000 (10:50 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:20:37 +0000 (06:20 +0000)
I doubt I'll care about much higher MSAA levels, so 4 it is.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>

src/gallium/drivers/llvmpipe/lp_limits.h

index 945156bf0ea7f1f80eb593ed63e0a340d6fbee43..8ce15c33028c4fab04199b136ef3b02f0662c5de 100644 (file)
@@ -64,6 +64,7 @@
 #define LP_MAX_HEIGHT (1 << (LP_MAX_TEXTURE_LEVELS - 1))
 #define LP_MAX_WIDTH  (1 << (LP_MAX_TEXTURE_LEVELS - 1))
 
+#define LP_MAX_SAMPLES 4
 
 #define LP_MAX_THREADS 16