ogl-sample
[Top] [All Lists]

Re: [ogl-sample] .spec file syntax for assignments

To: ogl-sample@xxxxxxxxxxx
Subject: Re: [ogl-sample] .spec file syntax for assignments
From: Sven Panne <Sven.Panne@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Dec 2001 20:05:21 +0100
References: <3BFE1DAD.8FB417B4@xxxxxxxxxxxxxxx> <20011202122928.GA18523@xxxxxxxxxxxxxxx> <3C0A3BA5.D65CA2AD@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: ogl-sample@xxxxxxxxxxx
Sender: owner-ogl-sample@xxxxxxxxxxx
After some thoughts, I don't think that a separate "patch"/"bug" page for the
.spec files is the right way to go. Although Marcelo didn't offer me much hope,
:-} I'll try it anyway: As a first shot, I've collected the bugs in the
enumerant specifications in the SI and the registry, including the patches to
fix them (see below. BTW, does this list handle attachments?).

Another question: The registry's enumext.spec could not be used on its own,
because it uses definitions from enum.spec. But the latter contains extenstions,
which are in the former, too. Could somebody enlighten me about this slightly
strange partitioning?

The bugs:

1) main/gfx/include/gl/spec/enum.spec

   * GetTarget misses a definition for LOGIC_OP (used by BlendEquationMode)
   * There is some naming confusion about ABGR
   * convolution misses a definition for IGNORE_BORDER (used by 
ConvolutionBorderMode)

2) main/doc/registry/specs/enum.spec

   * SGIX_icc_texture is commented out (used in PixelFormat and 
PixelInternalFormat)

3) main/doc/registry/specs/enumext.spec

   * Wrong syntax on some RHSs of EXT_vertex_weighting equations

4) main/doc/registry/specs/glxenum.spec

   * Missing comment character

Cheers,
   S.

--SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP--
--- main/gfx/include/gl/spec/enum.spec.orig     Sun Dec 16 15:43:50 2001
+++ main/gfx/include/gl/spec/enum.spec  Sun Dec 16 16:42:51 2001
@@ -613,6 +613,7 @@
 
                        LOGIC_OP_MODE                           = 0x0BF0
                        INDEX_LOGIC_OP                          = 0x0BF1
+                       LOGIC_OP                                = 0x0BF1
                        COLOR_LOGIC_OP                          = 0x0BF2
 
                        AUX_BUFFERS                             = 0x0C00
@@ -1054,7 +1055,7 @@
                        RGBA                                    = 0x1908
                        LUMINANCE                               = 0x1909
                        LUMINANCE_ALPHA                         = 0x190A
-                       use abgr ABGR
+                       use EXT_abgr ABGR_EXT
 
 PixelInternalFormat    enum:
                        use texture ALPHA4
@@ -1537,6 +1538,7 @@
                        POST_CONVOLUTION_GREEN_BIAS             = 0x8021 # 1 F
                        POST_CONVOLUTION_BLUE_BIAS              = 0x8022 # 1 F
                        POST_CONVOLUTION_ALPHA_BIAS             = 0x8023 # 1 F
+                       IGNORE_BORDER                           = 0x8150
                        CONSTANT_BORDER                         = 0x8151
                        REPLICATE_BORDER                        = 0x8153
                        CONVOLUTION_BORDER_COLOR                = 0x8154
--SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP--
--- main/doc/registry/specs/enum.spec.orig      Wed May 23 20:15:05 2001
+++ main/doc/registry/specs/enum.spec   Sun Dec 16 16:47:01 2001
@@ -3315,19 +3315,19 @@
 ###############################################################################
 
 # Incomplete extension, not in enumext.spec
-# SGIX_icc_texture enum:
-#      RGB_ICC_SGIX                                    = 0x8460
-#      RGBA_ICC_SGIX                                   = 0x8461
-#      ALPHA_ICC_SGIX                                  = 0x8462
-#      LUMINANCE_ICC_SGIX                              = 0x8463
-#      INTENSITY_ICC_SGIX                              = 0x8464
-#      LUMINANCE_ALPHA_ICC_SGIX                        = 0x8465
-#      R5_G6_B5_ICC_SGIX                               = 0x8466
-#      R5_G6_B5_A8_ICC_SGIX                            = 0x8467
-#      ALPHA16_ICC_SGIX                                = 0x8468
-#      LUMINANCE16_ICC_SGIX                            = 0x8469
-#      INTENSITY16_ICC_SGIX                            = 0x846A
-#      LUMINANCE16_ALPHA8_ICC_SGIX                     = 0x846B
+SGIX_icc_texture enum:
+       RGB_ICC_SGIX                                    = 0x8460
+       RGBA_ICC_SGIX                                   = 0x8461
+       ALPHA_ICC_SGIX                                  = 0x8462
+       LUMINANCE_ICC_SGIX                              = 0x8463
+       INTENSITY_ICC_SGIX                              = 0x8464
+       LUMINANCE_ALPHA_ICC_SGIX                        = 0x8465
+       R5_G6_B5_ICC_SGIX                               = 0x8466
+       R5_G6_B5_A8_ICC_SGIX                            = 0x8467
+       ALPHA16_ICC_SGIX                                = 0x8468
+       LUMINANCE16_ICC_SGIX                            = 0x8469
+       INTENSITY16_ICC_SGIX                            = 0x846A
+       LUMINANCE16_ALPHA8_ICC_SGIX                     = 0x846B
 
 ###############################################################################
 
--SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP--
--- main/doc/registry/specs/enumext.spec        Wed May 23 20:15:05 2001
+++ main/doc/registry/specs/enumext.spec        Sun Dec 16 17:47:39 2001
@@ -1818,12 +1818,12 @@
 
 # Extension #188
 EXT_vertex_weighting enum:
-       MODELVIEW0_STACK_DEPTH_EXT                      = 
GL_MODELVIEW_STACK_DEPTH
+       MODELVIEW0_STACK_DEPTH_EXT                      = $MODELVIEW_STACK_DEPTH
        MODELVIEW1_STACK_DEPTH_EXT                      = 0x8502
-       MODELVIEW0_MATRIX_EXT                           = GL_MODELVIEW_MATRIX
+       MODELVIEW0_MATRIX_EXT                           = $MODELVIEW_MATRIX
        MODELVIEW1_MATRIX_EXT                           = 0x8506
        VERTEX_WEIGHTING_EXT                            = 0x8509
-       MODELVIEW0_EXT                                  = GL_MODELVIEW
+       MODELVIEW0_EXT                                  = $MODELVIEW
        MODELVIEW1_EXT                                  = 0x850A
        CURRENT_VERTEX_WEIGHT_EXT                       = 0x850B
        VERTEX_WEIGHT_ARRAY_EXT                         = 0x850C
--SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP--
--- main/doc/registry/specs/glxenum.spec.orig   Wed Apr 26 04:10:53 2000
+++ main/doc/registry/specs/glxenum.spec        Sun Dec 16 18:16:09 2001
@@ -37,7 +37,7 @@
 # enumerant registry (gl.spec). Basically, don't modify this
 # file unless you're SGI's ARB Representative.
 
-@@ Add multisample extension
+# @@ Add multisample extension
 Extensions define:
        VERSION_1_1                                     = 1
        VERSION_1_2                                     = 1
--SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP----SNIP--

<Prev in Thread] Current Thread [Next in Thread>