[virglrenderer-devel] [virglrenderer-devel v1 01/13] vrend: Enter multisample cap test with a clean error state

Robert Foss robert.foss at collabora.com
Wed Nov 21 15:12:28 UTC 2018


From: Gert Wollny <gert.wollny at collabora.com>

vrend_renderer_query_multisample_caps asserts on this, and for the CI we
don't want this.

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
 src/vrend_renderer.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 9ea2951..29dea32 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -8316,6 +8316,10 @@ static void vrend_renderer_fill_caps_v2(int gl_ver, int gles_ver,  union virgl_c
          glGetIntegerv(GL_MAX_IMAGE_SAMPLES, (GLint*)&caps->v2.max_image_samples);
    }
 
+   int err = glGetError();
+   if (err)
+      fprintf(stderr, "Stale error state: 0x%x\n", err);
+
    if (has_feature(feat_storage_multisample))
       caps->v1.max_samples = vrend_renderer_query_multisample_caps(caps->v1.max_samples, &caps->v2);
 
-- 
2.17.1



More information about the virglrenderer-devel mailing list