Home
last modified time | relevance | path

Searched refs:derivs (Results 1 – 19 of 19) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_tex_sample.c505 float derivs[3][2][TGSI_QUAD_SIZE]) in compute_gradient_1d()
507 memset(derivs, 0, 6 * TGSI_QUAD_SIZE * sizeof(float)); in compute_gradient_1d()
508 derivs[0][0][0] = s[QUAD_BOTTOM_RIGHT] - s[QUAD_BOTTOM_LEFT]; in compute_gradient_1d()
509 derivs[0][1][0] = s[QUAD_TOP_LEFT] - s[QUAD_BOTTOM_LEFT]; in compute_gradient_1d()
514 const float derivs[3][2][TGSI_QUAD_SIZE], in compute_lambda_1d_explicit_gradients()
518 const float dsdx = fabsf(derivs[0][0][quad]); in compute_lambda_1d_explicit_gradients()
519 const float dsdy = fabsf(derivs[0][1][quad]); in compute_lambda_1d_explicit_gradients()
535 float derivs[3][2][TGSI_QUAD_SIZE]; in compute_lambda_1d() local
536 compute_gradient_1d(s, t, p, derivs); in compute_lambda_1d()
537 return compute_lambda_1d_explicit_gradients(sview, derivs, 0); in compute_lambda_1d()
[all …]
Dsp_tex_sample.h57 const float derivs[3][2][TGSI_QUAD_SIZE],
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir_aos.c284 static const struct lp_derivatives derivs = { 0 }; in emit_tex() local
291 params->derivs ? params->derivs[0] : derivs, in emit_tex()
Dlp_bld_tgsi_aos.c312 struct lp_derivatives derivs = { {NULL}, {NULL} }; in emit_tex() local
325 derivs.ddx[0] = lp_build_emit_fetch( &bld->bld_base, inst, 1 , LP_CHAN_ALL); in emit_tex()
326 derivs.ddy[0] = lp_build_emit_fetch( &bld->bld_base, inst, 2 , LP_CHAN_ALL); in emit_tex()
335 coords, derivs, in emit_tex()
348 struct lp_derivatives derivs = { {NULL}, {NULL} }; in emit_sample() local
366 coords, derivs, in emit_sample()
Dlp_bld_sample_soa.c2528 const struct lp_derivatives *derivs, /* optional */ in lp_build_sample_common() argument
2561 lp_build_cube_lookup(bld, coords, derivs, &cube_rho, &cube_derivs, need_derivs); in lp_build_sample_common()
2562 derivs = &cube_derivs; in lp_build_sample_common()
2621 derivs, lod_bias, explicit_lod, in lp_build_sample_common()
3303 const struct lp_derivatives *derivs, /* optional */ in lp_build_sample_soa_code() argument
3346 assert(derivs == NULL); in lp_build_sample_soa_code()
3351 assert(derivs == NULL); in lp_build_sample_soa_code()
3354 assert(derivs); in lp_build_sample_soa_code()
3358 assert(derivs == NULL); in lp_build_sample_soa_code()
3495 (explicit_lod || lod_bias || derivs)) { in lp_build_sample_soa_code()
[all …]
Dlp_bld_sample.c344 const struct lp_derivatives *derivs) in lp_build_rho() argument
406 else if (derivs) { in lp_build_rho()
420 ddx[i] = lp_build_mul(coord_bld, floatdim, derivs->ddx[i]); in lp_build_rho()
421 ddy[i] = lp_build_mul(coord_bld, floatdim, derivs->ddy[i]); in lp_build_rho()
427 tmpx = lp_build_abs(coord_bld, derivs->ddx[i]); in lp_build_rho()
428 tmpy = lp_build_abs(coord_bld, derivs->ddy[i]); in lp_build_rho()
837 const struct lp_derivatives *derivs, in lp_build_lod_selector() argument
903 rho = lp_build_rho(bld, texture_unit, s, t, r, cube_rho, derivs); in lp_build_lod_selector()
Dlp_bld_sample.h119 const struct lp_derivatives *derivs; member
591 const struct lp_derivatives *derivs,
Dlp_bld_nir.c2286 struct lp_derivatives derivs; in visit_tex() local
2355 derivs.ddx[0] = deriv_val; in visit_tex()
2358 derivs.ddx[chan] = LLVMBuildExtractValue(builder, deriv_val, in visit_tex()
2361 derivs.ddx[chan] = cast_type(bld_base, derivs.ddx[chan], nir_type_float, 32); in visit_tex()
2370 derivs.ddy[0] = deriv_val; in visit_tex()
2373 derivs.ddy[chan] = LLVMBuildExtractValue(builder, deriv_val, in visit_tex()
2376 derivs.ddy[chan] = cast_type(bld_base, derivs.ddy[chan], nir_type_float, 32); in visit_tex()
2447 params.derivs = &derivs; in visit_tex()
Dlp_bld_tgsi_soa.c2078 struct lp_derivatives derivs; in emit_tex() local
2231 derivs.ddx[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 1, dim); in emit_tex()
2232 derivs.ddy[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 2, dim); in emit_tex()
2234 params.derivs = &derivs; in emit_tex()
2291 struct lp_derivatives derivs; in emit_sample() local
2400 derivs.ddx[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 3, dim); in emit_sample()
2401 derivs.ddy[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 4, dim); in emit_sample()
2403 params.derivs = &derivs; in emit_sample()
2577 params.derivs = NULL; in emit_fetch_texels()
Dlp_bld_tgsi.h227 const struct lp_derivatives derivs,
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_exec.c1908 float derivs[3][2][TGSI_QUAD_SIZE], in fetch_texel()
1921 s->f, t->f, p->f, c0->f, c1->f, derivs, offset, control, rgba); in fetch_texel()
1976 float derivs[2][TGSI_QUAD_SIZE]) in fetch_assign_deriv_channel()
1980 derivs[0][0] = d.f[0]; in fetch_assign_deriv_channel()
1981 derivs[0][1] = d.f[1]; in fetch_assign_deriv_channel()
1982 derivs[0][2] = d.f[2]; in fetch_assign_deriv_channel()
1983 derivs[0][3] = d.f[3]; in fetch_assign_deriv_channel()
1985 derivs[1][0] = d.f[0]; in fetch_assign_deriv_channel()
1986 derivs[1][1] = d.f[1]; in fetch_assign_deriv_channel()
1987 derivs[1][2] = d.f[2]; in fetch_assign_deriv_channel()
[all …]
Dtgsi_exec.h190 float derivs[3][2][TGSI_QUAD_SIZE],
/third_party/mesa3d/docs/relnotes/
D17.1.7.rst51 - cherry-ignore: add "radeon/ac: use ds_swizzle for derivs on si/cik."
/third_party/mesa3d/src/amd/llvm/
Dac_llvm_build.c892 LLVMValueRef derivs[4]; in ac_prepare_cube_coords() local
926 derivs[axis * 2 + i] = in ac_prepare_cube_coords()
931 memcpy(derivs_arg, derivs, sizeof(derivs)); in ac_prepare_cube_coords()
2117 assert((a->bias ? 1 : 0) + (a->lod ? 1 : 0) + (a->level_zero ? 1 : 0) + (a->derivs[0] ? 1 : 0) <= in ac_build_image_opcode()
2132 assert(!a->derivs[0] || in ac_build_image_opcode()
2133 ((!a->g16 || ac_get_elem_bits(ctx, LLVMTypeOf(a->derivs[0])) == 16) && in ac_build_image_opcode()
2134 (a->g16 || ac_get_elem_bits(ctx, LLVMTypeOf(a->derivs[0])) == 32))); in ac_build_image_opcode()
2203 if (a->derivs[0]) { in ac_build_image_opcode()
2206 args[num_args++] = ac_to_float(ctx, a->derivs[i]); in ac_build_image_opcode()
2307 a->bias ? ".b" : lod_suffix ? ".l" : a->derivs[0] ? ".d" : a->level_zero ? ".lz" : "", in ac_build_image_opcode()
Dac_llvm_build.h408 LLVMValueRef derivs[6]; member
Dac_nir_to_llvm.c4832 args.derivs[i] = ac_to_float(&ctx->ac, ac_llvm_extract_elem(&ctx->ac, ddx, i)); in visit_tex()
4833 args.derivs[num_dest_deriv_channels + i] = in visit_tex()
4838 args.derivs[i] = zero; in visit_tex()
4839 args.derivs[num_dest_deriv_channels + i] = zero; in visit_tex()
4849 instr->op == nir_texop_lod, args.coords, args.derivs); in visit_tex()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs_linear_llvm.c95 const struct lp_derivatives derivs, in emit_fetch_texel_linear() argument
/third_party/mesa3d/src/gallium/drivers/i915/ci/
Di915-g33-fails.txt157 shaders@glsl-derivs,Fail
832 spec@glsl-1.10@execution@derivatives@glsl-derivs-abs,Fail
833 spec@glsl-1.10@execution@derivatives@glsl-derivs-abs-sign,Fail
834 spec@glsl-1.10@execution@derivatives@glsl-derivs-sign,Fail
835 spec@glsl-1.10@execution@derivatives@glsl-derivs-swizzle,Fail
836 spec@glsl-1.10@execution@derivatives@glsl-derivs-varyings,Fail
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp9421 std::vector<Temp> derivs; in visit_tex() local
9640 derivs.push_back(derv); in visit_tex()
9848 args.insert(args.end(), derivs.begin(), derivs.end()); in visit_tex()