radv: Use correct types for loading the rings with LLVM.

Ring descriptors are v4i32, not i8.

Fixes: cb117cdc96 ("radv/llvm: use ac_build_gep0_type to get args types")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19404>
This commit is contained in:
Bas Nieuwenhuizen
2022-10-30 16:18:15 +01:00
committed by Marge Bot
parent 18e7f5c428
commit ec9d71498e

View File

@@ -1196,7 +1196,7 @@ radv_llvm_visit_export_vertex(struct ac_shader_abi *abi)
static void
ac_setup_rings(struct radv_shader_context *ctx)
{
struct ac_llvm_pointer ring_offsets = { .t = ctx->ac.i8, .v = ctx->ring_offsets };
struct ac_llvm_pointer ring_offsets = { .t = ctx->ac.v4i32, .v = ctx->ring_offsets };
if (ctx->options->gfx_level <= GFX8 &&
(ctx->stage == MESA_SHADER_GEOMETRY ||