|
|
@ -8,6 +8,8 @@ |
|
|
|
#ifndef VN_PROTOCOL_RENDERER_DISPATCHES_H |
|
|
|
#ifndef VN_PROTOCOL_RENDERER_DISPATCHES_H |
|
|
|
#define 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_structs.h" |
|
|
|
#include "vn_protocol_renderer_transport.h" |
|
|
|
#include "vn_protocol_renderer_transport.h" |
|
|
|
#include "vn_protocol_renderer_instance.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_VkCommandTypeEXT(ctx->decoder, &cmd_type); |
|
|
|
vn_decode_VkFlags(ctx->decoder, &cmd_flags); |
|
|
|
vn_decode_VkFlags(ctx->decoder, &cmd_flags); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#ifdef DEBUG |
|
|
|
|
|
|
|
TRACE_SCOPE_SLOW(vn_dispatch_command_name(cmd_type)); |
|
|
|
|
|
|
|
#endif |
|
|
|
if (cmd_type < 195 && vn_dispatch_table[cmd_type]) |
|
|
|
if (cmd_type < 195 && vn_dispatch_table[cmd_type]) |
|
|
|
vn_dispatch_table[cmd_type](ctx, cmd_flags); |
|
|
|
vn_dispatch_table[cmd_type](ctx, cmd_flags); |
|
|
|
else |
|
|
|
else |
|
|
|
vn_cs_decoder_set_fatal(ctx->decoder); |
|
|
|
vn_cs_decoder_set_fatal(ctx->decoder); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (vn_cs_decoder_get_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)); |
|
|
|
vn_dispatch_debug_log(ctx, "%s resulted in CS error", vn_dispatch_command_name(cmd_type)); |
|
|
|