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 d0e272bb9eec8c27c98c60604f929376d9a70005..00861ce5dad772465d6132626873d943350ee2de 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 5d8998810cf41d4673673b89966767081f6f4aa1..76dbc065351ce61ae764b9c3fd7d621c035208d7 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 5c05586f49ab7d43d896e43be2a3f21a1881d311..ce64dc652c721eb1845cfeac65d046c4992a2629 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 6903ccd8412f3d2f1676eac76f61e3e7d9c2e617..3c12c4a614ad70aec5780253383278fb380b601f 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,