diff options
author | Samuel Pitoiset <[email protected]> | 2019-07-12 12:17:15 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-07-12 17:47:11 +0200 |
commit | 5d5e26230a29776c9a4fd6ed9f3678dffa87950a (patch) | |
tree | 5ef609f2fc47870749763a88767f3b668c6b556e /src/amd/vulkan | |
parent | df062afa03c9bccbe14919600ebadc2e3fe3db58 (diff) |
radv/gfx10: emit GE_PC_ALLOC
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 63583a9c6d9..fdb0ed29ea4 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3266,6 +3266,18 @@ radv_pipeline_generate_vgt_gs_mode(struct radeon_cmdbuf *ctx_cs, } static void +gfx10_set_ge_pc_alloc(struct radeon_cmdbuf *ctx_cs, + struct radv_pipeline *pipeline, + bool culling) +{ + struct radeon_info *info = &pipeline->device->physical_device->rad_info; + + radeon_set_uconfig_reg(ctx_cs, R_030980_GE_PC_ALLOC, + S_030980_OVERSUB_EN(1) | + S_030980_NUM_PC_LINES((culling ? 256 : 128) * info->max_se - 1)); +} + +static void radv_pipeline_generate_hw_vs(struct radeon_cmdbuf *ctx_cs, struct radeon_cmdbuf *cs, struct radv_pipeline *pipeline, @@ -3331,6 +3343,9 @@ radv_pipeline_generate_hw_vs(struct radeon_cmdbuf *ctx_cs, if (pipeline->device->physical_device->rad_info.chip_class <= GFX8) radeon_set_context_reg(ctx_cs, R_028AB4_VGT_REUSE_OFF, outinfo->writes_viewport_index); + + if (pipeline->device->physical_device->rad_info.chip_class >= GFX10) + gfx10_set_ge_pc_alloc(ctx_cs, pipeline, false); } static void @@ -3477,6 +3492,8 @@ radv_pipeline_generate_hw_ngg(struct radeon_cmdbuf *ctx_cs, S_03096C_PRIM_GRP_SIZE(ngg_state->max_gsprims) | S_03096C_VERT_GRP_SIZE(ngg_state->hw_max_esverts) | S_03096C_BREAK_WAVE_AT_EOI(break_wave_at_eoi)); + + gfx10_set_ge_pc_alloc(ctx_cs, pipeline, false); } static void |