diff options
author | Ian Romanick <idr@us.ibm.com> | 2004-01-27 18:52:40 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2004-01-27 18:52:40 +0000 |
commit | c93105eb9e2499efb237fd89dba0cebd48f18375 (patch) | |
tree | e105eeceae3f57be1b583e51957d6f39038fed34 /src/mesa/sparc/glapi_sparc.S | |
parent | dd9e6e7e37fbb8c30c8085ed784539d94110aa3e (diff) |
Added support for EXT_blend_equation_separate / ATI_blend_equation_separate.
The internal driver interface was also changed to use
BlendEquationSeparate instead of BlendEquation.
Diffstat (limited to 'src/mesa/sparc/glapi_sparc.S')
-rw-r--r-- | src/mesa/sparc/glapi_sparc.S | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/mesa/sparc/glapi_sparc.S b/src/mesa/sparc/glapi_sparc.S index f3a2c696be..75567444b7 100644 --- a/src/mesa/sparc/glapi_sparc.S +++ b/src/mesa/sparc/glapi_sparc.S @@ -19235,6 +19235,48 @@ glGetQueryObjectuiv: #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 nop .globl _mesa_sparc_glapi_end |