mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 23:58:16 +02:00
i965: Switch to the EU emit layer for code generation on Broadwell.
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>
This commit is contained in:
parent
db6ffa29c8
commit
074d472398
3 changed files with 3 additions and 3 deletions
|
|
@ -3245,7 +3245,7 @@ brw_wm_fs_emit(struct brw_context *brw,
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -1794,7 +1794,7 @@ brw_vs_emit(struct brw_context *brw,
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -615,7 +615,7 @@ generate_assembly(struct brw_context *brw,
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue