[virglrenderer-devel] [PATCH v2 4/4] vtest/vulkan: vtest now initializes vulkan's state

Nathan Gauer nathan at gauer.org
Fri Jul 27 12:28:28 UTC 2018


Signed-off-by: Nathan Gauer <nathan at gauer.org>
---
 vtest/vtest_renderer.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/vtest/vtest_renderer.c b/vtest/vtest_renderer.c
index bcc1a8d..d61b959 100644
--- a/vtest/vtest_renderer.c
+++ b/vtest/vtest_renderer.c
@@ -28,6 +28,7 @@
 #include <fcntl.h>
 #include <limits.h>
 
+#include "config.h"
 #include "virglrenderer.h"
 
 #include <sys/uio.h>
@@ -123,6 +124,10 @@ int vtest_create_renderer(int in_fd, int out_fd, uint32_t length)
     if (getenv("VTEST_USE_GLX"))
        ctx = VIRGL_RENDERER_USE_GLX;
 
+#ifdef WITH_VULKAN
+   ctx |= VIRGL_RENDERER_USE_VULKAN;
+#endif
+
     ret = virgl_renderer_init(&renderer,
                               ctx | VIRGL_RENDERER_THREAD_SYNC, &vtest_cbs);
     if (ret) {
@@ -141,7 +146,6 @@ int vtest_create_renderer(int in_fd, int out_fd, uint32_t length)
     }
 
     ret = virgl_renderer_context_create(ctx_id, strlen(vtestname), vtestname);
-
 end:
     free(vtestname);
     return ret;
-- 
2.18.0



More information about the virglrenderer-devel mailing list