From 186301a232808786a17ac3e8bb1a248722e2e9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Fri, 19 Mar 2021 11:32:46 +0100 Subject: [PATCH] intel/aub_viewer: drop bogus check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit state_addr == bo.addr, bo.size==0 is handled by another check Signed-off-by: Marcin Ĺšlusarz Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/tools/aubinator_viewer_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/tools/aubinator_viewer_decoder.cpp b/src/intel/tools/aubinator_viewer_decoder.cpp index 60b76c24fa6..b3bd7dd3562 100644 --- a/src/intel/tools/aubinator_viewer_decoder.cpp +++ b/src/intel/tools/aubinator_viewer_decoder.cpp @@ -265,7 +265,7 @@ dump_samplers(struct aub_viewer_decode_ctx *ctx, uint32_t offset, int count) return; } - if (offset % 32 != 0 || state_addr - bo.addr >= bo.size) { + if (offset % 32 != 0) { ImGui::TextColored(ctx->cfg->missing_color, "invalid sampler state pointer"); return; }