diff options
author | Dave Airlie <[email protected]> | 2018-02-20 13:48:46 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-03-16 05:23:17 +0000 |
commit | 6f051549c30ecd8340028025f9c947d1ad5a04ce (patch) | |
tree | 7b0fd98bfa3f0512ceb07faee39f9af481253e4d /src/amd/vulkan/radv_pipeline.c | |
parent | 9188bd78d7e2754f36ad66db3fab80c8ee9f5093 (diff) |
radv: get rid of geometry user sgpr for num entries.
This drops one of the geometry specific user sgprs,
we can work this out at compile time.
Reviewed-by: Samuel Pitoiset <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index a4836abf7f1..b6ca2db6916 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2622,16 +2622,9 @@ radv_pipeline_generate_geometry_shader(struct radeon_winsys_cs *cs, AC_UD_GS_VS_RING_STRIDE_ENTRIES); if (loc->sgpr_idx != -1) { uint32_t stride = gs->info.gs.max_gsvs_emit_size; - uint32_t num_entries = 64; - bool is_vi = pipeline->device->physical_device->rad_info.chip_class >= VI; - - if (is_vi) - num_entries *= stride; - stride = S_008F04_STRIDE(stride); - radeon_set_sh_reg_seq(cs, R_00B230_SPI_SHADER_USER_DATA_GS_0 + loc->sgpr_idx * 4, 2); + radeon_set_sh_reg_seq(cs, R_00B230_SPI_SHADER_USER_DATA_GS_0 + loc->sgpr_idx * 4, 1); radeon_emit(cs, stride); - radeon_emit(cs, num_entries); } } |