i965: Never use the Gen8 code generators.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Aug 2014 17:05:01 +0000 (10:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Aug 2014 20:39:25 +0000 (13:39 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp

index 4aaba8ff16cce41567cf262710079d7a1247051a..cc5ec16d4b0fb1dabd4974efc69684228a0ae596 100644 (file)
@@ -3245,16 +3245,10 @@ brw_wm_fs_emit(struct brw_context *brw,
    }
 
    const unsigned *assembly = NULL;
-   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);
-   } else {
-      fs_generator g(brw, mem_ctx, key, prog_data, prog, fp, v.do_dual_src,
-                     v.runtime_check_aads_emit, INTEL_DEBUG & DEBUG_WM);
-      assembly = g.generate_assembly(&v.instructions, simd16_instructions,
-                                     final_assembly_size);
-   }
+   fs_generator g(brw, mem_ctx, key, prog_data, prog, fp, v.do_dual_src,
+                  v.runtime_check_aads_emit, INTEL_DEBUG & DEBUG_WM);
+   assembly = g.generate_assembly(&v.instructions, simd16_instructions,
+                                  final_assembly_size);
 
    if (unlikely(brw->perf_debug) && shader) {
       if (shader->compiled_once)
index 8eae61d6e9ee08c4dae8a1427b698119be3e1f4b..b572b611fd65df041ab2412b904fe374c2179dcc 100644 (file)
@@ -1794,15 +1794,9 @@ brw_vs_emit(struct brw_context *brw,
    }
 
    const unsigned *assembly = NULL;
-   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);
-   } else {
-      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);
-   }
+   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);
 
    if (unlikely(brw->perf_debug) && shader) {
       if (shader->compiled_once) {
index 313bdbe50675b0723de442e47fae138416ab0ba4..b7995adab3af3065d22bfdc04d30da328a6f05ba 100644 (file)
@@ -615,15 +615,9 @@ generate_assembly(struct brw_context *brw,
                   exec_list *instructions,
                   unsigned *final_assembly_size)
 {
-   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);
-   } else {
-      vec4_generator g(brw, shader_prog, prog, prog_data, mem_ctx,
-                       INTEL_DEBUG & DEBUG_GS);
-      return g.generate_assembly(instructions, final_assembly_size);
-   }
+   vec4_generator g(brw, shader_prog, prog, prog_data, mem_ctx,
+                    INTEL_DEBUG & DEBUG_GS);
+   return g.generate_assembly(instructions, final_assembly_size);
 }
 
 extern "C" const unsigned *