intel: Only validate inst compaction if debugging a shader stage

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26791>
This commit is contained in:
Matt Turner
2023-12-21 12:45:51 -05:00
committed by Marge Bot
parent 2309451c4f
commit f2c97440f2

View File

@@ -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))) {