i965: Add INTEL_DEBUG=nocompact to disable instruction compaction.
authorMatt Turner <mattst88@gmail.com>
Thu, 29 Oct 2015 23:08:45 +0000 (16:08 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 30 Oct 2015 00:51:16 +0000 (17:51 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_compact.c
src/mesa/drivers/dri/i965/intel_debug.c
src/mesa/drivers/dri/i965/intel_debug.h

index f787ea3d4f887bc9f3bc6969773b0ed9c07596b1..07ace6bfbcb3134288b123b4c20f7a68b5364737 100644 (file)
@@ -1407,6 +1407,9 @@ void
 brw_compact_instructions(struct brw_codegen *p, int start_offset,
                          int num_annotations, struct annotation *annotation)
 {
+   if (unlikely(INTEL_DEBUG & DEBUG_NO_COMPACTION))
+      return;
+
    const struct brw_device_info *devinfo = p->devinfo;
    void *store = p->store + start_offset / 16;
    /* For an instruction at byte offset 16*i before compaction, this is the
index 31821affa212976130293178dbd48d787863ad84..c00d2e786f39008a3a0bc380fad7b9f38205c861 100644 (file)
@@ -74,6 +74,7 @@ static const struct debug_control debug_control[] = {
    { "spill_vec4",  DEBUG_SPILL_VEC4 },
    { "cs",          DEBUG_CS },
    { "hex",         DEBUG_HEX },
+   { "nocompact",   DEBUG_NO_COMPACTION },
    { NULL,    0 }
 };
 
index 25ea32c67712edbd7649fb26d1a67ca756f144e0..98bd7e9395612a90f4eb8b176217b60c20fd6f1e 100644 (file)
@@ -68,6 +68,7 @@ extern uint64_t INTEL_DEBUG;
 #define DEBUG_SPILL_VEC4          (1ull << 32)
 #define DEBUG_CS                  (1ull << 33)
 #define DEBUG_HEX                 (1ull << 34)
+#define DEBUG_NO_COMPACTION       (1ull << 35)
 
 #ifdef HAVE_ANDROID_PLATFORM
 #define LOG_TAG "INTEL-MESA"