Mesa (master): aco: handle unaligned loads on GFX10.3

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 4 13:30:33 UTC 2020


Module: Mesa
Branch: master
Commit: 73eb24ab31a4d6e167ae8e8394f9f26f7c7d5c59
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=73eb24ab31a4d6e167ae8e8394f9f26f7c7d5c59

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Sep  4 03:02:50 2020 -0700

aco: handle unaligned loads on GFX10.3

Same as GFX10.

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

---

 src/amd/compiler/aco_instruction_selection.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp
index f7205cd7ef3..1d543073f1b 100644
--- a/src/amd/compiler/aco_instruction_selection.cpp
+++ b/src/amd/compiler/aco_instruction_selection.cpp
@@ -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);
 }
 



More information about the mesa-commit mailing list