summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Lönnberg <toni.lonnberg@intel.com>2018-08-28 14:07:47 +0300
committerFrancisco Jerez <currojerez@riseup.net>2019-08-05 14:53:53 -0700
commitde290448a20ff0639737765cbef3a89f5e0713f2 (patch)
tree937306a660a0c07ce3e0e3e8550c8f5d97feaa61
parenta09cf8144f59c59ba3c69360256fe749ca394413 (diff)
i965: SIMD32 heuristics control data
Added a new structure for holding SIMD32 heuristics control data. The control data itself will be fetched from drirc.
-rw-r--r--src/intel/compiler/brw_compiler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h
index 614410e3fb7..f70f289a90f 100644
--- a/src/intel/compiler/brw_compiler.h
+++ b/src/intel/compiler/brw_compiler.h
@@ -38,6 +38,15 @@ struct ra_regs;
struct nir_shader;
struct brw_program;
+struct brw_simd32_heuristics_control {
+ bool grouped_sends_check;
+ int max_grouped_sends;
+ bool inst_count_check;
+ float inst_count_ratio;
+ bool mrt_check;
+ int max_mrts;
+};
+
struct brw_compiler {
const struct gen_device_info *devinfo;
@@ -119,6 +128,8 @@ struct brw_compiler {
* whether nir_opt_large_constants will be run.
*/
bool supports_shader_constants;
+
+ struct brw_simd32_heuristics_control simd32_heuristics_control;
};
/**