venus: default to enable GPL
Update the debug option to NO_GPL to help with runtime debug, and
default to enable GPL.
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27054>
diff --git a/src/virtio/vulkan/vn_common.c b/src/virtio/vulkan/vn_common.c
index 8e0d215..bc35b74 100644
--- a/src/virtio/vulkan/vn_common.c
+++ b/src/virtio/vulkan/vn_common.c
@@ -33,7 +33,7 @@
{ "log_ctx_info", VN_DEBUG_LOG_CTX_INFO },
{ "cache", VN_DEBUG_CACHE },
{ "no_sparse", VN_DEBUG_NO_SPARSE },
- { "gpl", VN_DEBUG_GPL },
+ { "no_gpl", VN_DEBUG_NO_GPL },
{ NULL, 0 },
/* clang-format on */
};
diff --git a/src/virtio/vulkan/vn_common.h b/src/virtio/vulkan/vn_common.h
index b0b5668..c9dc8a1 100644
--- a/src/virtio/vulkan/vn_common.h
+++ b/src/virtio/vulkan/vn_common.h
@@ -110,7 +110,7 @@
VN_DEBUG_LOG_CTX_INFO = 1ull << 5,
VN_DEBUG_CACHE = 1ull << 6,
VN_DEBUG_NO_SPARSE = 1ull << 7,
- VN_DEBUG_GPL = 1ull << 8,
+ VN_DEBUG_NO_GPL = 1ull << 8,
};
enum vn_perf {
diff --git a/src/virtio/vulkan/vn_physical_device.c b/src/virtio/vulkan/vn_physical_device.c
index 6fa5e54..a56e4a1 100644
--- a/src/virtio/vulkan/vn_physical_device.c
+++ b/src/virtio/vulkan/vn_physical_device.c
@@ -1135,7 +1135,7 @@
.EXT_extended_dynamic_state3 = true,
.EXT_dynamic_rendering_unused_attachments = true,
.EXT_fragment_shader_interlock = true,
- .EXT_graphics_pipeline_library = VN_DEBUG(GPL),
+ .EXT_graphics_pipeline_library = !VN_DEBUG(NO_GPL),
.EXT_image_2d_view_of_3d = true,
.EXT_image_drm_format_modifier = true,
.EXT_image_view_min_lod = true,