From 08f8677b29945ed183095f7df33f45db8fc4a026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Fri, 19 Mar 2021 10:16:16 +0100 Subject: [PATCH] intel/batch_decoder: assert on invalid sampler pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Ĺšlusarz Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/common/intel_batch_decoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/common/intel_batch_decoder.c b/src/intel/common/intel_batch_decoder.c index 8c4387b8df0..b1df79f5b9d 100644 --- a/src/intel/common/intel_batch_decoder.c +++ b/src/intel/common/intel_batch_decoder.c @@ -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; }