Commit b0463b75 authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

virgl: allow ARB_framebuffer_no_attachments queries

parent 5b111257
......@@ -551,6 +551,11 @@ virgl_is_format_supported( struct pipe_screen *screen,
return virgl_is_vertex_format_supported(screen, format);
}
/* For ARB_framebuffer_no_attachments: */
if (bind == PIPE_BIND_RENDER_TARGET &&
format == PIPE_FORMAT_NONE)
return TRUE;
if (bind & PIPE_BIND_RENDER_TARGET) {
if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS)
return FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment