radv/gfx10: enable OC_LDS_EN for NGG GS if the ES stage is TES
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 15 Jul 2019 16:46:48 +0000 (18:46 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 15 Jul 2019 18:05:21 +0000 (20:05 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c

index f6b0297d4a32bf5cc9cac70deb25b6b342e7fb15..1e9399de193ff114b9f15ed9df9f266661c8840d 100644 (file)
@@ -826,7 +826,8 @@ static void radv_postprocess_config(const struct radv_physical_device *pdevice,
                config_out->rsrc1 |= S_00B228_GS_VGPR_COMP_CNT(gs_vgpr_comp_cnt) |
                                     S_00B228_WGP_MODE(1);
                config_out->rsrc2 |= S_00B22C_ES_VGPR_COMP_CNT(es_vgpr_comp_cnt) |
-                                    S_00B22C_LDS_SIZE(config_in->lds_size);
+                                    S_00B22C_LDS_SIZE(config_in->lds_size) |
+                                    S_00B22C_OC_LDS_EN(es_stage == MESA_SHADER_TESS_EVAL);
        } else if (pdevice->rad_info.chip_class >= GFX9 &&
                   stage == MESA_SHADER_GEOMETRY) {
                unsigned es_type = info->gs.es_type;