progs/egl: Add an OpenGL ES demo for EGL_OES_image_pixmap.
[mesa.git] / docs / RELNOTES-5.1
index f002cb0689d8d435f61e486b936afc25a1182e5f..aed6e102b09a974e78f9516063c01a7196e62a46 100644 (file)
@@ -1,7 +1,7 @@
 
                             Mesa 5.1 release notes
 
-                              Month day, 2003
+                              December 17, 2003
 
                                 PLEASE READ!!!!
 
@@ -24,6 +24,10 @@ See the VERSIONS file for a list of bugs fixed in this release.
 New Features in Mesa 5.1
 ------------------------
 
+GL_ARB_vertex_program / GL_ARB_fragment_program
+   Michal Krol and Karl Rasche implemented these extensions.  Thanks!
+   Be aware that there may be some rough edges and lurking bugs.
+
 GL_ATI_texture_env_combine3 extension
    This adds a few new texture combine modes.
    Contributed by Ian Romanick.
@@ -71,6 +75,24 @@ GL_IBM_multimode_draw_arrays
 GL_SUN_multi_draw_arrays
    An alias for GL_EXT_multi_draw_arrays, standard in OpenGL 1.4.
 
+Faster glDrawPixels / glCopyPixels in X11 driver
+   If your X screen is 32bpp, glDrawPixels to the front color buffer will
+   be accelerated (via XPutImage()) if the image format is GL_BGRA and the
+   type is GL_UNSIGNED_BYTE.  No raster operations, such as depth test,
+   blend, fog, etc. can be enabled.
+
+   If your X screen is 16bpp, glDrawPixels to the front color buffer will
+   be accelerated (via XPutImage()) if the image format is GL_RGB and the
+   type is GL_UNSIGNED_SHORT_5_6_5.  No raster operations, such as depth
+   test, blend, fog, etc. can be enabled.
+
+   glCopyPixels() calls for the front color buffer will be accelerated
+   (via XCopyArea()) if no raster operations, such as depth test, blend,
+   fog, pixel zoom, etc. are enabled.
+
+   The speed-up over typical software rendering is a factor of 10 for
+   glDrawPixels and 100 for glCopyPixels.
+
 
 With the addition of GL_ARB_occlusion_query, GL_ARB_vertex_buffer_object,
 GL_ARB_texture_non_power_of_two and GL_EXT_shadow_funcs, Mesa 5.1 supports
@@ -79,6 +101,41 @@ will advertise GL_VERSION = "1.5".
  
 
 
+Vertex/Fragment program debugger
+--------------------------------
+
+GL_MESA_program_debug is an experimental extension to support
+interactive debugging of vertex and fragment programs.  See the
+docs/MESA_program_debug.spec file for details.
+
+The bulk of the vertex/fragment program debugger is implemented
+outside of Mesa.  The GL_MESA_program_debug extension just has minimal
+hooks for stopping running programs and inspecting programs.
+
+The progs/tests/debugger.c (only in CVS) program is an example of how
+the extension can be used.  Presently, the debugger code and demo code
+is in the same file.  Eventually the debugger code should be moved
+into a reusable module.
+
+As it is now, the demo lets you set breakpoings in vertex/fragment
+programs, single step, and print intermediate register values.  It's
+basically just a proof of concept.
+
+
+
+Directory tree reorganization
+-----------------------------
+
+The directory structure for Mesa has been overhauled to improve its layout.
+All source code for Mesa, GLU, GLUT, etc is now under the src/ directory
+in appropriate subdirectories.
+
+The Mesa source code and drivers has been reorganized under src/mesa/.
+
+All demonstration programs and tests are now in subdirectories under progs/.
+
+
+
 Build System Changes
 --------------------
 
@@ -99,19 +156,6 @@ The "old style" makefile system has been updated:
 
 
 
-Directory tree reorganization
------------------------------
-
-The directory structure for Mesa has been overhauled to improve its layout.
-All source code for Mesa, GLU, GLUT, etc is now under the src/ directory
-in appropriate subdirectories.
-
-The Mesa source code and drivers has been reorganized under src/mesa/.
-
-All demonstration programs and tests are now in subdirectories under progs/.
-
-
-
 Source File Changes
 -------------------
 
@@ -126,6 +170,10 @@ Old files:
 New files:
        program.[ch]              - generic ARB/NV program code
        arbprogram.[ch]           - ARB program API functions
+       arbfragparse.[ch]         - ARB fragment program parsing
+       arbvertparse.[ch]         - ARB vertex program parsing
+       arbparse.[ch]             - ARB vertex/fragment parsing
+       arbparse_syn.h            - vertex/fragment program syntax
        nvprogram.[ch]            - NV program API functions
        nvvertprog.h              - NV vertex program definitions
        nvfragprog.h              - NV fragment program definitions
@@ -134,13 +182,33 @@ New files:
        nvvertexec.[ch]           - NV vertex program execution
        swrast/s_nvfragprog.[ch]  - NV fragment program execution
 
-Removed files:
-       swrast/s_histogram.[ch] - moved into src/histogram.c
+The files related to per-vertex handling have changed.
+Old files:
+       tnl/t_eval_api.c          - old per-vertex code
+       tnl/t_imm_alloc.c         - old per-vertex code
+       tnl/t_imm_api.c           - old per-vertex code
+       tnl/t_imm_debug.c         - old per-vertex code
+       tnl/t_imm_dlist.c         - old per-vertex code
+       tnl/t_imm_elt.c           - old per-vertex code
+       tnl/t_imm_eval.c          - old per-vertex code
+       tnl/t_imm_exec.c          - old per-vertex code
+       tnl/t_imm_fixup.c         - old per-vertex code
+       tnl/t_vtx_sse.c           - old per-vertex code
+       tnl/t_vtx_x86.c           - old per-vertex code
+New files:
+       tnl/t_save_api.c          - new per-vertex code
+       tnl/t_save_loopback.c     - new per-vertex code
+       tnl/t_save_playback.c     - new per-vertex code
+       tnl/t_vtx_eval.c          - old per-vertex code
 
-Other New files:
+Other new files:
        bufferobj.[ch]          - GL_ARB_vertex_buffer_object functions
        version.h               - defines the Mesa version info
 
+Other removed files:
+       swrast/s_histogram.[ch]   - moved into src/histogram.c
+
+
 
 Other Changes
 -------------
@@ -161,6 +229,18 @@ New ctx->Texture._EnabledCoordUnits field:
    If a bit is set in the ctx->Texture._EnabledUnits bitmask is set, the
    same bit MUST be set in ctx->Texture._EnabledCoordUnits.
 
+The ctx->_TriangleCaps field is deprecated.
+   Instead of testing the DD_* bits in _TriangleCaps, you should instead
+   directly test the relevant state variables, or use one of the helper
+   functions like NEED_SECONDARY_COLOR() at the bottom of context.h
+   While testing _TriangleCaps bits was fast, it was kludgey, and setting
+   the bits in the first place could be error prone.
+
+New vertex processing code.
+   The code behind glBegin, glEnd, glVertex, glNormal, etc. has been
+   totally rewritten.  It's a cleaner implementation now and should use
+   less memory. (Keith)
+
 
 
 To Do