From 0d93c228a341c280459cec06bad1cca5a4ba05b5 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 3 Aug 2018 21:37:55 +0200 Subject: [PATCH] vrend: Use the sample count that was read before This was bogus from the beginning. Fixes: c0e0274e8cf760f499552deea3c0f047036bf7f5 virgl: Add method to query supported MSAA samples and positions Signed-off-by: Gert Wollny Signed-off-by: Dave Airlie --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index ddf7f3a..9c23e65 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -8100,7 +8100,7 @@ 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); } - caps->v1.max_samples = vrend_renderer_query_multisample_caps(max, &caps->v2); + caps->v1.max_samples = vrend_renderer_query_multisample_caps(caps->v1.max_samples, &caps->v2); caps->v2.capability_bits |= VIRGL_CAP_TGSI_INVARIANT | VIRGL_CAP_SET_MIN_SAMPLES | VIRGL_CAP_TGSI_PRECISE;