Home
last modified time | relevance | path

Searched refs:half_texel (Results 1 – 2 of 2) sorted by relevance

/external/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c1262 LLVMValueRef half_texel[2]; in lower_gather4_integer() local
1295 half_texel[0] = half_texel[1] = LLVMConstReal(ctx->f32, -0.5); in lower_gather4_integer()
1338 half_texel[c] = in lower_gather4_integer()
1340 half_texel[c] = LLVMBuildUIToFP(ctx->builder, half_texel[c], ctx->f32, ""); in lower_gather4_integer()
1341 half_texel[c] = ac_build_fdiv(ctx, ctx->f32_1, half_texel[c]); in lower_gather4_integer()
1342 half_texel[c] = in lower_gather4_integer()
1343 LLVMBuildFMul(ctx->builder, half_texel[c], LLVMConstReal(ctx->f32, -0.5), ""); in lower_gather4_integer()
1350 LLVMValueRef values[2] = {default_offset, half_texel[c]}; in lower_gather4_integer()
1351 half_texel[c] = ac_build_phi(ctx, ctx->f32, 2, values, bbs); in lower_gather4_integer()
1359 args->coords[c] = LLVMBuildFAdd(ctx->builder, tmp, half_texel[c], ""); in lower_gather4_integer()
/external/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp8975 Temp half_texel[2]; in visit_tex() local
8977 half_texel[i] = emit_extract_vector(ctx, size, i, v1); in visit_tex()
8978 half_texel[i] = bld.vop1(aco_opcode::v_cvt_f32_i32, bld.def(v1), half_texel[i]); in visit_tex()
8979 half_texel[i] = bld.vop1(aco_opcode::v_rcp_iflag_f32, bld.def(v1), half_texel[i]); in visit_tex()
8980half_texel[i] = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), Operand(0xbf000000/*-0.5*/), half_tex… in visit_tex()
8984 bld.vop2(aco_opcode::v_add_f32, bld.def(v1), coords[0], half_texel[0]), in visit_tex()
8985 bld.vop2(aco_opcode::v_add_f32, bld.def(v1), coords[1], half_texel[1]) in visit_tex()