vrend: Use the sample count that was read before

This was bogus from the beginning.

Fixes: c0e0274e8c
   virgl: Add method to query supported MSAA samples and positions

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Gert Wollny 6 years ago committed by Dave Airlie
parent d9fee3c228
commit 0d93c228a3
  1. 2
      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;

Loading…
Cancel
Save