Module: Mesa
Branch: main
Commit: f2c97440f22a65028e13f21c8f7e906c1d435f6f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2c97440f22a65028e13f21c8f7e906c1d435f6f

Author: Matt Turner <[email protected]>
Date:   Thu Dec 21 12:45:51 2023 -0500

intel: Only validate inst compaction if debugging a shader stage

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26791>

---

 src/intel/compiler/brw_eu_compact.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_eu_compact.c 
b/src/intel/compiler/brw_eu_compact.c
index ee6521ce834..413d240af0b 100644
--- a/src/intel/compiler/brw_eu_compact.c
+++ b/src/intel/compiler/brw_eu_compact.c
@@ -2523,7 +2523,9 @@ brw_compact_instructions(struct brw_codegen *p, int 
start_offset,
       if (try_compact_instruction(&c, dst, &inst)) {
          compacted_count++;
 
-         if (INTEL_DEBUG(DEBUG_ANY)) {
+         if (INTEL_DEBUG(DEBUG_VS | DEBUG_GS | DEBUG_TCS | DEBUG_TASK |
+                         DEBUG_WM | DEBUG_CS | DEBUG_TES | DEBUG_MESH |
+                         DEBUG_RT)) {
             brw_inst uncompacted;
             uncompact_instruction(&c, &uncompacted, dst);
             if (memcmp(&saved, &uncompacted, sizeof(uncompacted))) {

Reply via email to