i965: Skip IR annotations with INTEL_DEBUG=noann.
Running shader-db with INTEL_DEBUG=noann reduces the runtime from ~90 to ~80 seconds on my machine. It also reduces the disk space consumed by the .out files from 660 MB (676 on disk) to 343 MB (358 on disk). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -794,8 +794,10 @@ void annotate(struct brw_context *brw,
|
|||||||
|
|
||||||
struct annotation *ann = &annotation->ann[annotation->ann_count++];
|
struct annotation *ann = &annotation->ann[annotation->ann_count++];
|
||||||
ann->offset = offset;
|
ann->offset = offset;
|
||||||
ann->ir = inst->ir;
|
if ((INTEL_DEBUG & DEBUG_NO_ANNOTATION) == 0) {
|
||||||
ann->annotation = inst->annotation;
|
ann->ir = inst->ir;
|
||||||
|
ann->annotation = inst->annotation;
|
||||||
|
}
|
||||||
|
|
||||||
if (cfg->blocks[annotation->cur_block]->start == inst) {
|
if (cfg->blocks[annotation->cur_block]->start == inst) {
|
||||||
ann->block_start = cfg->blocks[annotation->cur_block];
|
ann->block_start = cfg->blocks[annotation->cur_block];
|
||||||
|
@@ -65,6 +65,7 @@ static const struct dri_debug_control debug_control[] = {
|
|||||||
{ "blorp", DEBUG_BLORP },
|
{ "blorp", DEBUG_BLORP },
|
||||||
{ "nodualobj", DEBUG_NO_DUAL_OBJECT_GS },
|
{ "nodualobj", DEBUG_NO_DUAL_OBJECT_GS },
|
||||||
{ "optimizer", DEBUG_OPTIMIZER },
|
{ "optimizer", DEBUG_OPTIMIZER },
|
||||||
|
{ "noann", DEBUG_NO_ANNOTATION },
|
||||||
{ NULL, 0 }
|
{ NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -61,6 +61,7 @@ extern uint64_t INTEL_DEBUG;
|
|||||||
#define DEBUG_VUE 0x40000000
|
#define DEBUG_VUE 0x40000000
|
||||||
#define DEBUG_NO_DUAL_OBJECT_GS 0x80000000
|
#define DEBUG_NO_DUAL_OBJECT_GS 0x80000000
|
||||||
#define DEBUG_OPTIMIZER 0x100000000
|
#define DEBUG_OPTIMIZER 0x100000000
|
||||||
|
#define DEBUG_NO_ANNOTATION 0x200000000
|
||||||
|
|
||||||
#ifdef HAVE_ANDROID_PLATFORM
|
#ifdef HAVE_ANDROID_PLATFORM
|
||||||
#define LOG_TAG "INTEL-MESA"
|
#define LOG_TAG "INTEL-MESA"
|
||||||
|
Reference in New Issue
Block a user