vkr: update venus-protocol for dispatch tracing

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
macos/master
Chia-I Wu 4 years ago
parent f64e081d1a
commit 6a706a623e
  1. 2
      src/venus-protocol/vn_protocol_renderer.h
  2. 15
      src/venus-protocol/vn_protocol_renderer_dispatches.h

@ -1,4 +1,4 @@
/* This file is generated by venus-protocol git-e60093dc. */
/* This file is generated by venus-protocol git-1975d149. */
/*
* Copyright 2020 Google LLC

@ -8,6 +8,8 @@
#ifndef VN_PROTOCOL_RENDERER_DISPATCHES_H
#define VN_PROTOCOL_RENDERER_DISPATCHES_H
#include "virgl_util.h"
#include "vn_protocol_renderer_structs.h"
#include "vn_protocol_renderer_transport.h"
#include "vn_protocol_renderer_instance.h"
@ -439,10 +441,15 @@ static inline void vn_dispatch_command(struct vn_dispatch_context *ctx)
vn_decode_VkCommandTypeEXT(ctx->decoder, &cmd_type);
vn_decode_VkFlags(ctx->decoder, &cmd_flags);
if (cmd_type < 195 && vn_dispatch_table[cmd_type])
vn_dispatch_table[cmd_type](ctx, cmd_flags);
else
vn_cs_decoder_set_fatal(ctx->decoder);
{
#ifdef DEBUG
TRACE_SCOPE_SLOW(vn_dispatch_command_name(cmd_type));
#endif
if (cmd_type < 195 && vn_dispatch_table[cmd_type])
vn_dispatch_table[cmd_type](ctx, cmd_flags);
else
vn_cs_decoder_set_fatal(ctx->decoder);
}
if (vn_cs_decoder_get_fatal(ctx->decoder))
vn_dispatch_debug_log(ctx, "%s resulted in CS error", vn_dispatch_command_name(cmd_type));

Loading…
Cancel
Save