Skip to content
Commit 17027336 authored by Gert Wollny's avatar Gert Wollny Committed by Juan A. Suarez Romero
Browse files

virgl: Assume sRGB write control for older guest kernels or virglrenderer hosts

When the host virglrenderer is an older version that doesn't check the sRGB write
control feature, or when the guest kernel doesn't support CAPS v2, then the guest
will only report support for GL 2.1 on a GL 3.3 host, even though it was supporting
3.3 with earlier guest mesa versions.

By also checking the host feature check version this regression can be avoided.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110921


Fixes: 2845939d
   virgl: Set sRGB write control CAP based on host capabilities

Signed-off-by: default avatarGert Wollny <gert.wollny@collabora.com>
Reviewed-by: default avatarChia-I Wu <olvaffe@gmail.com>
(cherry picked from commit 2b87753a)
parent 6f18adff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment