vkr: use vrend_printf to warn when venus is disabled

This helps identify issues when crosvm enables venus blindly.

v2: include vrend_debug.h

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> (v1)
macos/master
Chia-I Wu 4 years ago
parent 7e40c41e69
commit 71f169c8e8
  1. 3
      src/vkr_renderer.h

@ -12,6 +12,7 @@
#include <stdint.h> #include <stdint.h>
#include "os/os_misc.h" #include "os/os_misc.h"
#include "vrend_debug.h"
#define VKR_RENDERER_THREAD_SYNC (1u << 0) #define VKR_RENDERER_THREAD_SYNC (1u << 0)
#define VKR_RENDERER_MULTI_PROCESS (1u << 1) #define VKR_RENDERER_MULTI_PROCESS (1u << 1)
@ -42,7 +43,7 @@ vkr_context_create(size_t debug_len, const char *debug_name);
static inline int static inline int
vkr_renderer_init(UNUSED uint32_t flags) vkr_renderer_init(UNUSED uint32_t flags)
{ {
fprintf(stderr, "Vulkan support was not enabled in virglrenderer\n"); vrend_printf("Vulkan support was not enabled in virglrenderer\n");
return -1; return -1;
} }

Loading…
Cancel
Save