diff options
author | Samuel Pitoiset <[email protected]> | 2019-09-03 11:34:42 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-09-10 09:26:53 +0200 |
commit | e7ee9a63875321a866f4cf57d8d0fd0629c3570f (patch) | |
tree | 7e564b886df10fca81c026fee6c2ee5e7a941e92 /src | |
parent | 7eba5666faac270ea682f5142efdf2400030db48 (diff) |
radv: store the ESGS ring size as part of gfx10_ngg_info
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 3 | ||||
-rw-r--r-- | src/amd/vulkan/radv_shader.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index b7750052010..70f62725ac0 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1833,6 +1833,7 @@ gfx10_get_ngg_info(const VkGraphicsPipelineCreateInfo *pCreateInfo, ngg->prim_amp_factor = prim_amp_factor; ngg->max_vert_out_per_gs_instance = max_vert_out_per_gs_instance; ngg->ngg_emit_size = max_gsprims * gsprim_lds_size; + ngg->esgs_ring_size = 4 * max_esverts * esvert_lds_size; if (gs_type == MESA_SHADER_GEOMETRY) { ngg->vgt_esgs_ring_itemsize = es_info->esgs_itemsize / 4; @@ -1840,7 +1841,7 @@ gfx10_get_ngg_info(const VkGraphicsPipelineCreateInfo *pCreateInfo, ngg->vgt_esgs_ring_itemsize = 1; } - pipeline->graphics.esgs_ring_size = 4 * max_esverts * esvert_lds_size; + pipeline->graphics.esgs_ring_size = ngg->esgs_ring_size; assert(ngg->hw_max_esverts >= 24); /* HW limitation */ } diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 8574939b82f..61431cc9683 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -209,6 +209,7 @@ struct gfx10_ngg_info { uint32_t max_out_verts; uint32_t prim_amp_factor; uint32_t vgt_esgs_ring_itemsize; + uint32_t esgs_ring_size; bool max_vert_out_per_gs_instance; }; |