mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
ac: Fix loading a dvec3 from an SSBO
The comment was wrong, since the loop above casts to a type with the correct bitsize already. Fixes:7e7ee82698("ac: add support for 16bit buffer loads") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commit27fe3f5b5a)
This commit is contained in:
parent
e3777d9a83
commit
cd914013c0
1 changed files with 2 additions and 2 deletions
|
|
@ -1687,8 +1687,8 @@ static LLVMValueRef visit_load_buffer(struct ac_nir_context *ctx,
|
|||
};
|
||||
|
||||
if (num_bytes > 16 && num_components == 3) {
|
||||
/* we end up with a v4f32 and v2f32 but shuffle fails on that */
|
||||
results[1] = ac_build_expand_to_vec4(&ctx->ac, results[1], 2);
|
||||
/* we end up with a v2i64 and i64 but shuffle fails on that */
|
||||
results[1] = ac_build_expand(&ctx->ac, results[1], 1, 2);
|
||||
}
|
||||
|
||||
LLVMValueRef swizzle = LLVMConstVector(masks, num_components);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue