Lines Matching defs:state
146 struct r300_fragment_program_external_state* state)
148 struct r300_textures_state *texstate = r300->textures_state.state;
151 state->alpha_to_one = r300->alpha_to_one && r300->msaa_enable;
164 if (s->state.compare_mode == PIPE_TEX_COMPARE_R_TO_TEXTURE) {
165 state->unit[i].compare_mode_enabled = 1;
168 state->unit[i].texture_compare_func = s->state.compare_func;
172 if (state->unit[i].compare_mode_enabled) {
173 state->unit[i].texture_swizzle =
180 switch (s->state.wrap_s) {
182 state->unit[i].wrap_mode = RC_WRAP_REPEAT;
186 state->unit[i].wrap_mode = RC_WRAP_MIRRORED_REPEAT;
192 state->unit[i].wrap_mode = RC_WRAP_MIRRORED_CLAMP;
196 state->unit[i].wrap_mode = RC_WRAP_NONE;
200 state->unit[i].clamp_and_scale_before_fetch = TRUE;
214 struct pipe_shader_state state;
227 state.tokens = ureg_finalize(ureg);
230 r300_translate_fragment_shader(r300, shader, state.tokens);
433 compiler.state = shader->compare_state;
565 struct r300_fragment_program_external_state *state)
573 memcpy(&fs->shader->compare_state, state, sizeof(*state));
574 r300_translate_fragment_shader(r300, fs->shader, fs->state.tokens);
579 * with the texture-compare state we need. */
580 if (memcmp(&fs->shader->compare_state, state, sizeof(*state)) != 0) {
584 if (memcmp(&ptr->compare_state, state, sizeof(*state)) == 0) {
600 memcpy(&ptr->compare_state, state, sizeof(*state));
601 r300_translate_fragment_shader(r300, ptr, fs->state.tokens);