ac: don't align VGPRs to 8 or 16 for gfx11
authorMarek Olšák <marek.olsak@amd.com>
Wed, 4 May 2022 00:32:27 +0000 (20:32 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 May 2022 04:29:54 +0000 (04:29 +0000)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16328>

src/amd/common/ac_binary.c

index b5b941a..e07bd55 100644 (file)
@@ -124,7 +124,7 @@ void ac_parse_shader_binary_config(const char *data, size_t nbytes, unsigned wav
     *
     * For shader-db stats, set num_vgprs that the hw actually uses.
     */
-   if (info->chip_class >= GFX10_3) {
+   if (info->chip_class == GFX10_3) {
       conf->num_vgprs = align(conf->num_vgprs, wave_size == 32 ? 16 : 8);
    }