From 4efd079aba165d5a046868ec77a27605724da858 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 28 Sep 2017 22:16:55 -0700 Subject: intel/compiler: Add a flag for pull constant support The Vulkan driver does not support pull constants. It simply limits things such that we can always push everything. Previously, we were determining whether or not to push things based on whether or not the prog_data::pull_param array is non-null. This is rather hackish and about to stop working. Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_compiler.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/intel/compiler/brw_compiler.h') diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index 94fe63e46f1..26e8f464ef6 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -105,6 +105,12 @@ struct brw_compiler { * Base Address? (If not, it's a normal GPU address.) */ bool constant_buffer_0_is_relative; + + /** + * Whether or not the driver supports pull constants. If not, the compiler + * will attempt to push everything. + */ + bool supports_pull_constants; }; -- cgit v1.2.3