From 3baefe663bb15b4fd60921155de38c12ec2758c4 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 22 Aug 2003 23:28:03 +0000 Subject: Added support for GL_IBM_multimode_draw_arrays. Added non-static entrypoints and the name string for GL_SUN_multi_draw_arrays (identical to GL_EXT_multi_draw_arrays). Made add_newer_entrypoints (in src/mesa/main/context.c) table driven. This reduced the size of context.o by about 3KB. --- src/mesa/sparc/glapi_sparc.S | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'src/mesa/sparc') diff --git a/src/mesa/sparc/glapi_sparc.S b/src/mesa/sparc/glapi_sparc.S index b44ab68c3b7..90d2b78f1cf 100644 --- a/src/mesa/sparc/glapi_sparc.S +++ b/src/mesa/sparc/glapi_sparc.S @@ -18791,6 +18791,48 @@ glGetQueryObjectuivARB: sethi %hi(0x00000000), %g1 ld [%g1 + %lo(0x00000000)], %g1 ld [%g1 + (4 * _gloffset_GetQueryObjectuivARB)], %g3 +#endif + jmpl %g3, %g0 + nop + +.globl glMultiModeDrawArraysIBM +.type glMultiModeDrawArraysIBM,#function +glMultiModeDrawArraysIBM: +#ifdef __sparc_v9__ + sethi %hi(0x00000000), %g2 + sethi %hi(0x00000000), %g1 + or %g2, %lo(0x00000000), %g2 + or %g1, %lo(0x00000000), %g1 + sllx %g2, 32, %g2 + ldx [%g1 + %g2], %g1 + sethi %hi(8 * _gloffset_MultiModeDrawArraysIBM), %g2 + or %g2, %lo(8 * _gloffset_MultiModeDrawArraysIBM), %g2 + ldx [%g1 + %g2], %g3 +#else + sethi %hi(0x00000000), %g1 + ld [%g1 + %lo(0x00000000)], %g1 + ld [%g1 + (4 * _gloffset_MultiModeDrawArraysIBM)], %g3 +#endif + jmpl %g3, %g0 + nop + +.globl glMultiModeDrawElementsIBM +.type glMultiModeDrawElementsIBM,#function +glMultiModeDrawElementsIBM: +#ifdef __sparc_v9__ + sethi %hi(0x00000000), %g2 + sethi %hi(0x00000000), %g1 + or %g2, %lo(0x00000000), %g2 + or %g1, %lo(0x00000000), %g1 + sllx %g2, 32, %g2 + ldx [%g1 + %g2], %g1 + sethi %hi(8 * _gloffset_MultiModeDrawElementsIBM), %g2 + or %g2, %lo(8 * _gloffset_MultiModeDrawElementsIBM), %g2 + ldx [%g1 + %g2], %g3 +#else + sethi %hi(0x00000000), %g1 + ld [%g1 + %lo(0x00000000)], %g1 + ld [%g1 + (4 * _gloffset_MultiModeDrawElementsIBM)], %g3 #endif jmpl %g3, %g0 nop -- cgit v1.2.3