diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2016-01-21 10:43:32 -0800 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2016-01-21 11:10:11 -0800 |
commit | c5490d027731a1379c099cae6c1fb63ab30cea7c (patch) | |
tree | 5b06159f72bed289bab6fc7ea0d6abca87e35284 /src/mesa | |
parent | 83c86e09a8d7610022eae49731ac1ed03ee4f67b (diff) |
vk: Fix indirect push constants
This currently sets the base and size of all push constants to the
entire push constant block. The idea is that we'll use the base and size
to eventually optimize the amount we actually push, but for now we don't
do that.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index fc883f458fa..1ba5075731a 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1992,11 +1992,10 @@ fs_visitor::assign_constant_locations() */ const unsigned int max_push_components = 16 * 8; - /* We push small arrays, but no bigger than 16 floats. This is big enough - * for a vec4 but hopefully not large enough to push out other stuff. We - * should probably use a better heuristic at some point. + /* For vulkan we don't limit the max_chunk_size. We set it to 32 float = + * 128 bytes, which is the maximum vulkan push constant size. */ - const unsigned int max_chunk_size = 16; + const unsigned int max_chunk_size = 32; unsigned int num_push_constants = 0; unsigned int num_pull_constants = 0; |