summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_shader.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-06-29 18:11:29 -0700
committerMatt Turner <mattst88@gmail.com>2014-07-05 22:42:30 -0700
commit1580865a8c576f386c40c3f346636132d720654b (patch)
treef83f0a236b645b275691013aa1240c9c3d1acd54 /src/mesa/drivers/dri/i965/brw_shader.cpp
parent423932791d0e4bbae28f3557659f031d3b2ac980 (diff)
downloadexternal_mesa3d-1580865a8c576f386c40c3f346636132d720654b.zip
external_mesa3d-1580865a8c576f386c40c3f346636132d720654b.tar.gz
external_mesa3d-1580865a8c576f386c40c3f346636132d720654b.tar.bz2
i965: Move assembly annotation functions to intel_asm_annotation.c.
It's C. Compile it as such. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_shader.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
index d7e127b..318802b 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.cpp
+++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
@@ -822,58 +822,3 @@ backend_visitor::assign_common_binding_table_offsets(uint32_t next_binding_table
/* prog_data->base.binding_table.size will be set by brw_mark_surface_used. */
}
-
-void annotate(struct brw_context *brw,
- struct annotation_info *annotation, cfg_t *cfg,
- backend_instruction *inst, unsigned offset)
-{
- if (annotation->ann_size <= annotation->ann_count) {
- annotation->ann_size = MAX2(1024, annotation->ann_size * 2);
- annotation->ann = reralloc(annotation->mem_ctx, annotation->ann,
- struct annotation, annotation->ann_size);
- if (!annotation->ann)
- return;
- }
-
- struct annotation *ann = &annotation->ann[annotation->ann_count++];
- ann->offset = offset;
- if ((INTEL_DEBUG & DEBUG_NO_ANNOTATION) == 0) {
- ann->ir = inst->ir;
- ann->annotation = inst->annotation;
- }
-
- if (cfg->blocks[annotation->cur_block]->start == inst) {
- ann->block_start = cfg->blocks[annotation->cur_block];
- }
-
- /* There is no hardware DO instruction on Gen6+, so since DO always
- * starts a basic block, we need to set the .block_start of the next
- * instruction's annotation with a pointer to the bblock started by
- * the DO.
- *
- * There's also only complication from emitting an annotation without
- * a corresponding hardware instruction to disassemble.
- */
- if (brw->gen >= 6 && inst->opcode == BRW_OPCODE_DO) {
- annotation->ann_count--;
- }
-
- if (cfg->blocks[annotation->cur_block]->end == inst) {
- ann->block_end = cfg->blocks[annotation->cur_block];
- annotation->cur_block++;
- }
-}
-
-void
-annotation_finalize(struct annotation_info *annotation,
- unsigned next_inst_offset)
-{
- if (!annotation->ann_count)
- return;
-
- if (annotation->ann_count == annotation->ann_size) {
- annotation->ann = reralloc(annotation->mem_ctx, annotation->ann,
- struct annotation, annotation->ann_size + 1);
- }
- annotation->ann[annotation->ann_count].offset = next_inst_offset;
-}