intel/batch_decoder: assert on invalid sampler pointer

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9707>
This commit is contained in:
Marcin Ślusarz 2021-03-19 10:16:16 +01:00 committed by Marge Bot
parent 56cd91bc7c
commit 08f8677b29
1 changed files with 1 additions and 0 deletions

View File

@ -351,6 +351,7 @@ dump_samplers(struct intel_batch_decode_ctx *ctx, uint32_t offset, int count)
if (count * sampler_state_size >= bo.size) {
fprintf(ctx->fp, " sampler state ends after bo ends\n");
assert(!"sampler state ends after bo ends");
return;
}