Kinda silly but fixes
dEQP-GLES31.functional.state_query.integer.max_framebuffer_samples_* which
queries the number of samples of a NONE format, required for
ARB_framebuffer_no_attachments to make sense.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21710>
if (MAX2(sample_count, 1) != MAX2(storage_sample_count, 1))
return false;
+ if ((usage & PIPE_BIND_VERTEX_BUFFER) && !agx_vbo_supports_format(format))
+ return false;
+
+ /* For framebuffer_no_attachments, fake support for "none" images */
+ if (format == PIPE_FORMAT_NONE)
+ return true;
+
if (usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW)) {
enum pipe_format tex_format = format;
return false;
}
- if ((usage & PIPE_BIND_VERTEX_BUFFER) && !agx_vbo_supports_format(format))
- return false;
-
if (usage & PIPE_BIND_DEPTH_STENCIL) {
switch (format) {
/* natively supported