venus: add VN_PERF_NO_CMD_BATCHING

Make it easier to debug object lifetime issues in Venus.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19830>
This commit is contained in:
Yiwei Zhang
2022-11-17 21:53:57 +00:00
committed by Marge Bot
parent 739b20beda
commit c2fdd6a2c2
3 changed files with 8 additions and 0 deletions
+6
View File
@@ -18,6 +18,9 @@
#include "vn_image.h"
#include "vn_render_pass.h"
static void
vn_cmd_submit(struct vn_command_buffer *cmd);
#define VN_CMD_ENQUEUE(cmd_name, commandBuffer, ...) \
do { \
struct vn_command_buffer *_cmd = \
@@ -28,6 +31,9 @@
vn_encode_##cmd_name(&_cmd->cs, 0, commandBuffer, ##__VA_ARGS__); \
else \
_cmd->state = VN_COMMAND_BUFFER_STATE_INVALID; \
\
if (VN_PERF(NO_CMD_BATCHING)) \
vn_cmd_submit(_cmd); \
} while (0)
static bool