diff options
author | Dave Airlie <[email protected]> | 2017-11-06 02:00:34 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-11-13 07:16:53 +0000 |
commit | 031e591923fad7792a4e2e0522cf63a3ff62bc69 (patch) | |
tree | 6bdd490bec89281275c396505a8020b6f8b1e7e1 /src/amd/vulkan/radv_private.h | |
parent | 4a9aad96aa6d18d5afc20727b1791501cfb7cb48 (diff) |
radv: move calculating vs out info regs into pipeline.
This moves some calculations of register values into the pipeline
construction, it saves looking at outinfo in the cmd buffer emit.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 0f48681c941..58b9f469048 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1110,6 +1110,13 @@ struct radv_vertex_elements_info { uint32_t count; }; +struct radv_vs_state { + uint32_t pa_cl_vs_out_cntl; + uint32_t spi_shader_pos_format; + uint32_t spi_vs_out_config; + uint32_t vgt_reuse_off; +}; + #define SI_GS_PER_ES 128 struct radv_pipeline { @@ -1137,6 +1144,7 @@ struct radv_pipeline { struct radv_multisample_state ms; struct radv_tessellation_state tess; struct radv_gs_state gs; + struct radv_vs_state vs; uint32_t db_shader_control; uint32_t shader_z_format; unsigned prim; @@ -1150,7 +1158,6 @@ struct radv_pipeline { unsigned gsvs_ring_size; uint32_t ps_input_cntl[32]; uint32_t ps_input_cntl_num; - uint32_t pa_cl_vs_out_cntl; uint32_t vgt_shader_stages_en; uint32_t vtx_base_sgpr; uint32_t base_ia_multi_vgt_param; |