summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_pipeline.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-09-11 11:25:14 +0200
committerSamuel Pitoiset <[email protected]>2018-10-29 17:09:08 +0100
commit98c09c3fcdc0a4a0a362a556a8692b93f39345f8 (patch)
treea22bb36635e3686686a1e1736f8ee98b601f8ffd /src/amd/vulkan/radv_pipeline.c
parent4649471a9e5fef200ea69673bcc0e2b0e4c561c1 (diff)
radv: adjust the number of output components per stream
Same as the previous patch, except that is only the number of components. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r--src/amd/vulkan/radv_pipeline.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index e1d50163444..f69811559c1 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -3018,12 +3018,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,