summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_compiler.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-09-28 22:16:55 -0700
committerJason Ekstrand <[email protected]>2017-10-12 22:39:30 -0700
commit4efd079aba165d5a046868ec77a27605724da858 (patch)
tree96e71c5bab325d158d4c7ffbf084cd2dc136c651 /src/intel/compiler/brw_compiler.h
parent9df64b56663c3ffaee081aa608db9e5163a4eeae (diff)
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_compiler.h')
-rw-r--r--src/intel/compiler/brw_compiler.h6
1 files changed, 6 insertions, 0 deletions
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;
};