Skip to content
Snippets Groups Projects
Commit 044b2385 authored by Christian Gmeiner's avatar Christian Gmeiner Committed by Marge Bot
Browse files

etnaviv: completely turn off MSAA


MSAA worked before etnaviv landed in upstream mesa but got
broken over time. Disable MSAA completely until it is fixed again.

Fixes problems/crashes with applications that want to make use of MSAA.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: default avatarLucas Stach <l.stach@pengutronix.de>
Part-of: <!5608>
parent 5cf7eec6
No related branches found
No related tags found
No related merge requests found
......@@ -466,16 +466,9 @@ gpu_supports_render_format(struct etna_screen *screen, enum pipe_format format,
if (fmt == ETNA_NO_MATCH)
return false;
/* Validate MSAA; number of samples must be allowed, and render target
* must have MSAA'able format. */
if (sample_count > 1) {
if (!VIV_FEATURE(screen, chipFeatures, MSAA))
/* MSAA is broken */
if (sample_count > 1)
return false;
if (!translate_samples_to_xyscale(sample_count, NULL, NULL))
return false;
if (translate_ts_format(format) == ETNA_NO_MATCH)
return false;
}
if (format == PIPE_FORMAT_R8_UNORM)
return VIV_FEATURE(screen, chipMinorFeatures5, HALTI5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment