diff options
author | Samuel Pitoiset <[email protected]> | 2019-06-25 15:38:44 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-07-07 17:51:32 +0200 |
commit | 3f68329806a025a9ceab0d47c7ecff31710b8dde (patch) | |
tree | ff96c70f6f1867dece6f2c30dbe65baa981be1d2 | |
parent | 2a83154b4aa4ae9a86134bfd66f315c91e91302f (diff) |
radv/gfx10: emit VGT_VERTEX_REUSE_BLOCK_CNTL during gfx initialization
The value doesn't need to be updated for tess.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 3 | ||||
-rw-r--r-- | src/amd/vulkan/si_cmd_buffer.c | 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 2d54ebe0526..701edd07572 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3434,7 +3434,8 @@ static void radv_pipeline_generate_vgt_vertex_reuse(struct radeon_cmdbuf *ctx_cs, struct radv_pipeline *pipeline) { - if (pipeline->device->physical_device->rad_info.family < CHIP_POLARIS10) + if (pipeline->device->physical_device->rad_info.family < CHIP_POLARIS10 || + pipeline->device->physical_device->rad_info.chip_class >= GFX10) return; unsigned vtx_reuse_depth = 30; diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index 91015f9f01e..91a1db4fc84 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -321,6 +321,7 @@ si_emit_graphics(struct radv_physical_device *physical_device, } if (physical_device->rad_info.chip_class >= GFX10) { + radeon_set_context_reg(cs, R_028C58_VGT_VERTEX_REUSE_BLOCK_CNTL, 14); radeon_set_context_reg(cs, R_02835C_PA_SC_TILE_STEERING_OVERRIDE, physical_device->rad_info.pa_sc_tile_steering_override); radeon_set_context_reg(cs, R_02807C_DB_RMI_L2_CACHE_CONTROL, |