From: Jason Ekstrand Date: Wed, 1 Mar 2017 02:48:23 +0000 (-0800) Subject: i965: Move channel_expressions and vector_splitting to brw_program.h X-Git-Tag: upstream/17.1.0~1821 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=820ae39725560bc347483a66045b399c85b54bda;p=platform%2Fupstream%2Fmesa.git i965: Move channel_expressions and vector_splitting to brw_program.h They're GL-specific. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index d0e272b..00861ce 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -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, diff --git a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp index 5d89988..76dbc06 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp @@ -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" diff --git a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp index 5c05586..ce64dc6 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp @@ -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" diff --git a/src/mesa/drivers/dri/i965/brw_program.h b/src/mesa/drivers/dri/i965/brw_program.h index 6903ccd..3c12c4a 100644 --- a/src/mesa/drivers/dri/i965/brw_program.h +++ b/src/mesa/drivers/dri/i965/brw_program.h @@ -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,