void
gen8_fs_generator::generate_code(exec_list *instructions)
{
+ int start_offset = next_inst_offset;
+
struct annotation_info annotation;
memset(&annotation, 0, sizeof(annotation));
patch_jump_targets();
annotation_finalize(&annotation, next_inst_offset);
+ int before_size = next_inst_offset - start_offset;
+
if (unlikely(INTEL_DEBUG & DEBUG_WM)) {
if (prog) {
fprintf(stderr,
fprintf(stderr, "Native code for blorp program (SIMD%d dispatch):\n",
dispatch_width);
}
+ fprintf(stderr, "SIMD%d shader: %d instructions.\n",
+ dispatch_width, before_size / 16);
dump_assembly(store, annotation.ann_count, annotation.ann, brw, prog,
gen8_disassemble);
patch_jump_targets();
annotation_finalize(&annotation, next_inst_offset);
+ int before_size = next_inst_offset;
+
if (unlikely(debug_flag)) {
if (shader_prog) {
fprintf(stderr, "Native code for %s vertex shader %d:\n",
} else {
fprintf(stderr, "Native code for vertex program %d:\n", prog->Id);
}
+ fprintf(stderr, "vec4 shader: %d instructions.\n", before_size / 16);
dump_assembly(store, annotation.ann_count, annotation.ann,
brw, prog, gen8_disassemble);