i965: Move a bunch of pre-compile and link stuff to brw_program.h
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Mar 2017 02:49:45 +0000 (18:49 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Mar 2017 00:14:02 +0000 (16:14 -0800)
It's all GL-specific and brw_program.h is not part of i965_compiler.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_program.h
src/mesa/drivers/dri/i965/brw_shader.h

index 3c12c4a614ad70aec5780253383278fb380b601f..68cdd2e2f6e2f830585e05947e1dc2d1a7a8d845 100644 (file)
@@ -68,6 +68,21 @@ brw_stage_prog_data_free(const void *prog_data);
 void
 brw_dump_arb_asm(const char *stage, struct gl_program *prog);
 
+bool brw_vs_precompile(struct gl_context *ctx, struct gl_program *prog);
+bool brw_tcs_precompile(struct gl_context *ctx,
+                        struct gl_shader_program *shader_prog,
+                        struct gl_program *prog);
+bool brw_tes_precompile(struct gl_context *ctx,
+                        struct gl_shader_program *shader_prog,
+                        struct gl_program *prog);
+bool brw_gs_precompile(struct gl_context *ctx, struct gl_program *prog);
+bool brw_fs_precompile(struct gl_context *ctx, struct gl_program *prog);
+bool brw_cs_precompile(struct gl_context *ctx, struct gl_program *prog);
+
+GLboolean brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog);
+struct gl_linked_shader *brw_new_shader(gl_shader_stage stage);
+
+
 void brw_upload_tcs_prog(struct brw_context *brw);
 void brw_tcs_populate_key(struct brw_context *brw,
                           struct brw_tcs_prog_key *key);
index da2d28ed3e9288e97d8e33a2c539500aee4a0bf7..939a45aa7ef42d174569555ecd010cda6ca83530 100644 (file)
@@ -287,20 +287,6 @@ struct brw_gs_compile
    unsigned control_data_header_size_bits;
 };
 
-bool brw_vs_precompile(struct gl_context *ctx, struct gl_program *prog);
-bool brw_tcs_precompile(struct gl_context *ctx,
-                        struct gl_shader_program *shader_prog,
-                        struct gl_program *prog);
-bool brw_tes_precompile(struct gl_context *ctx,
-                        struct gl_shader_program *shader_prog,
-                        struct gl_program *prog);
-bool brw_gs_precompile(struct gl_context *ctx, struct gl_program *prog);
-bool brw_fs_precompile(struct gl_context *ctx, struct gl_program *prog);
-bool brw_cs_precompile(struct gl_context *ctx, struct gl_program *prog);
-
-GLboolean brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog);
-struct gl_linked_shader *brw_new_shader(gl_shader_stage stage);
-
 unsigned get_atomic_counter_op(nir_intrinsic_op op);
 
 #ifdef __cplusplus