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

Submitted by Robert Foss on Nov. 21, 2018, 3:12 p.m.

Details

Message ID 20181121151240.17259-2-robert.foss@collabora.com
State New
Headers show
Series "ci: Clean up ci build system" ( rev: 1 ) in Virgil 3D

Not browsing as part of any series.

Commit Message

Robert Foss Nov. 21, 2018, 3:12 p.m.
From: Gert Wollny <gert.wollny@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@collabora.com>
---
 src/vrend_renderer.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

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);