i965: Add INTEL_DEBUG=hex to print the hex with the disassembly.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_eu.c
index 1f4a3516fa2319273e2c5e14082df20c1b957dc2..40ec87d38f05ef182744aaeb142669ecf2b617b3 100644 (file)
@@ -261,7 +261,7 @@ void
 brw_disassemble(const struct brw_device_info *devinfo,
                 void *assembly, int start, int end, FILE *out)
 {
-   bool dump_hex = false;
+   bool dump_hex = (INTEL_DEBUG & DEBUG_HEX) != 0;
 
    for (int offset = start; offset < end;) {
       brw_inst *insn = assembly + offset;