};
-#define G_NEW_VIEWPORT 0x1
-#define G_NEW_SETUP 0x2
-#define G_NEW_FS 0x4
-#define G_NEW_BLEND 0x8
-#define G_NEW_CLIP 0x20
-#define G_NEW_SCISSOR 0x40
-#define G_NEW_STIPPLE 0x80
-#define G_NEW_FRAMEBUFFER 0x100
-#define G_NEW_ALPHA_TEST 0x200
-#define G_NEW_DEPTH_TEST 0x400
-#define G_NEW_SAMPLER 0x800
-#define G_NEW_TEXTURE 0x1000
+#define SP_NEW_VIEWPORT 0x1
+#define SP_NEW_SETUP 0x2
+#define SP_NEW_FS 0x4
+#define SP_NEW_BLEND 0x8
+#define SP_NEW_CLIP 0x10
+#define SP_NEW_SCISSOR 0x20
+#define SP_NEW_STIPPLE 0x40
+#define SP_NEW_FRAMEBUFFER 0x80
+#define SP_NEW_ALPHA_TEST 0x100
+#define SP_NEW_DEPTH_TEST 0x200
+#define SP_NEW_SAMPLER 0x400
+#define SP_NEW_TEXTURE 0x800
struct softpipe_context {
softpipe->blend = *blend;
- softpipe->dirty |= G_NEW_BLEND;
+ softpipe->dirty |= SP_NEW_BLEND;
}
softpipe->blend_color = *blend_color;
- softpipe->dirty |= G_NEW_BLEND;
+ softpipe->dirty |= SP_NEW_BLEND;
}
softpipe->depth_test = *depth;
- softpipe->dirty |= G_NEW_DEPTH_TEST;
+ softpipe->dirty |= SP_NEW_DEPTH_TEST;
}
void
softpipe->alpha_test = *alpha;
- softpipe->dirty |= G_NEW_ALPHA_TEST;
+ softpipe->dirty |= SP_NEW_ALPHA_TEST;
}
struct softpipe_context *softpipe = softpipe_context(pipe);
softpipe->viewport = *viewport; /* struct copy */
- softpipe->dirty |= G_NEW_VIEWPORT;
+ softpipe->dirty |= SP_NEW_VIEWPORT;
/* pass the viewport info to the draw module */
draw_set_viewport_state(softpipe->draw, viewport);
struct softpipe_context *softpipe = softpipe_context(pipe);
memcpy( &softpipe->scissor, scissor, sizeof(*scissor) );
- softpipe->dirty |= G_NEW_SCISSOR;
+ softpipe->dirty |= SP_NEW_SCISSOR;
}
struct softpipe_context *softpipe = softpipe_context(pipe);
memcpy( &softpipe->poly_stipple, stipple, sizeof(*stipple) );
- softpipe->dirty |= G_NEW_STIPPLE;
+ softpipe->dirty |= SP_NEW_STIPPLE;
}
*/
void softpipe_update_derived( struct softpipe_context *softpipe )
{
- if (softpipe->dirty & (G_NEW_SETUP | G_NEW_FS))
+ if (softpipe->dirty & (SP_NEW_SETUP | SP_NEW_FS))
calculate_vertex_layout( softpipe );
- if (softpipe->dirty & (G_NEW_BLEND | G_NEW_DEPTH_TEST | G_NEW_ALPHA_TEST | G_NEW_FS))
+ if (softpipe->dirty & (SP_NEW_BLEND | SP_NEW_DEPTH_TEST | SP_NEW_ALPHA_TEST | SP_NEW_FS))
sp_build_quad_pipeline(softpipe);
softpipe->dirty = 0;
memcpy(&softpipe->fs, fs, sizeof(*fs));
- softpipe->dirty |= G_NEW_FS;
+ softpipe->dirty |= SP_NEW_FS;
}
assert(unit < PIPE_MAX_SAMPLERS);
softpipe->sampler[unit] = *sampler;
- softpipe->dirty |= G_NEW_SAMPLER;
+ softpipe->dirty |= SP_NEW_SAMPLER;
}
assert(unit < PIPE_MAX_SAMPLERS);
softpipe->texture[unit] = texture; /* ptr, not struct */
- softpipe->dirty |= G_NEW_TEXTURE;
+ softpipe->dirty |= SP_NEW_TEXTURE;
}
#if 0
validate_prim_pipe( softpipe );
#endif
- softpipe->dirty |= G_NEW_SETUP;
+ softpipe->dirty |= SP_NEW_SETUP;
}
softpipe->framebuffer = *fb; /* struct copy */
- softpipe->dirty |= G_NEW_FRAMEBUFFER;
+ softpipe->dirty |= SP_NEW_FRAMEBUFFER;
}