Mesa (main): venus: add cs helper stubs to be used by protocol

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Apr 9 00:24:57 UTC 2022


Module: Mesa
Branch: main
Commit: 0de968f71c0769e17d374f69d72308ffff1651a8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0de968f71c0769e17d374f69d72308ffff1651a8

Author: Yiwei Zhang <zzyiwei at chromium.org>
Date:   Tue Mar 22 20:34:41 2022 +0000

venus: add cs helper stubs to be used by protocol

Signed-off-by: Yiwei Zhang <zzyiwei at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15495>

---

 src/virtio/vulkan/vn_cs.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/virtio/vulkan/vn_cs.h b/src/virtio/vulkan/vn_cs.h
index 3a04738fee1..70d75e40b6c 100644
--- a/src/virtio/vulkan/vn_cs.h
+++ b/src/virtio/vulkan/vn_cs.h
@@ -81,6 +81,18 @@ struct vn_cs_decoder {
    const void *end;
 };
 
+static inline bool
+vn_cs_renderer_protocol_has_api_version(UNUSED uint32_t api_version)
+{
+   return true;
+}
+
+static inline bool
+vn_cs_renderer_protocol_has_extension(UNUSED uint32_t ext_number)
+{
+   return true;
+}
+
 void
 vn_cs_encoder_init(struct vn_cs_encoder *enc,
                    struct vn_instance *instance,



More information about the mesa-commit mailing list