mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 00:50:07 +01:00
radv: correctly enable WGP_MODE for NGG and GS
Previously, we would set WGP_MODE on GFX10+ and then only on GFX10. Because we used bitwise or, the result was WGP_MODE being set on GFX10+. We also set the wrong bit, S_00B848_WGP_MODE instead of S_00B228_WGP_MODE. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8811>
This commit is contained in:
parent
56cd79b63d
commit
2338e4ad36
1 changed files with 4 additions and 4 deletions
|
|
@ -1034,8 +1034,7 @@ static void radv_postprocess_config(const struct radv_device *device,
|
|||
S_00B02C_EXCP_EN(excp_en);
|
||||
break;
|
||||
case MESA_SHADER_GEOMETRY:
|
||||
config_out->rsrc1 |= S_00B228_MEM_ORDERED(pdevice->rad_info.chip_class >= GFX10) |
|
||||
S_00B848_WGP_MODE(pdevice->rad_info.chip_class >= GFX10);
|
||||
config_out->rsrc1 |= S_00B228_MEM_ORDERED(pdevice->rad_info.chip_class >= GFX10);
|
||||
config_out->rsrc2 |= S_00B22C_SHARED_VGPR_CNT(num_shared_vgpr_blocks) |
|
||||
S_00B22C_EXCP_EN(excp_en);
|
||||
break;
|
||||
|
|
@ -1092,7 +1091,7 @@ static void radv_postprocess_config(const struct radv_device *device,
|
|||
* disable exactly 1 CU per SA for GS.
|
||||
*/
|
||||
config_out->rsrc1 |= S_00B228_GS_VGPR_COMP_CNT(gs_vgpr_comp_cnt) |
|
||||
S_00B848_WGP_MODE(pdevice->rad_info.chip_class == GFX10);
|
||||
S_00B228_WGP_MODE(pdevice->rad_info.chip_class == GFX10);
|
||||
config_out->rsrc2 |= S_00B22C_ES_VGPR_COMP_CNT(es_vgpr_comp_cnt) |
|
||||
S_00B22C_LDS_SIZE(config_in->lds_size) |
|
||||
S_00B22C_OC_LDS_EN(es_stage == MESA_SHADER_TESS_EVAL);
|
||||
|
|
@ -1127,7 +1126,8 @@ static void radv_postprocess_config(const struct radv_device *device,
|
|||
gs_vgpr_comp_cnt = 0; /* VGPR0 contains offsets 0, 1 */
|
||||
}
|
||||
|
||||
config_out->rsrc1 |= S_00B228_GS_VGPR_COMP_CNT(gs_vgpr_comp_cnt);
|
||||
config_out->rsrc1 |= S_00B228_GS_VGPR_COMP_CNT(gs_vgpr_comp_cnt) |
|
||||
S_00B228_WGP_MODE(pdevice->rad_info.chip_class >= GFX10);
|
||||
config_out->rsrc2 |= S_00B22C_ES_VGPR_COMP_CNT(es_vgpr_comp_cnt) |
|
||||
S_00B22C_OC_LDS_EN(es_type == MESA_SHADER_TESS_EVAL);
|
||||
} else if (pdevice->rad_info.chip_class >= GFX9 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue