mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
etnaviv: check if MSAA is supported
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Jonathan Marek <jonathan@marek.ca>
This commit is contained in:
parent
2271a187c2
commit
46b8273eb1
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue