Everything should be in place to unify code generation between Gen4-7
and Gen8+. We should be able to drop the Gen8 generators at this point.
However, leave them hooked up for a brief moment, for testing and
comparison purposes. Set GEN8=1 to use the old Gen8+ code generator
paths.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
}
const unsigned *assembly = NULL;
- if (brw->gen >= 8) {
+ if (brw->gen >= 8 && getenv("GEN8") != NULL) {
gen8_fs_generator g(brw, mem_ctx, key, prog_data, prog, fp, v.do_dual_src);
assembly = g.generate_assembly(&v.instructions, simd16_instructions,
final_assembly_size);
}
const unsigned *assembly = NULL;
- if (brw->gen >= 8) {
+ if (brw->gen >= 8 && getenv("GEN8") != NULL) {
gen8_vec4_generator g(brw, prog, &c->vp->program.Base, &prog_data->base,
mem_ctx, INTEL_DEBUG & DEBUG_VS);
assembly = g.generate_assembly(&v.instructions, final_assembly_size);
exec_list *instructions,
unsigned *final_assembly_size)
{
- if (brw->gen >= 8) {
+ if (brw->gen >= 8 && getenv("GEN8") != NULL) {
gen8_vec4_generator g(brw, shader_prog, prog, prog_data, mem_ctx,
INTEL_DEBUG & DEBUG_GS);
return g.generate_assembly(instructions, final_assembly_size);