diff options
author | Samuel Pitoiset <[email protected]> | 2018-04-06 14:06:24 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-04-09 14:28:13 +0200 |
commit | 2f7bb93146743497a6b9fa703b0135c22af6fe31 (patch) | |
tree | 3a72a01082b07876d73156d470b9c80ef3acde6a /src/amd/vulkan/radv_shader.h | |
parent | b30dec738a66d5427916b56f4428bb3d45dd4756 (diff) |
radv: add radv_get_num_physical_sgprs() helper
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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index ae30d6125b1..f5c0645b5f1 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -362,4 +362,10 @@ static inline unsigned shader_io_get_unique_index(gl_varying_slot slot) unreachable("illegal slot in get unique index\n"); } +static inline uint32_t +radv_get_num_physical_sgprs(struct radv_physical_device *physical_device) +{ + return physical_device->rad_info.chip_class >= VI ? 800 : 512; +} + #endif |