radeonsi: use correct wave size in gfx10_ngg_calculate_subgroup_info

Fixes: 88efb63caf ("radeonsi/gfx10: implement Wave32")

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6137>
(cherry picked from commit b6fb09fd84)
This commit is contained in:
Marek Olšák 2020-07-30 07:47:42 -04:00 committed by Eric Engestrom
parent 2c898a8f3f
commit a4dfa2bdf8
2 changed files with 2 additions and 2 deletions

View file

@ -3766,7 +3766,7 @@
"description": "radeonsi: use correct wave size in gfx10_ngg_calculate_subgroup_info",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "88efb63cafcf249a370ee27683c41afde3b95ffd"
},

View file

@ -1990,7 +1990,7 @@ void gfx10_ngg_calculate_subgroup_info(struct si_shader *shader)
/* Round up towards full wave sizes for better ALU utilization. */
if (!max_vert_out_per_gs_instance) {
const unsigned wavesize = gs_sel->screen->ge_wave_size;
const unsigned wavesize = si_get_shader_wave_size(shader);
unsigned orig_max_esverts;
unsigned orig_max_gsprims;
do {