aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-02-05 20:21:58 +0100
committerSamuel Pitoiset <[email protected]>2019-02-12 17:25:34 +0100
commit5806d99984a4dd276e277b3615e2194adad70b18 (patch)
treefe2ad83edad3d122a314e7b959a2d87b81877c36 /src/amd/vulkan/radv_shader.h
parent129a9f4937b8f2adb4d37999677d748d816d611c (diff)
radv: gather more info about push constants
This is needed in order to inline some push constants when possible. This also adds a new helper for initializing the pass. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.h')
-rw-r--r--src/amd/vulkan/radv_shader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h
index b67cd2b4f15..92886188459 100644
--- a/src/amd/vulkan/radv_shader.h
+++ b/src/amd/vulkan/radv_shader.h
@@ -162,6 +162,10 @@ struct radv_streamout_info {
struct radv_shader_info {
bool loads_push_constants;
+ uint8_t min_push_constant_used;
+ uint8_t max_push_constant_used;
+ bool has_only_32bit_push_constants;
+ bool has_indirect_push_constants;
uint32_t desc_set_used_mask;
bool needs_multiview_view_index;
bool uses_invocation_id;