i965: Move channel_expressions and vector_splitting to brw_program.h
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Mar 2017 02:48:23 +0000 (18:48 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Mar 2017 00:14:02 +0000 (16:14 -0800)
They're GL-specific.

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

index d0e272b..00861ce 100644 (file)
@@ -484,9 +484,6 @@ private:
    void *mem_ctx;
 };
 
-bool brw_do_channel_expressions(struct exec_list *instructions);
-bool brw_do_vector_splitting(struct exec_list *instructions);
-
 void shuffle_32bit_load_result_to_64bit_data(const brw::fs_builder &bld,
                                              const fs_reg &dst,
                                              const fs_reg &src,
index 5d89988..76dbc06 100644 (file)
@@ -41,6 +41,7 @@
  * we do retain the vector types in that case.
  */
 
+#include "brw_program.h"
 #include "compiler/glsl/ir.h"
 #include "compiler/glsl/ir_expression_flattening.h"
 #include "compiler/glsl_types.h"
index 5c05586..ce64dc6 100644 (file)
@@ -37,6 +37,7 @@
  * behavior we want for the results of texture lookups, but probably not for
  */
 
+#include "brw_program.h"
 #include "main/imports.h"
 #include "compiler/glsl/ir.h"
 #include "compiler/glsl/ir_rvalue_visitor.h"
index 6903ccd..3c12c4a 100644 (file)
@@ -32,6 +32,9 @@ extern "C" {
 
 struct brw_context;
 
+bool brw_do_channel_expressions(struct exec_list *instructions);
+bool brw_do_vector_splitting(struct exec_list *instructions);
+
 struct nir_shader *brw_create_nir(struct brw_context *brw,
                                   const struct gl_shader_program *shader_prog,
                                   struct gl_program *prog,