Mesa (master): intel/aub_viewer: drop bogus check
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Mar 22 08:43:47 UTC 2021
Module: Mesa
Branch: master
Commit: 186301a232808786a17ac3e8bb1a248722e2e9fd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=186301a232808786a17ac3e8bb1a248722e2e9fd
Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date: Fri Mar 19 11:32:46 2021 +0100
intel/aub_viewer: drop bogus check
state_addr == bo.addr, bo.size==0 is handled by another check
Signed-off-by: Marcin Ślusarz <marcin.slusarz at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9707>
---
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;
}
More information about the mesa-commit
mailing list