| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/softpipe/ |
| H A D | sp_tex_sample.c | 491 float derivs[3][2][TGSI_QUAD_SIZE]) 493 memset(derivs, 0, 6 * TGSI_QUAD_SIZE * sizeof(float)); 494 derivs[0][0][0] = s[QUAD_BOTTOM_RIGHT] - s[QUAD_BOTTOM_LEFT]; 495 derivs[0][1][0] = s[QUAD_TOP_LEFT] - s[QUAD_BOTTOM_LEFT]; 500 const float derivs[3][2][TGSI_QUAD_SIZE], 504 const float dsdx = fabsf(derivs[0][0][quad]); 505 const float dsdy = fabsf(derivs[0][1][quad]); 521 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:compute_lambda_1d 522 compute_gradient_1d(s, t, p, derivs); 523 return compute_lambda_1d_explicit_gradients(sview, derivs, 488 compute_gradient_1d(const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE]) argument 499 compute_lambda_1d_explicit_gradients(const struct sp_sampler_view * sview,const float derivs[3][2][TGSI_QUAD_SIZE],uint quad) argument 528 compute_gradient_2d(const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE]) argument 541 compute_lambda_2d_explicit_gradients(const struct sp_sampler_view * sview,const float derivs[3][2][TGSI_QUAD_SIZE],uint quad) argument 563 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:compute_lambda_2d 570 compute_gradient_3d(const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE]) argument 585 compute_lambda_3d_explicit_gradients(const struct sp_sampler_view * sview,const float derivs[3][2][TGSI_QUAD_SIZE],uint quad) argument 611 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:compute_lambda_3d 618 compute_lambda_cube_explicit_gradients(const struct sp_sampler_view * sview,const float derivs[3][2][TGSI_QUAD_SIZE],uint quad) argument 643 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:compute_lambda_cube 1956 compute_lambda_lod_unclamped(const struct sp_sampler_view * sp_sview,const struct sp_sampler * sp_samp,const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],const float derivs[3][2][TGSI_QUAD_SIZE],const float lod_in[TGSI_QUAD_SIZE],enum tgsi_sampler_control control,float lod[TGSI_QUAD_SIZE]) argument 2006 compute_lambda_lod(const struct sp_sampler_view * sp_sview,const struct sp_sampler * sp_samp,const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE],const float lod_in[TGSI_QUAD_SIZE],enum tgsi_sampler_control control,float lod[TGSI_QUAD_SIZE]) argument 3684 sp_tgsi_get_samples(struct tgsi_sampler * tgsi_sampler,const unsigned sview_index,const unsigned sampler_index,const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],const float c0[TGSI_QUAD_SIZE],const float lod_in[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE],const int8_t offset[3],enum tgsi_sampler_control control,float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) argument [all...] |
| H A D | sp_tex_sample.h | 57 const float derivs[3][2][TGSI_QUAD_SIZE],
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/softpipe/ |
| H A D | sp_tex_sample.c | 505 float derivs[3][2][TGSI_QUAD_SIZE]) 507 memset(derivs, 0, 6 * TGSI_QUAD_SIZE * sizeof(float)); 508 derivs[0][0][0] = s[QUAD_BOTTOM_RIGHT] - s[QUAD_BOTTOM_LEFT]; 509 derivs[0][1][0] = s[QUAD_TOP_LEFT] - s[QUAD_BOTTOM_LEFT]; 514 const float derivs[3][2][TGSI_QUAD_SIZE], 518 const float dsdx = fabsf(derivs[0][0][quad]); 519 const float dsdy = fabsf(derivs[0][1][quad]); 535 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:compute_lambda_1d 536 compute_gradient_1d(s, t, p, derivs); 537 return compute_lambda_1d_explicit_gradients(sview, derivs, 502 compute_gradient_1d(const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE]) argument 513 compute_lambda_1d_explicit_gradients(const struct sp_sampler_view * sview,const float derivs[3][2][TGSI_QUAD_SIZE],uint quad) argument 542 compute_gradient_2d(const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE]) argument 555 compute_lambda_2d_explicit_gradients(const struct sp_sampler_view * sview,const float derivs[3][2][TGSI_QUAD_SIZE],uint quad) argument 577 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:compute_lambda_2d 584 compute_gradient_3d(const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE]) argument 599 compute_lambda_3d_explicit_gradients(const struct sp_sampler_view * sview,const float derivs[3][2][TGSI_QUAD_SIZE],uint quad) argument 625 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:compute_lambda_3d 632 compute_lambda_cube_explicit_gradients(const struct sp_sampler_view * sview,const float derivs[3][2][TGSI_QUAD_SIZE],uint quad) argument 657 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:compute_lambda_cube 1970 compute_lambda_lod_unclamped(const struct sp_sampler_view * sp_sview,const struct sp_sampler * sp_samp,const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],const float derivs[3][2][TGSI_QUAD_SIZE],const float lod_in[TGSI_QUAD_SIZE],enum tgsi_sampler_control control,float lod[TGSI_QUAD_SIZE]) argument 2020 compute_lambda_lod(const struct sp_sampler_view * sp_sview,const struct sp_sampler * sp_samp,const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE],const float lod_in[TGSI_QUAD_SIZE],enum tgsi_sampler_control control,float lod[TGSI_QUAD_SIZE]) argument 3700 sp_tgsi_get_samples(struct tgsi_sampler * tgsi_sampler,const unsigned sview_index,const unsigned sampler_index,const float s[TGSI_QUAD_SIZE],const float t[TGSI_QUAD_SIZE],const float p[TGSI_QUAD_SIZE],const float c0[TGSI_QUAD_SIZE],const float lod_in[TGSI_QUAD_SIZE],float derivs[3][2][TGSI_QUAD_SIZE],const int8_t offset[3],enum tgsi_sampler_control control,float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) argument [all...] |
| H A D | sp_tex_sample.h | 57 const float derivs[3][2][TGSI_QUAD_SIZE],
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/gallivm/ |
| H A D | lp_bld_sample_soa.c | 2044 const struct lp_derivatives *derivs, /* optional */ 2076 lp_build_cube_lookup(bld, coords, derivs, &cube_rho, &cube_derivs, need_derivs); 2077 derivs = &cube_derivs; 2127 derivs, lod_bias, explicit_lod, 2733 * \param derivs partial derivatives of (s,t,r,q) with respect to x and y 2748 const struct lp_derivatives *derivs, /* optional */ 2787 assert(derivs == NULL); 2792 assert(derivs == NULL); 2795 assert(derivs); 2799 assert(derivs 2039 lp_build_sample_common(struct lp_build_sample_context * bld,boolean is_lodq,unsigned texture_index,unsigned sampler_index,LLVMValueRef * coords,const struct lp_derivatives * derivs,LLVMValueRef lod_bias,LLVMValueRef explicit_lod,LLVMValueRef * lod_pos_or_zero,LLVMValueRef * lod,LLVMValueRef * lod_fpart,LLVMValueRef * ilevel0,LLVMValueRef * ilevel1) argument 2736 lp_build_sample_soa_code(struct gallivm_state * gallivm,const struct lp_static_texture_state * static_texture_state,const struct lp_static_sampler_state * static_sampler_state,struct lp_sampler_dynamic_state * dynamic_state,struct lp_type type,unsigned sample_key,unsigned texture_index,unsigned sampler_index,LLVMValueRef context_ptr,LLVMValueRef thread_data_ptr,const LLVMValueRef * coords,const LLVMValueRef * offsets,const struct lp_derivatives * derivs,LLVMValueRef lod,LLVMValueRef texel_out[4]) argument 3425 struct lp_derivatives derivs; local in function:lp_build_sample_gen_func 3543 const struct lp_derivatives *derivs = params->derivs; local in function:lp_build_sample_soa_func [all...] |
| H A D | lp_bld_sample.h | 110 const struct lp_derivatives *derivs; member in struct:lp_sampler_params 502 const struct lp_derivatives *derivs,
|
| H A D | lp_bld_tgsi_aos.c | 311 struct lp_derivatives derivs = { {NULL}, {NULL} }; local in function:emit_tex 324 derivs.ddx[0] = lp_build_emit_fetch( &bld->bld_base, inst, 1 , LP_CHAN_ALL); 325 derivs.ddy[0] = lp_build_emit_fetch( &bld->bld_base, inst, 2 , LP_CHAN_ALL); 334 coords, derivs, 347 struct lp_derivatives derivs = { {NULL}, {NULL} }; local in function:emit_sample 365 coords, derivs,
|
| H A D | lp_bld_sample.c | 204 * \param derivs partial derivatives of (s, t, r, q) with respect to X and Y 215 const struct lp_derivatives *derivs) 245 * rho calcs are always per quad except for explicit derivs (excluding 277 else if (derivs) { 291 ddx[i] = lp_build_mul(coord_bld, floatdim, derivs->ddx[i]); 292 ddy[i] = lp_build_mul(coord_bld, floatdim, derivs->ddy[i]); 298 tmpx = lp_build_abs(coord_bld, derivs->ddx[i]); 299 tmpy = lp_build_abs(coord_bld, derivs->ddy[i]); 685 * \param derivs partial derivatives of (s, t, r, q) with respect to X and Y 704 const struct lp_derivatives *derivs, 209 lp_build_rho(struct lp_build_sample_context * bld,unsigned texture_unit,LLVMValueRef s,LLVMValueRef t,LLVMValueRef r,LLVMValueRef cube_rho,const struct lp_derivatives * derivs) argument 696 lp_build_lod_selector(struct lp_build_sample_context * bld,boolean is_lodq,unsigned texture_unit,unsigned sampler_unit,LLVMValueRef s,LLVMValueRef t,LLVMValueRef r,LLVMValueRef cube_rho,const struct lp_derivatives * derivs,LLVMValueRef lod_bias,LLVMValueRef explicit_lod,unsigned mip_filter,LLVMValueRef * out_lod,LLVMValueRef * out_lod_ipart,LLVMValueRef * out_lod_fpart,LLVMValueRef * out_lod_positive) argument [all...] |
| H A D | lp_bld_tgsi.h | 209 const struct lp_derivatives derivs,
|
| H A D | lp_bld_tgsi_soa.c | 2093 struct lp_derivatives derivs; local in function:emit_tex 2240 derivs.ddx[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 1, dim); 2241 derivs.ddy[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 2, dim); 2243 params.derivs = &derivs; 2300 struct lp_derivatives derivs; local in function:emit_sample 2409 derivs.ddx[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 3, dim); 2410 derivs.ddy[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 4, dim); 2412 params.derivs = &derivs; [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/ |
| H A D | lp_bld_tgsi_aos.c | 311 struct lp_derivatives derivs = { {NULL}, {NULL} }; local in function:emit_tex 324 derivs.ddx[0] = lp_build_emit_fetch( &bld->bld_base, inst, 1 , LP_CHAN_ALL); 325 derivs.ddy[0] = lp_build_emit_fetch( &bld->bld_base, inst, 2 , LP_CHAN_ALL); 334 coords, derivs, 347 struct lp_derivatives derivs = { {NULL}, {NULL} }; local in function:emit_sample 365 coords, derivs,
|
| H A D | lp_bld_sample_soa.c | 2503 const struct lp_derivatives *derivs, /* optional */ 2536 lp_build_cube_lookup(bld, coords, derivs, &cube_rho, &cube_derivs, need_derivs); 2537 derivs = &cube_derivs; 2595 derivs, lod_bias, explicit_lod, 3259 * \param derivs partial derivatives of (s,t,r,q) with respect to x and y 3274 const struct lp_derivatives *derivs, /* optional */ 3316 assert(derivs == NULL); 3321 assert(derivs == NULL); 3324 assert(derivs); 3328 assert(derivs 2498 lp_build_sample_common(struct lp_build_sample_context * bld,boolean is_lodq,unsigned texture_index,unsigned sampler_index,LLVMValueRef * coords,const struct lp_derivatives * derivs,LLVMValueRef lod_bias,LLVMValueRef explicit_lod,LLVMValueRef * lod_pos_or_zero,LLVMValueRef * lod,LLVMValueRef * lod_fpart,LLVMValueRef * ilevel0,LLVMValueRef * ilevel1) argument 3262 lp_build_sample_soa_code(struct gallivm_state * gallivm,const struct lp_static_texture_state * static_texture_state,const struct lp_static_sampler_state * static_sampler_state,struct lp_sampler_dynamic_state * dynamic_state,struct lp_type type,unsigned sample_key,unsigned texture_index,unsigned sampler_index,LLVMValueRef context_ptr,LLVMValueRef thread_data_ptr,const LLVMValueRef * coords,const LLVMValueRef * offsets,const struct lp_derivatives * derivs,LLVMValueRef lod,LLVMValueRef ms_index,LLVMValueRef aniso_filter_table,LLVMValueRef texel_out[4]) argument 3949 struct lp_derivatives derivs; local in function:lp_build_sample_gen_func 4081 const struct lp_derivatives *derivs = params->derivs; local in function:lp_build_sample_soa_func [all...] |
| H A D | lp_bld_sample.h | 117 const struct lp_derivatives *derivs; member in struct:lp_sampler_params 583 const struct lp_derivatives *derivs,
|
| H A D | lp_bld_sample.c | 329 * \param derivs partial derivatives of (s, t, r, q) with respect to X and Y 340 const struct lp_derivatives *derivs) 370 * rho calcs are always per quad except for explicit derivs (excluding 402 else if (derivs) { 416 ddx[i] = lp_build_mul(coord_bld, floatdim, derivs->ddx[i]); 417 ddy[i] = lp_build_mul(coord_bld, floatdim, derivs->ddy[i]); 423 tmpx = lp_build_abs(coord_bld, derivs->ddx[i]); 424 tmpy = lp_build_abs(coord_bld, derivs->ddy[i]); 810 * \param derivs partial derivatives of (s, t, r, q) with respect to X and Y 829 const struct lp_derivatives *derivs, 334 lp_build_rho(struct lp_build_sample_context * bld,unsigned texture_unit,LLVMValueRef s,LLVMValueRef t,LLVMValueRef r,LLVMValueRef cube_rho,const struct lp_derivatives * derivs) argument 821 lp_build_lod_selector(struct lp_build_sample_context * bld,boolean is_lodq,unsigned texture_unit,unsigned sampler_unit,LLVMValueRef s,LLVMValueRef t,LLVMValueRef r,LLVMValueRef cube_rho,const struct lp_derivatives * derivs,LLVMValueRef lod_bias,LLVMValueRef explicit_lod,unsigned mip_filter,LLVMValueRef max_aniso,LLVMValueRef * out_lod,LLVMValueRef * out_lod_ipart,LLVMValueRef * out_lod_fpart,LLVMValueRef * out_lod_positive) argument [all...] |
| H A D | lp_bld_nir.c | 1996 struct lp_derivatives derivs; local in function:visit_tex 2065 derivs.ddx[0] = deriv_val; 2068 derivs.ddx[chan] = LLVMBuildExtractValue(builder, deriv_val, 2071 derivs.ddx[chan] = cast_type(bld_base, derivs.ddx[chan], nir_type_float, 32); 2080 derivs.ddy[0] = deriv_val; 2083 derivs.ddy[chan] = LLVMBuildExtractValue(builder, deriv_val, 2086 derivs.ddy[chan] = cast_type(bld_base, derivs.ddy[chan], nir_type_float, 32); 2157 params.derivs [all...] |
| H A D | lp_bld_tgsi.h | 229 const struct lp_derivatives derivs,
|
| H A D | lp_bld_tgsi_soa.c | 2073 struct lp_derivatives derivs; local in function:emit_tex 2226 derivs.ddx[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 1, dim); 2227 derivs.ddy[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 2, dim); 2229 params.derivs = &derivs; 2286 struct lp_derivatives derivs; local in function:emit_sample 2395 derivs.ddx[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 3, dim); 2396 derivs.ddy[dim] = lp_build_emit_fetch(&bld->bld_base, inst, 4, dim); 2398 params.derivs = &derivs; [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/tgsi/ |
| H A D | tgsi_exec.c | 2168 float derivs[3][2][TGSI_QUAD_SIZE], 2179 /* FIXME: handle explicit derivs, offsets */ 2181 s->f, t->f, p->f, c0->f, c1->f, derivs, offset, control, rgba); 2236 float derivs[2][TGSI_QUAD_SIZE]) 2240 derivs[0][0] = d.f[0]; 2241 derivs[0][1] = d.f[1]; 2242 derivs[0][2] = d.f[2]; 2243 derivs[0][3] = d.f[3]; 2245 derivs[1][0] = d.f[0]; 2246 derivs[ 2160 fetch_texel(struct tgsi_sampler * sampler,const unsigned sview_idx,const unsigned sampler_idx,const union tgsi_exec_channel * s,const union tgsi_exec_channel * t,const union tgsi_exec_channel * p,const union tgsi_exec_channel * c0,const union tgsi_exec_channel * c1,float derivs[3][2][TGSI_QUAD_SIZE],const int8_t offset[3],enum tgsi_sampler_control control,union tgsi_exec_channel * r,union tgsi_exec_channel * g,union tgsi_exec_channel * b,union tgsi_exec_channel * a) argument 2232 fetch_assign_deriv_channel(struct tgsi_exec_machine * mach,const struct tgsi_full_instruction * inst,unsigned regdsrcx,unsigned chan,float derivs[2][TGSI_QUAD_SIZE]) argument 2482 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:exec_txd 2842 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:exec_sample_d [all...] |
| H A D | tgsi_exec.h | 196 * derivs - explicit derivatives. 208 float derivs[3][2][TGSI_QUAD_SIZE],
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/ |
| H A D | tgsi_exec.c | 1969 float derivs[3][2][TGSI_QUAD_SIZE], 1980 /* FIXME: handle explicit derivs, offsets */ 1982 s->f, t->f, p->f, c0->f, c1->f, derivs, offset, control, rgba); 2037 float derivs[2][TGSI_QUAD_SIZE]) 2041 derivs[0][0] = d.f[0]; 2042 derivs[0][1] = d.f[1]; 2043 derivs[0][2] = d.f[2]; 2044 derivs[0][3] = d.f[3]; 2046 derivs[1][0] = d.f[0]; 2047 derivs[ 1961 fetch_texel(struct tgsi_sampler * sampler,const unsigned sview_idx,const unsigned sampler_idx,const union tgsi_exec_channel * s,const union tgsi_exec_channel * t,const union tgsi_exec_channel * p,const union tgsi_exec_channel * c0,const union tgsi_exec_channel * c1,float derivs[3][2][TGSI_QUAD_SIZE],const int8_t offset[3],enum tgsi_sampler_control control,union tgsi_exec_channel * r,union tgsi_exec_channel * g,union tgsi_exec_channel * b,union tgsi_exec_channel * a) argument 2033 fetch_assign_deriv_channel(struct tgsi_exec_machine * mach,const struct tgsi_full_instruction * inst,unsigned regdsrcx,unsigned chan,float derivs[2][TGSI_QUAD_SIZE]) argument 2279 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:exec_txd 2638 float derivs[3][2][TGSI_QUAD_SIZE]; local in function:exec_sample_d [all...] |
| H A D | tgsi_exec.h | 178 * derivs - explicit derivatives. 190 float derivs[3][2][TGSI_QUAD_SIZE],
|
| /xsrc/external/mit/MesaLib/dist/docs/relnotes/ |
| H A D | 17.1.7.rst | 51 - cherry-ignore: add "radeon/ac: use ds_swizzle for derivs on si/cik."
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/ |
| H A D | lp_state_fs_linear_llvm.c | 98 const struct lp_derivatives derivs, 93 emit_fetch_texel_linear(const struct lp_build_sampler_aos * base,struct lp_build_context * bld,unsigned target,unsigned unit,LLVMValueRef coords,const struct lp_derivatives derivs,enum lp_build_tex_modifier modifier) argument
|
| /xsrc/external/mit/MesaLib.old/dist/src/amd/common/ |
| H A D | ac_llvm_build.h | 523 LLVMValueRef derivs[6]; member in struct:ac_image_args
|
| /xsrc/external/mit/MesaLib/dist/src/amd/llvm/ |
| H A D | ac_llvm_build.c | 888 LLVMValueRef derivs[4]; local in function:ac_prepare_cube_coords 922 derivs[axis * 2 + i] = 927 memcpy(derivs_arg, derivs, sizeof(derivs)); 2104 assert((a->bias ? 1 : 0) + (a->lod ? 1 : 0) + (a->level_zero ? 1 : 0) + (a->derivs[0] ? 1 : 0) <= 2119 assert(!a->derivs[0] || 2120 ((!a->g16 || ac_get_elem_bits(ctx, LLVMTypeOf(a->derivs[0])) == 16) && 2121 (a->g16 || ac_get_elem_bits(ctx, LLVMTypeOf(a->derivs[0])) == 32))); 2190 if (a->derivs[0]) { 2193 args[num_args++] = ac_to_float(ctx, a->derivs[ [all...] |