OSDN Git Service

panfrost: Prefix schedule_program to prevent collision
authorRobert Foss <robert.foss@collabora.com>
Wed, 15 Jan 2020 00:14:16 +0000 (01:14 +0100)
committerRobert Foss <robert.foss@collabora.com>
Wed, 15 Jan 2020 22:30:17 +0000 (22:30 +0000)
Currently the schedule_program implementation being used is picked
at compile time, which on the Android platform means that the
bifrost compiler & scheduler is used for all targets, including
midgard based hardware.

This commit disambiguates between the two schedule_program functions.

Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/bifrost_sched.c
src/panfrost/bifrost/bifrost_sched.h
src/panfrost/midgard/compiler.h
src/panfrost/midgard/midgard_compile.c
src/panfrost/midgard/midgard_schedule.c

index 2af36ee..abc981d 100644 (file)
@@ -1041,7 +1041,7 @@ bifrost_compile_shader_nir(nir_shader *nir, struct bifrost_program *program)
                 }
         } while (progress);
 
-        schedule_program(ctx);
+        bifrost_schedule_program(ctx);
 
 #ifdef BI_DEBUG
         nir_print_shader(nir, stdout);
index f9629f8..37ae52b 100644 (file)
@@ -374,7 +374,7 @@ remove_extract_elements(compiler_context *ctx, bifrost_block *block)
 }
 
 
-void schedule_program(compiler_context *ctx)
+void bifrost_schedule_program(compiler_context *ctx)
 {
         // XXX: we should move instructions together before RA that can feed in to each other and be scheduled in the same clause
         allocate_registers(ctx);
index cb9d383..7edd95a 100644 (file)
@@ -24,6 +24,6 @@
 #define bifrost_ra_h
 #include "compiler_defines.h"
 
-void schedule_program(compiler_context *ctx);
+void bifrost_schedule_program(compiler_context *ctx);
 
 #endif /* bifrost_ra_h */
index 936d223..172b6d7 100644 (file)
@@ -650,7 +650,7 @@ mir_has_arg(midgard_instruction *ins, unsigned arg)
 
 /* Scheduling */
 
-void schedule_program(compiler_context *ctx);
+void midgard_schedule_program(compiler_context *ctx);
 
 void mir_ra(compiler_context *ctx);
 void mir_squeeze_index(compiler_context *ctx);
index 56a1138..291bb3b 100644 (file)
@@ -2733,7 +2733,7 @@ midgard_compile_shader_nir(nir_shader *nir, midgard_program *program, bool is_bl
                 mir_add_writeout_loops(ctx);
 
         /* Schedule! */
-        schedule_program(ctx);
+        midgard_schedule_program(ctx);
         mir_ra(ctx);
 
         /* Now that all the bundles are scheduled and we can calculate block
index 05a0c74..2106d0d 100644 (file)
@@ -1148,7 +1148,7 @@ schedule_block(compiler_context *ctx, midgard_block *block)
 }
 
 void
-schedule_program(compiler_context *ctx)
+midgard_schedule_program(compiler_context *ctx)
 {
         midgard_promote_uniforms(ctx);