vkr: log for object validation failures

Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/722>
macos/master
Chia-I Wu 3 years ago committed by Marge Bot
parent a0ef5307b0
commit f648073d62
  1. 1
      src/venus/vkr_context.h

@ -98,6 +98,7 @@ static inline bool
vkr_context_validate_object_id(struct vkr_context *ctx, vkr_object_id id)
{
if (unlikely(!id || _mesa_hash_table_search(ctx->object_table, &id))) {
vkr_log("invalid object id %" PRIu64, id);
vkr_cs_decoder_set_fatal(&ctx->decoder);
return false;
}

Loading…
Cancel
Save