diff options
author | Felix Kuehling <fxkuehl@gmx.de> | 2005-01-16 01:28:26 +0000 |
---|---|---|
committer | Felix Kuehling <fxkuehl@gmx.de> | 2005-01-16 01:28:26 +0000 |
commit | ad360a81bdc9076cc09f9241176116efdbba43e4 (patch) | |
tree | d6e5077f995b32803e0840422885d65178ff8d8e /src/mesa/drivers/dri/savage/savage_xmesa.c | |
parent | ca710a0a7f0ae7e637e3e73cc4edac0a81f6fe1c (diff) |
Added a fast path for emitting unclipped primitives directly to a
vertex buffer. ELTS are not supported yet (missing functionality in
the DRM). You need at least Savage DRM version 2.1.3, which fixes a
bug that screwed up triangle fans and strips.
Moved the texture normalization stage to savagerender.c.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savage_xmesa.c')
-rw-r--r-- | src/mesa/drivers/dri/savage/savage_xmesa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c index a1c5142d4f..9a8e090ab5 100644 --- a/src/mesa/drivers/dri/savage/savage_xmesa.c +++ b/src/mesa/drivers/dri/savage/savage_xmesa.c @@ -110,6 +110,7 @@ static const char *const card_extensions[] = }; extern const struct tnl_pipeline_stage _savage_texnorm_stage; +extern const struct tnl_pipeline_stage _savage_render_stage; static const struct tnl_pipeline_stage *savage_pipeline[] = { @@ -120,6 +121,7 @@ static const struct tnl_pipeline_stage *savage_pipeline[] = { &_tnl_texgen_stage, &_tnl_texture_transform_stage, &_savage_texnorm_stage, + &_savage_render_stage, &_tnl_render_stage, 0, }; @@ -426,10 +428,10 @@ savageCreateContext( const __GLcontextModes *mesaVis, imesa->dmaVtxBuf.used = 0; imesa->dmaVtxBuf.flushed = 0; - imesa->clientVtxBuf.total = 16384; + imesa->clientVtxBuf.total = imesa->bufferSize / 4; imesa->clientVtxBuf.used = 0; imesa->clientVtxBuf.flushed = 0; - imesa->clientVtxBuf.buf = (u_int32_t *)malloc(16384*4); + imesa->clientVtxBuf.buf = (u_int32_t *)malloc(imesa->bufferSize); imesa->vtxBuf = &imesa->clientVtxBuf; |