HomeSort by: relevance | last modified time | path
    Searched defs:lod (Results 1 - 25 of 65) sorted by relevancy

1 2 3

  /xsrc/external/mit/MesaLib/dist/src/panfrost/midgard/
midgard_errata_lod.c 66 /* Rewrite the LOD with bias/clamps. Order sensitive. */
71 nir_ssa_def *lod = nir_ssa_for_src(b, tex->src[i].src, 1); local
73 nir_ssa_def *biased = nir_fadd(b, lod, lod_bias);
midgard_ra.c 773 struct phys_reg lod = index_to_reg(ctx, l, ins->src[2], src_shift[2]); local
789 /* If there is a register LOD/bias, use it */
791 assert(!(lod.offset & 3));
792 ins->src[2] = SSA_FIXED_REGISTER(lod.reg);
793 ins->swizzle[2][0] = lod.offset / 4;
  /xsrc/external/mit/MesaLib/dist/src/compiler/nir/
nir_lower_readonly_images_to_tex.c 155 nir_ssa_def *lod = intrin->src[3].ssa; local
157 tex->src[2].src = nir_src_for_ssa(lod);
168 nir_ssa_def *lod = intrin->src[1].ssa; local
170 tex->src[1].src = nir_src_for_ssa(lod);
nir_lower_tex.c 233 lower_lod(nir_builder *b, nir_tex_instr *tex, nir_ssa_def *lod)
243 lod = nir_fadd(b, lod, nir_ssa_for_src(b, tex->src[bias_idx].src, 1));
249 /* If we have a minimum LOD, clamp LOD accordingly */
250 lod = nir_fmax(b, lod, nir_ssa_for_src(b, tex->src[min_lod_idx].src, 1));
254 nir_tex_instr_add_src(tex, nir_tex_src_lod, nir_src_for_ssa(lod));
529 * Converts a nir_texop_txd instruction to nir_texop_txl with the given lod
533 replace_gradient_with_lod(nir_builder *b, nir_ssa_def *lod, nir_tex_instr *tex
687 nir_ssa_def *lod = local
751 nir_ssa_def *lod = nir_flog2(b, rho); local
814 nir_ssa_def *lod = nir_get_texture_lod(b, txl); local
1141 nir_ssa_def *lod = nir_ssa_for_src(b, tex->src[lod_idx].src, 1); local
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/
sfn_emittexinstruction.h 48 PValue lod; member in struct:r600::EmitTexInstruction::TexInputs
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/memory/
SurfaceState.h 47 uint32_t minLod; // for sampled surfaces, the most detailed LOD that can be accessed by sampler
48 uint32_t maxLod; // for sampled surfaces, the max LOD that can be accessed
51 uint32_t lod; // for render targets, the lod being rendered to member in struct:SWR_SURFACE_STATE
59 uint32_t lodOffsets[2][15]; // lod offsets for sampled surfaces
  /xsrc/external/mit/MesaLib/dist/src/gallium/frontends/nine/
basetexture9.h 56 DWORD lod; member in struct:NineBaseTexture9::__anon2144
120 DBG_FLAG(DBG_BASETEXTURE, "This=%p dirty=%i dirty_mip=%i lod=%u/%u\n",
121 This, This->managed.dirty, This->dirty_mip, This->managed.lod, This->managed.lod_resident);
123 (This->managed.dirty || This->managed.lod != This->managed.lod_resident))
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/nine/
basetexture9.h 53 DWORD lod; member in struct:NineBaseTexture9::__anon4526
117 DBG_FLAG(DBG_BASETEXTURE, "This=%p dirty=%i dirty_mip=%i lod=%u/%u\n",
118 This, This->managed.dirty, This->dirty_mip, This->managed.lod, This->managed.lod_resident);
120 (This->managed.dirty || This->managed.lod != This->managed.lod_resident))
  /xsrc/external/mit/MesaLib/dist/src/mesa/program/
prog_execute.c 1092 /* Texel lookup with LOD bias */
1119 /* Texture lookup w/ partial derivatives for LOD */
1132 /* Texel lookup with explicit LOD */
1134 GLfloat texcoord[4], color[4], lod; local
1138 /* texcoord[3] is the LOD */
1139 lod = texcoord[3];
1141 machine->FetchTexelLod(ctx, texcoord, lod,
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/program/
prog_execute.c 1092 /* Texel lookup with LOD bias */
1119 /* Texture lookup w/ partial derivatives for LOD */
1132 /* Texel lookup with explicit LOD */
1134 GLfloat texcoord[4], color[4], lod; local
1138 /* texcoord[3] is the LOD */
1139 lod = texcoord[3];
1141 machine->FetchTexelLod(ctx, texcoord, lod,
  /xsrc/external/mit/MesaLib/dist/src/microsoft/compiler/
dxil_nir_lower_int_samplers.c 104 /* DirectX LOD only has a value in x channel */
114 nir_ssa_def *lod; member in struct:__anon2751
317 nir_tex_instr_add_src(load, nir_tex_src_lod, nir_src_for_ssa(params->lod));
333 static nir_ssa_def *lod = NULL; local
335 /* Later we use min_lod for clamping the LOD to a legal value */
338 /* Evaluate the LOD to be used for the texel fetch */
341 /* if we have an explicite LOD, take it */
342 lod = tex->src[lod_index].src.ssa;
356 lod = nir_flog2(b, rho);
358 lod = dx_get_texture_lod(b, tex)
    [all...]
  /xsrc/external/mit/mesa-demos/dist/src/demos/
ipers.c 385 "+/- - Increase/decrease the Object maximum LOD");
443 int lod; local
448 lod = depth + LODbias;
449 if (lod < 0)
450 lod = 0;
451 if (lod >= MAX_LOD)
456 glCallList(LODdlist[lod]);
471 glCallList(LODdlist[lod]);
486 glCallList(LODdlist[lod]);
501 glCallList(LODdlist[lod]);
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/
brw_vec4_nir.cpp 485 src_reg lod = brw_imm_d(0); local
488 emit(MOV(dst_reg(MRF, param_base, glsl_type::int_type, writemask), lod));
1993 src_reg lod, lod2;
2002 /* The hardware requires a LOD for buffer textures */
2004 lod = brw_imm_d(0);
2037 lod = get_nir_src(instr->src[i].src, BRW_REGISTER_TYPE_F,
2050 lod = get_nir_src(instr->src[i].src, BRW_REGISTER_TYPE_D, 1);
2054 lod = get_nir_src(instr->src[i].src, BRW_REGISTER_TYPE_F, 1);
2093 unreachable("LOD bias is not valid for vertex shaders.\n");
2128 lod, lod2, sample_index
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/intel/compiler/
brw_vec4_nir.cpp 453 src_reg lod = brw_imm_d(0); local
456 emit(MOV(dst_reg(MRF, param_base, glsl_type::int_type, writemask), lod));
1995 src_reg lod, lod2;
2001 /* The hardware requires a LOD for buffer textures */
2003 lod = brw_imm_d(0);
2036 lod = get_nir_src(instr->src[i].src, BRW_REGISTER_TYPE_F,
2049 lod = get_nir_src(instr->src[i].src, BRW_REGISTER_TYPE_D, 1);
2053 lod = get_nir_src(instr->src[i].src, BRW_REGISTER_TYPE_F, 1);
2092 unreachable("LOD bias is not valid for vertex shaders.\n");
2128 lod, lod2, sample_index
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/amd/common/
ac_llvm_build.h 525 LLVMValueRef lod; // also used by ac_image_get_resinfo member in struct:ac_image_args
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
nir_lower_tex.c 112 unsigned num_srcs = 1; /* One for the LOD */
146 /* Add in an LOD because some back-ends require it */
205 /* The LOD is the y component of the result */
296 nir_ssa_def *lod = get_texture_lod(b, tex); local
301 lod = nir_fadd(b, lod, nir_ssa_for_src(b, tex->src[bias_idx].src, 1));
307 /* If we have a minimum LOD, clamp LOD accordingly */
308 lod = nir_fmax(b, lod, nir_ssa_for_src(b, tex->src[min_lod_idx].src, 1))
635 nir_ssa_def *lod = local
698 nir_ssa_def *lod = nir_flog2(b, rho); local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/gallivm/
lp_bld_sample.h 109 LLVMValueRef lod; member in struct:lp_sampler_params
259 /** Obtain texture min lod (returns float) */
266 /** Obtain texture max lod (returns float) */
273 /** Obtain texture lod bias (returns float) */
323 /** number of lod values (valid are 1, length/4, length) */
377 /** Float lod type */
381 /** Int lod type */
514 LLVMValueRef lod,
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/codegen/
nv50_ir_lowering_nv50.cpp 726 const int lod = i->tex.target.isShadow() ? (arg + 1) : arg; local
768 // dref comes before bias/lod
771 i->swapSources(dref, lod);
826 // Bias must be equal for all threads of a quad or lod calculation will fail.
899 // LOD must be equal for all threads of a quad.
900 // Unlike with TXB, here we can just diverge since there's no LOD calculation
906 Value *lod = i->getSrc(i->tex.target.getArgCount()); local
907 if (lod->isUniform())
922 bld.mkQuadop(qop, pred, l, lod, lod)->flagsDef = 0
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/amd/llvm/
ac_llvm_build.h 426 LLVMValueRef lod; // also used by ac_image_get_resinfo member in struct:ac_image_args
  /xsrc/external/mit/MesaLib/dist/src/asahi/compiler/
agx_compile.c 786 lod = agx_immediate(0), local
798 lod = index;
813 coords, lod, texture, sampler, offset,
  /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/
ir3_compiler_nir.c 1263 struct ir3_instruction *sam, *lod; local
1269 lod = create_immed(b, 0);
1270 sam = emit_sam(ctx, OPC_GETSIZE, info, dst_type, 0b1111, lod, NULL);
2388 struct ir3_instruction *lod, *compare, *proj, *sample_index; local
2399 lod = proj = compare = sample_index = NULL;
2409 lod = ir3_get_src(ctx, &tex->src[i].src)[0];
2413 lod = ir3_get_src(ctx, &tex->src[i].src)[0];
2527 * bias/lod go into the second arg
2536 /* scale up integer coords for TXF based on the LOD */
2540 src0[i] = ir3_SHL_B(b, src0[i], 0, lod, 0)
2740 struct ir3_instruction *lod; local
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/
lp_bld_sample.c 413 * cost), but for now use same code to per-pixel lod case.
658 * Bri-linear lod computation
690 LLVMValueRef lod,
700 lp_build_printf(bld->gallivm, "lod = %f\n", lod);
703 lod = lp_build_add(bld, lod,
706 lp_build_ifloor_fract(bld, lod, out_lod_ipart, &lod_fpart);
728 * Combined log2 and brilinear lod computation.
811 * \param lod_bias optional float vector with the shader lod bia
843 LLVMValueRef lod; local
    [all...]
lp_bld_sample.h 115 LLVMValueRef lod; member in struct:lp_sampler_params
303 /** Obtain texture min lod (returns float) */
310 /** Obtain texture max lod (returns float) */
317 /** Obtain texture lod bias (returns float) */
374 /** number of lod values (valid are 1, length/4, length) */
430 /** Float lod type */
434 /** Int lod type */
596 LLVMValueRef lod,
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/
nv50_ir_lowering_nv50.cpp 780 const int lod = i->tex.target.isShadow() ? (arg + 1) : arg; local
822 // dref comes before bias/lod
825 i->swapSources(dref, lod);
880 // Bias must be equal for all threads of a quad or lod calculation will fail.
953 // LOD must be equal for all threads of a quad.
954 // Unlike with TXB, here we can just diverge since there's no LOD calculation
960 Value *lod = i->getSrc(i->tex.target.getArgCount()); local
961 if (lod->isUniform())
976 bld.mkQuadop(qop, pred, l, lod, lod)->flagsDef = 0
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/
vc4_program.c 416 struct qreg s, t, r, lod, compare; local
437 lod = ntq_get_src(c, instr->src[i].src, 0);
441 lod = ntq_get_src(c, instr->src[i].src, 0);
459 lod = qir_uniform_ui(c, 0);
463 lod = qir_uniform(c, QUNIFORM_TEXTURE_FIRST_LEVEL, unit);
510 tmu = qir_MOV_dest(c, qir_reg(QFILE_TEX_B, 0), lod);

Completed in 22 milliseconds

1 2 3