diff options
author | Brian Paul <[email protected]> | 2005-09-04 15:01:33 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-04 15:01:33 +0000 |
commit | eae73dbd916d3109224fdb938120acd1abb6b646 (patch) | |
tree | 2b51387a279767473003ae991188fe0319e5f281 /src/mesa/drivers/dri/tdfx/tdfx_span.c | |
parent | 90cfbd3dd5f30d73a4ed7f96cc740f11c7fb0af9 (diff) |
Use InitPointers helper
Diffstat (limited to 'src/mesa/drivers/dri/tdfx/tdfx_span.c')
-rw-r--r-- | src/mesa/drivers/dri/tdfx/tdfx_span.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_span.c b/src/mesa/drivers/dri/tdfx/tdfx_span.c index 142beb404fc..ce895f82542 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_span.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_span.c @@ -1356,33 +1356,15 @@ tdfxSetSpanFunctions(driRenderbuffer *drb, const GLvisual *vis) { if (drb->Base.InternalFormat == GL_RGBA) { if (vis->redBits == 5 && vis->greenBits == 6 && vis->blueBits == 5) { - drb->Base.GetRow = tdfxReadRGBASpan_RGB565; - drb->Base.GetValues = tdfxReadRGBAPixels_RGB565; - drb->Base.PutRow = tdfxWriteRGBASpan_RGB565; - drb->Base.PutRowRGB = tdfxWriteRGBSpan_RGB565; - drb->Base.PutMonoRow = tdfxWriteMonoRGBASpan_RGB565; - drb->Base.PutValues = tdfxWriteRGBAPixels_RGB565; - drb->Base.PutMonoValues = tdfxWriteMonoRGBAPixels_RGB565; + tdfxInitPointers_RGB565(&drb->Base); } else if (vis->redBits == 8 && vis->greenBits == 8 && vis->blueBits == 8 && vis->alphaBits == 0) { - drb->Base.GetRow = tdfxReadRGBASpan_RGB888; - drb->Base.GetValues = tdfxReadRGBAPixels_RGB888; - drb->Base.PutRow = tdfxWriteRGBASpan_RGB888; - drb->Base.PutRowRGB = tdfxWriteRGBSpan_RGB888; - drb->Base.PutMonoRow = tdfxWriteMonoRGBASpan_RGB888; - drb->Base.PutValues = tdfxWriteRGBAPixels_RGB888; - drb->Base.PutMonoValues = tdfxWriteMonoRGBAPixels_RGB888; + tdfxInitPointers_RGB888(&drb->Base); } else if (vis->redBits == 8 && vis->greenBits == 8 && vis->blueBits == 8 && vis->alphaBits == 8) { - drb->Base.GetRow = tdfxReadRGBASpan_ARGB8888; - drb->Base.GetValues = tdfxReadRGBAPixels_ARGB8888; - drb->Base.PutRow = tdfxWriteRGBASpan_ARGB8888; - drb->Base.PutRowRGB = tdfxWriteRGBSpan_ARGB8888; - drb->Base.PutMonoRow = tdfxWriteMonoRGBASpan_ARGB8888; - drb->Base.PutValues = tdfxWriteRGBAPixels_ARGB8888; - drb->Base.PutMonoValues = tdfxWriteMonoRGBAPixels_ARGB8888; + tdfxInitPointers_ARGB8888(&drb->Base); } else { _mesa_problem(NULL, "problem in tdfxSetSpanFunctions"); |