[Mesa-dev] [PATCH 08/15] radv: adjust the number of output components per stream

Samuel Pitoiset samuel.pitoiset at gmail.com
Sat Oct 13 12:57:32 UTC 2018


Same as the previous patch, except that is only the number of
components.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_pipeline.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 338d58f9d5..29ffa027e4 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -3022,12 +3022,11 @@ radv_pipeline_generate_geometry_shader(struct radeon_cmdbuf *cs,
 
 	radeon_set_context_reg(cs, R_028B38_VGT_GS_MAX_VERT_OUT, gs->info.gs.vertices_out);
 
-	uint32_t gs_vert_itemsize = gs->info.gs.gsvs_vertex_size;
 	radeon_set_context_reg_seq(cs, R_028B5C_VGT_GS_VERT_ITEMSIZE, 4);
-	radeon_emit(cs, gs_vert_itemsize >> 2);
-	radeon_emit(cs, 0);
-	radeon_emit(cs, 0);
-	radeon_emit(cs, 0);
+	radeon_emit(cs, num_components[0]);
+	radeon_emit(cs, (max_stream >= 1) ? num_components[1] : 0);
+	radeon_emit(cs, (max_stream >= 2) ? num_components[2] : 0);
+	radeon_emit(cs, (max_stream >= 3) ? num_components[3] : 0);
 
 	uint32_t gs_num_invocations = gs->info.gs.invocations;
 	radeon_set_context_reg(cs, R_028B90_VGT_GS_INSTANCE_CNT,
-- 
2.19.1



More information about the mesa-dev mailing list