struct tgsi_exec_machine *mach,
struct tgsi_token *tokens,
GLuint numSamplers,
- const struct tgsi_sampler_state *samplers)
+ const struct tgsi_sampler *samplers)
{
GLuint i, k;
struct tgsi_parse_context parse;
*/
static void
fetch_texel_1d( GLcontext *ctx,
- const struct tgsi_sampler_state *sampler,
+ const struct tgsi_sampler *sampler,
const union tgsi_exec_channel *s,
GLuint unit,
union tgsi_exec_channel *r,
*/
static void
fetch_texel_2d( GLcontext *ctx,
- const struct tgsi_sampler_state *sampler,
+ const struct tgsi_sampler *sampler,
const union tgsi_exec_channel *s,
const union tgsi_exec_channel *t,
GLuint unit,
*/
static void
fetch_texel_3d( GLcontext *ctx,
- const struct tgsi_sampler_state *sampler,
+ const struct tgsi_sampler *sampler,
const union tgsi_exec_channel *s,
const union tgsi_exec_channel *t,
const union tgsi_exec_channel *p,
union tgsi_exec_channel xyzw[4];
};
-struct tgsi_sampler_state
+struct tgsi_sampler
{
const struct pipe_sampler_state *state;
- const struct pipe_mipmap_tree *texture;
- void (*get_sample)(const struct tgsi_sampler_state *sampler,
+ struct pipe_mipmap_tree *texture;
+ void (*get_sample)(struct tgsi_sampler *sampler,
const GLfloat strq[4], GLfloat rgba[4]);
-
-#if 0
- GLboolean NeedLambda;
- GLboolean NeedLodBias; /* if NeedLambda */
- GLboolean NeedLambdaClamp; /* if NeedLambda */
- GLfloat LodBias; /* if NeedLodBias */
- GLfloat MinLod; /* if NeedLambdaClamp */
- GLfloat MaxLod; /* if NeedLambdaClamp */
- GLfloat ImageWidth;
- GLfloat ImageHeight;
- GLfloat ImageDepth;
-#endif
+ void *pipe; /*XXX temporary*/
};
struct tgsi_exec_labels
struct tgsi_exec_vector *Temps;
struct tgsi_exec_vector *Addrs;
- const struct tgsi_sampler_state *Samplers;
+ struct tgsi_sampler *Samplers;
GLfloat Imms[256][4];
GLuint ImmLimit;
struct tgsi_exec_machine *mach,
struct tgsi_token *tokens,
GLuint numSamplers,
- const struct tgsi_sampler_state *samplers);
+ const struct tgsi_sampler *samplers);
void
tgsi_exec_prepare(