- int icoord0[4],
- int icoord1[4],
- float w[4]);
-
-typedef float (*compute_lambda_func)(const struct sp_sampler_varient *sampler,
- const float s[QUAD_SIZE],
- const float t[QUAD_SIZE],
- const float p[QUAD_SIZE]);
-
-typedef void (*filter_func)(struct tgsi_sampler *tgsi_sampler,
- const float s[QUAD_SIZE],
- const float t[QUAD_SIZE],
- const float p[QUAD_SIZE],
- const float c0[QUAD_SIZE],
+ int *icoord0,
+ int *icoord1,
+ float *w);
+
+typedef float (*compute_lambda_func)(const struct sp_sampler_view *sp_sview,
+ const float s[TGSI_QUAD_SIZE],
+ const float t[TGSI_QUAD_SIZE],
+ const float p[TGSI_QUAD_SIZE]);
+
+typedef void (*img_filter_func)(struct sp_sampler_view *sp_sview,
+ struct sp_sampler *sp_samp,
+ float s,
+ float t,
+ float p,
+ unsigned level,
+ unsigned face_id,
+ float *rgba);
+
+typedef void (*mip_filter_func)(struct sp_sampler_view *sp_sview,
+ struct sp_sampler *sp_samp,
+ img_filter_func min_filter,
+ img_filter_func mag_filter,
+ 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[TGSI_QUAD_SIZE],
+ enum tgsi_sampler_control control,
+ float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
+
+
+typedef void (*filter_func)(struct sp_sampler_view *sp_sview,
+ 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 c0[TGSI_QUAD_SIZE],
+ const float lod[TGSI_QUAD_SIZE],