intel/batch_decoder: drop bogus check

state_addr == bo.addr, bo.size==0 is handled by another check

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-17 20:03:49 +01:00 committed by Marge Bot
parent bb8ee5f52d
commit cd0f9cdb6e

View file

@ -345,7 +345,7 @@ dump_samplers(struct intel_batch_decode_ctx *ctx, uint32_t offset, int count)
return;
}
if (offset % 32 != 0 || state_addr - bo.addr >= bo.size) {
if (offset % 32 != 0) {
fprintf(ctx->fp, " invalid sampler state pointer\n");
return;
}