virgl: fix typo inverting a condition

Fixes: 8513bcbd2f ("virtio: Remove virglrenderer_hw.h entirely")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34340>
This commit is contained in:
Eric Engestrom 2025-04-02 11:12:24 +02:00 committed by Marge Bot
parent 15660caa90
commit 2063084903

View file

@ -1178,8 +1178,8 @@ static int virgl_init_context(int drmFD)
ctx_set_param.param = VIRTGPU_CONTEXT_PARAM_CAPSET_ID;
ctx_set_param.value = (supports_capset_virgl2) ?
VIRTGPU_DRM_CAPSET_VIRGL :
VIRTGPU_DRM_CAPSET_VIRGL2;
VIRTGPU_DRM_CAPSET_VIRGL2 :
VIRTGPU_DRM_CAPSET_VIRGL;
init.ctx_set_params = (unsigned long)(void *)&ctx_set_param;
init.num_params = 1;