diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-01-04 13:23:18 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-01-06 07:49:58 -0500 |
commit | 5c71547c68a86729dcb81b572104a158a04ac2cf (patch) | |
tree | 8ece70cb0ba02c2b84d240aac581091ab822b851 /src/gallium/drivers | |
parent | 32851ff71521d203c08e26b3198d96d0f6467bb5 (diff) |
panfrost: Report MSAA 4x supported for dEQP
Fixes dEQP-GLES3.functional.state_query.integers.max_samples_getinteger64
We'll have to actually implement multisampling next, but hey.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 263dcd0fae9..680bae1de1a 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -427,7 +427,16 @@ panfrost_is_format_supported( struct pipe_screen *screen, if (!format_desc) return false; - if (sample_count > 1) + /* MSAA 4x supported, but no more. Technically some revisions of the + * hardware can go up to 16x but we don't support higher modes yet. */ + + if (sample_count > 1 && !(pan_debug & PAN_DBG_DEQP)) + return false; + + if (sample_count > 4) + return false; + + if (MAX2(sample_count, 1) != MAX2(storage_sample_count, 1)) return false; /* Format wishlist */ |