From c93105eb9e2499efb237fd89dba0cebd48f18375 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 27 Jan 2004 18:52:40 +0000 Subject: Added support for EXT_blend_equation_separate / ATI_blend_equation_separate. The internal driver interface was also changed to use BlendEquationSeparate instead of BlendEquation. --- 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 f3a2c696be5..75567444b78 100644 --- a/src/mesa/sparc/glapi_sparc.S +++ b/src/mesa/sparc/glapi_sparc.S @@ -19232,6 +19232,48 @@ glGetQueryObjectuiv: sethi %hi(0x00000000), %g1 ld [%g1 + %lo(0x00000000)], %g1 ld [%g1 + (4 * _gloffset_GetQueryObjectuivARB)], %g3 +#endif + jmpl %g3, %g0 + nop + +.globl glBlendEquationSeparateEXT +.type glBlendEquationSeparateEXT,#function +glBlendEquationSeparateEXT: +#if defined(__sparc_v9__) && !defined(__linux__) + 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_BlendEquationSeparateEXT), %g2 + or %g2, %lo(8 * _gloffset_BlendEquationSeparateEXT), %g2 + ldx [%g1 + %g2], %g3 +#else + sethi %hi(0x00000000), %g1 + ld [%g1 + %lo(0x00000000)], %g1 + ld [%g1 + (4 * _gloffset_BlendEquationSeparateEXT)], %g3 +#endif + jmpl %g3, %g0 + nop + +.globl glBlendEquationSeparateATI +.type glBlendEquationSeparateATI,#function +glBlendEquationSeparateATI: +#if defined(__sparc_v9__) && !defined(__linux__) + 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_BlendEquationSeparateEXT), %g2 + or %g2, %lo(8 * _gloffset_BlendEquationSeparateEXT), %g2 + ldx [%g1 + %g2], %g3 +#else + sethi %hi(0x00000000), %g1 + ld [%g1 + %lo(0x00000000)], %g1 + ld [%g1 + (4 * _gloffset_BlendEquationSeparateEXT)], %g3 #endif jmpl %g3, %g0 nop -- cgit v1.2.3