aco: handle unaligned loads on GFX10.3
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 4 Sep 2020 10:02:50 +0000 (03:02 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 4 Sep 2020 13:19:45 +0000 (13:19 +0000)
Same as GFX10.

Cc: 20.2 mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6594>

src/amd/compiler/aco_instruction_selection.cpp

index f7205cd7ef32ebd11cff34ba9403a7e813795ff9..1d543073f1bd3a7698afdcfc983b544da6dc6c05 100644 (file)
@@ -4440,7 +4440,7 @@ bool check_vertex_fetch_size(isel_context *ctx, const ac_data_format_info *vtx_i
    unsigned vertex_byte_size = vtx_info->chan_byte_size * channels;
    if (vtx_info->chan_byte_size != 4 && channels == 3)
       return false;
-   return (ctx->options->chip_class != GFX6 && ctx->options->chip_class != GFX10) ||
+   return (ctx->options->chip_class >= GFX7 && ctx->options->chip_class <= GFX9) ||
           (offset % vertex_byte_size == 0 && stride % vertex_byte_size == 0);
 }