summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_context.c
diff options
context:
space:
mode:
authorNicolai Haehnle <prefect_@gmx.net>2004-11-02 13:06:45 +0000
committerNicolai Haehnle <prefect_@gmx.net>2004-11-02 13:06:45 +0000
commit2302cc1a25f7ab55b7e7d6647175308cd64ab7f1 (patch)
tree8ece05fc8a5c48d3f0c4927f081a8a54f2dea4da /src/mesa/drivers/dri/r300/r300_context.c
parentb187341e63f417c191b5d13be6b76cbd63555802 (diff)
No visible changes, but commit the groundwork for further experiments:
- Install custom (though inactive) pipeline - Track depth test and culling state in hardware registers
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.c b/src/mesa/drivers/dri/r300/r300_context.c
index 6e98bd1e72..9831dc60a4 100644
--- a/src/mesa/drivers/dri/r300/r300_context.c
+++ b/src/mesa/drivers/dri/r300/r300_context.c
@@ -100,15 +100,13 @@ static const char *const card_extensions[] = {
NULL
};
-#if 0
-extern const struct tnl_pipeline_stage _r300_render_stage;
-extern const struct tnl_pipeline_stage _r300_tcl_stage;
+extern struct tnl_pipeline_stage _r300_render_stage;
static const struct tnl_pipeline_stage *r300_pipeline[] = {
/* Try and go straight to t&l
*/
- &_r300_tcl_stage,
+// &_r300_tcl_stage,
/* Catch any t&l fallbacks
*/
@@ -136,7 +134,7 @@ static const struct tnl_pipeline_stage *r300_pipeline[] = {
&_tnl_render_stage, /* FALLBACK */
0,
};
-#endif
+
/* Create the device specific rendering context.
*/
@@ -217,13 +215,10 @@ GLboolean r300CreateContext(const __GLcontextModes * glVisual,
_swsetup_CreateContext(ctx);
_ae_create_context(ctx);
-#if 0
/* Install the customized pipeline:
*/
_tnl_destroy_pipeline(ctx);
- _tnl_install_pipeline(ctx, r200_pipeline);
- ctx->Driver.FlushVertices = r200FlushVertices;
-#endif
+ _tnl_install_pipeline(ctx, r300_pipeline);
/* Try and keep materials and vertices separate:
*/
@@ -245,7 +240,6 @@ GLboolean r300CreateContext(const __GLcontextModes * glVisual,
/* plug in a few more device driver functions */
/* XXX these should really go right after _mesa_init_driver_functions() */
r200InitPixelFuncs(ctx);
- r200InitTnlFuncs(ctx);
r200InitSwtcl(ctx);
#endif
TNL_CONTEXT(ctx)->Driver.RunPipeline = _tnl_run_pipeline;