mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
ac/nir/llvm: fix channel in texture gather lowering code.
This fixes a number of CTS tests like: dEQP-VK.glsl.texture_gather.basic.2d.rgba8ui.size_npot.clamp_to_edge_repeat Cc: "13.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
38ab625c5f
commit
713522fb8d
1 changed files with 1 additions and 1 deletions
|
|
@ -1759,7 +1759,7 @@ static LLVMValueRef radv_lower_gather4_integer(struct nir_to_llvm_context *ctx,
|
|||
|
||||
for (c = 0; c < 2; c++) {
|
||||
half_texel[c] = LLVMBuildExtractElement(ctx->builder, size,
|
||||
ctx->i32zero, "");
|
||||
LLVMConstInt(ctx->i32, c, false), "");
|
||||
half_texel[c] = LLVMBuildUIToFP(ctx->builder, half_texel[c], ctx->f32, "");
|
||||
half_texel[c] = emit_fdiv(ctx, ctx->f32one, half_texel[c]);
|
||||
half_texel[c] = LLVMBuildFMul(ctx->builder, half_texel[c],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue