Lines Matching defs:lod
352 * Bri-linear lod computation
384 LLVMValueRef lod,
394 lp_build_printf(bld->gallivm, "lod = %f\n", lod);
397 lod = lp_build_add(bld, lod,
400 lp_build_ifloor_fract(bld, lod, out_lod_ipart, &lod_fpart);
424 * Combined log2 and brilinear lod computation.
481 * \param lod_bias optional float vector with the shader lod bias
482 * \param explicit_lod optional float vector with the explicit lod
487 * The resulting lod is scalar per quad, so only the first value per quad
503 LLVMValueRef lod;
515 lod = lp_build_broadcast_scalar(perquadf_bld, min_lod);
519 lod = lp_build_pack_aos_scalars(bld->gallivm, bld->coord_bld.type,
528 * Compute lod = log2(rho)
537 * saves instructions but keeping the integer and fractional lod
556 lod = lp_build_log2(perquadf_bld, rho);
559 lod = lp_build_fast_log2(perquadf_bld, rho);
562 /* add shader lod bias */
566 lod = LLVMBuildFAdd(builder, lod, lod_bias, "shader_lod_bias");
570 /* add sampler lod bias */
576 lod = LLVMBuildFAdd(builder, lod, sampler_lod_bias, "sampler_lod_bias");
579 /* clamp lod */
585 lod = lp_build_min(perquadf_bld, lod, max_lod);
592 lod = lp_build_max(perquadf_bld, lod, min_lod);
598 lp_build_brilinear_lod(perquadf_bld, lod, BRILINEAR_FACTOR,
602 lp_build_ifloor_fract(perquadf_bld, lod, out_lod_ipart, out_lod_fpart);
608 *out_lod_ipart = lp_build_iround(perquadf_bld, lod);
618 * For PIPE_TEX_MIPFILTER_NEAREST, convert float LOD to integer
648 * For PIPE_TEX_MIPFILTER_LINEAR, convert per-quad int LOD(s) to two (per-quad)
649 * (adjacent) mipmap level indexes, and fix up float lod part accordingly.