const void *key,
struct brw_stage_prog_data *prog_data,
struct gl_program *fp,
- bool runtime_check_aads_emit);
+ bool runtime_check_aads_emit,
+ const char *stage_abbrev);
~fs_generator();
void enable_debug(const char *shader_name);
bool runtime_check_aads_emit;
bool debug_flag;
const char *shader_name;
+ const char *stage_abbrev;
void *mem_ctx;
};
const void *key,
struct brw_stage_prog_data *prog_data,
struct gl_program *prog,
- bool runtime_check_aads_emit)
+ bool runtime_check_aads_emit,
+ const char *stage_abbrev)
: brw(brw), key(key),
prog_data(prog_data),
prog(prog), runtime_check_aads_emit(runtime_check_aads_emit),
- debug_flag(false), mem_ctx(mem_ctx)
+ debug_flag(false), stage_abbrev(stage_abbrev), mem_ctx(mem_ctx)
{
ctx = &brw->ctx;
default:
if (inst->opcode < (int) ARRAY_SIZE(opcode_descs)) {
- _mesa_problem(ctx, "Unsupported opcode `%s' in FS",
- opcode_descs[inst->opcode].name);
+ _mesa_problem(ctx, "Unsupported opcode `%s' in %s",
+ opcode_descs[inst->opcode].name, stage_abbrev);
} else {
- _mesa_problem(ctx, "Unsupported opcode %d in FS", inst->opcode);
+ _mesa_problem(ctx, "Unsupported opcode %d in %s", inst->opcode,
+ stage_abbrev);
}
abort();
MESA_DEBUG_SOURCE_SHADER_COMPILER,
MESA_DEBUG_TYPE_OTHER,
MESA_DEBUG_SEVERITY_NOTIFICATION,
- "FS SIMD%d shader: %d inst, %d loops, "
+ "%s SIMD%d shader: %d inst, %d loops, "
"compacted %d to %d bytes.\n",
- dispatch_width, before_size / 16, loop_count,
+ stage_abbrev, dispatch_width, before_size / 16, loop_count,
before_size, after_size);
return start_offset;
}
fs_generator g(brw, mem_ctx, (void *) &c->key, &prog_data->base.base,
- &c->vp->program.Base, v.runtime_check_aads_emit);
+ &c->vp->program.Base, v.runtime_check_aads_emit, "VS");
if (INTEL_DEBUG & DEBUG_VS) {
char *name = ralloc_asprintf(mem_ctx, "%s vertex shader %d",
prog->Label ? prog->Label : "unnamed",