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:
parent
56cd91bc7c
commit
08f8677b29
|
@ -351,6 +351,7 @@ dump_samplers(struct intel_batch_decode_ctx *ctx, uint32_t offset, int count)
|
||||||
|
|
||||||
if (count * sampler_state_size >= bo.size) {
|
if (count * sampler_state_size >= bo.size) {
|
||||||
fprintf(ctx->fp, " sampler state ends after bo ends\n");
|
fprintf(ctx->fp, " sampler state ends after bo ends\n");
|
||||||
|
assert(!"sampler state ends after bo ends");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue