[PATCH] virtio-gpu-virgl: fix a bug in context create

2025-03-20 Thread liweishi
From: Weishi Li When VIRGL_VERSION_MAJOR<1, virtio_gpu_context_init_enabled will always return false, causing virgl_cmd_context_create to always return error. Therefore, it is necessary to also include the virtio_gpu_context_init_enabled segment in the VIRGL_VERSION_MAJOR judgment to ensure that

[PATCH v1] virtio-gpu-virgl: Correct virgl_cmd_context_create()

2025-02-25 Thread liweishi
From: Weishi Li Due to the fact that g->parent_obj.conf only adds VIRTIO_GPU_FLAG_CONTEXT_INIT_ENABLED setting when VIRGL_VERSION_MAJOR >= 1, virgl_cmd_comtext_create() will always return by error=VIRTIO_GPU_RESP_ERR_UNSPEC when VIRGL_VERSION_MAJOR < 1, resulting in gl context initialization fail