mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
etnaviv: Hide MSAA support behind debug flag
With the current level of MSAA support we have some real world rendering problems in Chromium/Skia (issue #7678). Convert the MSAA support to an explicit opt-in by settings ETNA_MESA_DEBUG=msaa. Cc: 22.3 mesa-stable Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19870>
This commit is contained in:
parent
4002640f8d
commit
4f5e59d114
2 changed files with 6 additions and 0 deletions
|
|
@ -55,6 +55,7 @@
|
|||
#define ETNA_DBG_DEQP 0x800000 /* Hacks to run dEQP GLES3 tests */
|
||||
#define ETNA_DBG_NOCACHE 0x1000000 /* Disable shader cache */
|
||||
#define ETNA_DBG_NO_LINEAR_PE 0x2000000 /* Disable linear PE */
|
||||
#define ETNA_DBG_MSAA 0x4000000 /* Enable MSAA */
|
||||
|
||||
extern int etna_mesa_debug; /* set in etnaviv_screen.c from ETNA_MESA_DEBUG */
|
||||
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ static const struct debug_named_value etna_debug_options[] = {
|
|||
{"deqp", ETNA_DBG_DEQP, "Hacks to run dEQP GLES3 tests"}, /* needs MESA_GLES_VERSION_OVERRIDE=3.0 */
|
||||
{"nocache", ETNA_DBG_NOCACHE, "Disable shader cache"},
|
||||
{"no_linear_pe", ETNA_DBG_NO_LINEAR_PE, "Disable linear PE"},
|
||||
{"msaa", ETNA_DBG_MSAA, "Enable MSAA support"},
|
||||
DEBUG_NAMED_VALUE_END
|
||||
};
|
||||
|
||||
|
|
@ -496,6 +497,10 @@ gpu_supports_render_format(struct etna_screen *screen, enum pipe_format format,
|
|||
return false;
|
||||
|
||||
if (sample_count > 1) {
|
||||
/* Explicitly enabled. */
|
||||
if (!DBG_ENABLED(ETNA_DBG_MSAA))
|
||||
return false;
|
||||
|
||||
/* The hardware supports it. */
|
||||
if (!VIV_FEATURE(screen, chipFeatures, MSAA))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue