From: Christian Gmeiner Date: Wed, 1 Jan 2020 21:36:10 +0000 (+0100) Subject: etnaviv: check if MSAA is supported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46b8273eb1c025f46d0c7a8b093e3752995476c5;p=mesa.git etnaviv: check if MSAA is supported Signed-off-by: Christian Gmeiner Reviewed-by: Jonathan Marek --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index e847d26aa7f..9d3fee86fbe 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c @@ -434,6 +434,8 @@ gpu_supports_render_format(struct etna_screen *screen, enum pipe_format format, /* 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)) + return false; if (!translate_samples_to_xyscale(sample_count, NULL, NULL)) return false; if (translate_ts_format(format) == ETNA_NO_MATCH)