diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2005-10-25 20:37:01 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2005-10-25 20:37:01 +0000 |
commit | f1113fa99d8767e58d223b5bbdd7e19e9e89613f (patch) | |
tree | 236d459dc9744b9924aac281d77170ef7f827ca7 /src/mesa/drivers/dri/sis/sis_state.c | |
parent | 7e4cc1c29fc1fa32ba6bad4f827e357b9aa79f3a (diff) |
Initial add of some (disabled) SiS 6326 drawing code integrated from Alan Cox's
last drop I saw, which was in turn based on a code drop of mine. Texturing,
culling, and several extensions are unimplemented, and some features could
probably be improved. It's untested, but there don't appear to be regressions on
the 300-series code, so I'd like to get these bits in now so that it can be
worked on as not a huge diff.
Diffstat (limited to 'src/mesa/drivers/dri/sis/sis_state.c')
-rw-r--r-- | src/mesa/drivers/dri/sis/sis_state.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/sis/sis_state.c b/src/mesa/drivers/dri/sis/sis_state.c index 195a624b40..f41fb3da04 100644 --- a/src/mesa/drivers/dri/sis/sis_state.c +++ b/src/mesa/drivers/dri/sis/sis_state.c @@ -290,6 +290,12 @@ sisUpdateClipping( GLcontext *ctx ) GLint x1, y1, x2, y2; + if (smesa->is6326) { + /* XXX: 6326 has its own clipping for now. Should be fixed */ + sis6326UpdateClipping(ctx); + return; + } + x1 = 0; y1 = 0; x2 = smesa->width - 1; @@ -824,7 +830,7 @@ void sisDDInitState( sisContextPtr smesa ) */ void sisDDInitStateFuncs( GLcontext *ctx ) { - ctx->Driver.UpdateState = sisDDInvalidateState; + ctx->Driver.UpdateState = sisDDInvalidateState; ctx->Driver.Clear = sisDDClear; ctx->Driver.ClearColor = sisDDClearColor; |