/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_tex_sample.c | 505 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 …]
|
D | sp_tex_sample.h | 57 const float derivs[3][2][TGSI_QUAD_SIZE],
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_sample_soa.c | 2069 const struct lp_derivatives *derivs, /* optional */ in lp_build_sample_common() argument 2101 lp_build_cube_lookup(bld, coords, derivs, &cube_rho, &cube_derivs, need_derivs); in lp_build_sample_common() 2102 derivs = &cube_derivs; in lp_build_sample_common() 2152 derivs, lod_bias, explicit_lod, in lp_build_sample_common() 2818 const struct lp_derivatives *derivs, /* optional */ in lp_build_sample_soa_code() argument 2859 assert(derivs == NULL); in lp_build_sample_soa_code() 2864 assert(derivs == NULL); in lp_build_sample_soa_code() 2867 assert(derivs); in lp_build_sample_soa_code() 2871 assert(derivs == NULL); in lp_build_sample_soa_code() 3008 (explicit_lod || lod_bias || derivs)) { in lp_build_sample_soa_code() [all …]
|
D | lp_bld_tgsi_aos.c | 311 struct lp_derivatives derivs = { {NULL}, {NULL} }; in emit_tex() local 324 derivs.ddx[0] = lp_build_emit_fetch( &bld->bld_base, inst, 1 , LP_CHAN_ALL); in emit_tex() 325 derivs.ddy[0] = lp_build_emit_fetch( &bld->bld_base, inst, 2 , LP_CHAN_ALL); in emit_tex() 334 coords, derivs, in emit_tex() 347 struct lp_derivatives derivs = { {NULL}, {NULL} }; in emit_sample() local 365 coords, derivs, in emit_sample()
|
D | lp_bld_nir.c | 1835 struct lp_derivatives derivs; in visit_tex() local 1907 derivs.ddx[0] = deriv_val; in visit_tex() 1910 derivs.ddx[chan] = LLVMBuildExtractValue(builder, deriv_val, in visit_tex() 1913 derivs.ddx[chan] = cast_type(bld_base, derivs.ddx[chan], nir_type_float, 32); in visit_tex() 1922 derivs.ddy[0] = deriv_val; in visit_tex() 1925 derivs.ddy[chan] = LLVMBuildExtractValue(builder, deriv_val, in visit_tex() 1928 derivs.ddy[chan] = cast_type(bld_base, derivs.ddy[chan], nir_type_float, 32); in visit_tex() 2006 params.derivs = &derivs; in visit_tex()
|
D | lp_bld_sample.h | 116 const struct lp_derivatives *derivs; member 575 const struct lp_derivatives *derivs,
|
D | lp_bld_sample.c | 250 const struct lp_derivatives *derivs) in lp_build_rho() argument 312 else if (derivs) { in lp_build_rho() 326 ddx[i] = lp_build_mul(coord_bld, floatdim, derivs->ddx[i]); in lp_build_rho() 327 ddy[i] = lp_build_mul(coord_bld, floatdim, derivs->ddy[i]); in lp_build_rho() 333 tmpx = lp_build_abs(coord_bld, derivs->ddx[i]); in lp_build_rho() 334 tmpy = lp_build_abs(coord_bld, derivs->ddy[i]); in lp_build_rho() 739 const struct lp_derivatives *derivs, in lp_build_lod_selector() argument 799 rho = lp_build_rho(bld, texture_unit, s, t, r, cube_rho, derivs); in lp_build_lod_selector()
|
D | lp_bld_tgsi_soa.c | 2073 struct lp_derivatives derivs; in emit_tex() local 2226 derivs.ddx[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 1, dim); in emit_tex() 2227 derivs.ddy[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 2, dim); in emit_tex() 2229 params.derivs = &derivs; in emit_tex() 2286 struct lp_derivatives derivs; in emit_sample() local 2395 derivs.ddx[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 3, dim); in emit_sample() 2396 derivs.ddy[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 4, dim); in emit_sample() 2398 params.derivs = &derivs; in emit_sample() 2572 params.derivs = NULL; in emit_fetch_texels()
|
D | lp_bld_tgsi.h | 225 const struct lp_derivatives derivs,
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_exec.c | 2120 float derivs[3][2][TGSI_QUAD_SIZE], in fetch_texel() 2133 s->f, t->f, p->f, c0->f, c1->f, derivs, offset, control, rgba); in fetch_texel() 2188 float derivs[2][TGSI_QUAD_SIZE]) in fetch_assign_deriv_channel() 2192 derivs[0][0] = d.f[0]; in fetch_assign_deriv_channel() 2193 derivs[0][1] = d.f[1]; in fetch_assign_deriv_channel() 2194 derivs[0][2] = d.f[2]; in fetch_assign_deriv_channel() 2195 derivs[0][3] = d.f[3]; in fetch_assign_deriv_channel() 2197 derivs[1][0] = d.f[0]; in fetch_assign_deriv_channel() 2198 derivs[1][1] = d.f[1]; in fetch_assign_deriv_channel() 2199 derivs[1][2] = d.f[2]; in fetch_assign_deriv_channel() [all …]
|
D | tgsi_exec.h | 208 float derivs[3][2][TGSI_QUAD_SIZE],
|
/external/mesa3d/docs/relnotes/ |
D | 17.1.7.rst | 51 - cherry-ignore: add "radeon/ac: use ds_swizzle for derivs on si/cik."
|
/external/mesa3d/src/amd/llvm/ |
D | ac_llvm_build.c | 839 LLVMValueRef derivs[4]; in ac_prepare_cube_coords() local 873 derivs[axis * 2 + i] = in ac_prepare_cube_coords() 878 memcpy(derivs_arg, derivs, sizeof(derivs)); in ac_prepare_cube_coords() 2094 assert((a->bias ? 1 : 0) + (a->lod ? 1 : 0) + (a->level_zero ? 1 : 0) + (a->derivs[0] ? 1 : 0) <= in ac_build_image_opcode() 2152 if (a->derivs[0]) { in ac_build_image_opcode() 2155 args[num_args++] = ac_to_float(ctx, a->derivs[i]); in ac_build_image_opcode() 2256 a->bias ? ".b" : lod_suffix ? ".l" : a->derivs[0] ? ".d" : a->level_zero ? ".lz" : "", in ac_build_image_opcode()
|
D | ac_llvm_build.h | 409 LLVMValueRef derivs[6]; member
|
D | ac_nir_to_llvm.c | 4230 args.derivs[i] = ac_to_float(&ctx->ac, ac_llvm_extract_elem(&ctx->ac, ddx, i)); in visit_tex() 4231 args.derivs[num_dest_deriv_channels + i] = in visit_tex() 4235 args.derivs[i] = ctx->ac.f32_0; in visit_tex() 4236 args.derivs[num_dest_deriv_channels + i] = ctx->ac.f32_0; in visit_tex() 4246 instr->op == nir_texop_lod, args.coords, args.derivs); in visit_tex()
|
/external/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.cpp | 8662 std::vector<Temp> derivs; in visit_tex() local 8825 derivs = {ddx, zero, ddy, zero}; in visit_tex() 8828 derivs.emplace_back(emit_extract_vector(ctx, ddx, i, v1)); in visit_tex() 8830 derivs.emplace_back(emit_extract_vector(ctx, ddy, i, v1)); in visit_tex() 9088 args.insert(args.end(), derivs.begin(), derivs.end()); in visit_tex()
|