mesa.git
24 years agoReorganized software rasterizer as a module which manages its own state,
Keith Whitwell [Sun, 5 Nov 2000 18:24:40 +0000 (18:24 +0000)]
Reorganized software rasterizer as a module which manages its own state,
with tighter interfaces with the rest of the world.

Proper documentation to come.

24 years agoA new module to provide RasterSetup and advanced triangle/line/point
Keith Whitwell [Sun, 5 Nov 2000 18:20:18 +0000 (18:20 +0000)]
A new module to provide RasterSetup and advanced triangle/line/point
functionality layered on top of the software rasterizer.

An example entrypoint:
void _swsetup_Triangle( GLcontext, GLuint, GLuint, GLuint, GLuint )

will coerce the software rasterizer to draw flat, twoside-lit,
unfilled and offset triangles (including decomposition to points or lines).

24 years agoLots of changes:
Keith Whitwell [Sun, 5 Nov 2000 18:16:51 +0000 (18:16 +0000)]
Lots of changes:
- use the new interface to the software rasterizer.
- manage all fallbacks internally, hooking in swrast or
  swrast_setup if necessary.
- removed lots of marginal code no longer appropriate in a
  maturing driver.
- reworked the vertex-setup and triangle routines, including
  drawing unfilled triangles from within the driver.

24 years agoupdate to GL_MESA_trace extension enums
Brian Paul [Fri, 3 Nov 2000 15:14:18 +0000 (15:14 +0000)]
update to GL_MESA_trace extension enums

24 years agoMESA_trace extension (Loki)
Brian Paul [Fri, 3 Nov 2000 15:10:04 +0000 (15:10 +0000)]
MESA_trace extension (Loki)

24 years agoadded GL_MESA_packed_depth_stencil extension
Brian Paul [Fri, 3 Nov 2000 15:01:38 +0000 (15:01 +0000)]
added GL_MESA_packed_depth_stencil extension

24 years agoGL_MESA_packed_depth_stencil extension spec
Brian Paul [Fri, 3 Nov 2000 14:58:45 +0000 (14:58 +0000)]
GL_MESA_packed_depth_stencil extension spec

24 years agoadded some missing backslashes
Brian Paul [Fri, 3 Nov 2000 01:37:10 +0000 (01:37 +0000)]
added some missing backslashes

24 years agoChange transformation from ortho to perspective so we get the MGA elt
Gareth Hughes [Fri, 3 Nov 2000 00:09:31 +0000 (00:09 +0000)]
Change transformation from ortho to perspective so we get the MGA elt
path by default.

24 years agoupdate for separate libOSMesa.so lib
Brian Paul [Wed, 1 Nov 2000 16:02:52 +0000 (16:02 +0000)]
update for separate libOSMesa.so lib

24 years agoprint number of texture units
Brian Paul [Wed, 1 Nov 2000 16:02:01 +0000 (16:02 +0000)]
print number of texture units

24 years ago Committing in .
Jouk Jansen [Wed, 1 Nov 2000 15:53:02 +0000 (15:53 +0000)]
 Committing in .

 Modified Files:
  Mesa/src/descrip.mms

 Updated Makefiles for VMS
----------------------------------------------------------------------

24 years agoAdded trivial CVA test for testing HW driver fastpaths, good for testing
Gareth Hughes [Wed, 1 Nov 2000 03:14:12 +0000 (03:14 +0000)]
Added trivial CVA test for testing HW driver fastpaths, good for testing
indexed vertex buffer implementations for instance.

Cleaned up Makefile to make building and adding more tests easier.

24 years agoAlways call Driver.SetReadBuffer() in copy pixels functions, just to be safe
Brian Paul [Tue, 31 Oct 2000 23:11:06 +0000 (23:11 +0000)]
Always call Driver.SetReadBuffer() in copy pixels functions, just to be safe

24 years agoadded comment explaining why the demo is flawed
Brian Paul [Tue, 31 Oct 2000 20:41:06 +0000 (20:41 +0000)]
added comment explaining why the demo is flawed

24 years agoMoved the software rasterizer to a new directory.
Keith Whitwell [Tue, 31 Oct 2000 18:09:44 +0000 (18:09 +0000)]
Moved the software rasterizer to a new directory.

24 years agoMoved software rasterizer functionality to new directory.
Keith Whitwell [Tue, 31 Oct 2000 18:00:04 +0000 (18:00 +0000)]
Moved software rasterizer functionality to new directory.

24 years agoRemove dead code in FX driver.
Keith Whitwell [Tue, 31 Oct 2000 12:40:57 +0000 (12:40 +0000)]
Remove dead code in FX driver.

24 years agoremoved debug printf
Brian Paul [Tue, 31 Oct 2000 01:20:06 +0000 (01:20 +0000)]
removed debug printf

24 years agobig overhaul of the demo, works better now
Brian Paul [Mon, 30 Oct 2000 22:38:55 +0000 (22:38 +0000)]
big overhaul of the demo, works better now

24 years agoRearrange VERT_* flags to support 4 texture units.
Keith Whitwell [Mon, 30 Oct 2000 18:50:42 +0000 (18:50 +0000)]
Rearrange VERT_* flags to support 4 texture units.

24 years agoRemoved UPDATE_IMAGE_TRANSFER_STATE, use _NEW_PIXEL flag instead.
Brian Paul [Mon, 30 Oct 2000 16:32:42 +0000 (16:32 +0000)]
Removed UPDATE_IMAGE_TRANSFER_STATE, use _NEW_PIXEL flag instead.
More minor GLchan changes.
Silence some compiler warnings in cva.[ch]

24 years agoRemoved references to gcc's __FUNCTION__ macro.
Keith Whitwell [Mon, 30 Oct 2000 16:30:56 +0000 (16:30 +0000)]
Removed references to gcc's __FUNCTION__ macro.
Removed dead file fog_tmp.h

24 years agoset *t->flag = enabled in gl_extensions_add(), otherwise, extension booleans weren...
Brian Paul [Mon, 30 Oct 2000 16:27:21 +0000 (16:27 +0000)]
set *t->flag = enabled in gl_extensions_add(), otherwise, extension booleans weren't set

24 years agotest cvs commit logging
Keith Whitwell [Mon, 30 Oct 2000 16:00:42 +0000 (16:00 +0000)]
test cvs commit logging

24 years agoReplace the flags Mesa was using for ctx->NewState with a new set
Keith Whitwell [Mon, 30 Oct 2000 13:31:59 +0000 (13:31 +0000)]
Replace the flags Mesa was using for ctx->NewState with a new set
based on the GL attribute groups.

Introduced constants describing the circumstances under which some
key derived values can change:
_SWRAST_NEW_RASTERMASK -- ctx->RasterMask
_SWRAST_NEW_TRIANGLE   -- The software rasterizer's triangle
                          function
_DD_NEW_FEEDBACK -- the 'DD_FEEDBACK' bit in ctx->TriangleCaps

These are helpful in deciding whether you need to recalculate state if your
recalculation involves reference to a derived value.

24 years ago Committing in .
Jouk Jansen [Mon, 30 Oct 2000 08:39:38 +0000 (08:39 +0000)]
 Committing in .

 Modified Files:
  Mesa/src/X/xm_api.c

 included macros.h

----------------------------------------------------------------------

24 years agorenamed Current.ByteColor Current.Color
Brian Paul [Sun, 29 Oct 2000 19:02:23 +0000 (19:02 +0000)]
renamed Current.ByteColor Current.Color

24 years agomore minor header file re-org (moved CONST, ASSERT, INLINE to config.h)
Brian Paul [Sun, 29 Oct 2000 18:23:16 +0000 (18:23 +0000)]
more minor header file re-org (moved CONST, ASSERT, INLINE to config.h)

24 years agoMore GLchan color channel changes.
Brian Paul [Sun, 29 Oct 2000 18:12:14 +0000 (18:12 +0000)]
More GLchan color channel changes.
Some header file re-org:
   Move matrix, vertex buffer structs to types.h to fix #include mess.
   Remove typedef, extern declarations from config.h

24 years agoNew colormac.h file for color-related macros.
Brian Paul [Sat, 28 Oct 2000 20:41:13 +0000 (20:41 +0000)]
New colormac.h file for color-related macros.
Lot's of clean-up in macros.h and mmath.h

24 years agoBasic work to support deep color channels:
Brian Paul [Sat, 28 Oct 2000 18:34:48 +0000 (18:34 +0000)]
Basic work to support deep color channels:
  Replace GLubyte with GLchan
  Replace 255 with CHAN_MAX

24 years agoDo per-pixel fog when GL_FOG_HINT is GL_NICEST.
Keith Whitwell [Sat, 28 Oct 2000 11:42:12 +0000 (11:42 +0000)]
Do per-pixel fog when GL_FOG_HINT is GL_NICEST.
Fix scaling bug in per-pixel fog calculations.

24 years agoLots of misc. bugfixes to bring GGIMesa in sync with the latest Mesa sources.
Jon Taylor [Sat, 28 Oct 2000 10:02:44 +0000 (10:02 +0000)]
Lots of misc. bugfixes to bring GGIMesa in sync with the latest Mesa sources.

24 years agorestored test for __alpha in _mesa_win_fog_coords_from_z()
Brian Paul [Fri, 27 Oct 2000 18:38:35 +0000 (18:38 +0000)]
restored test for __alpha in _mesa_win_fog_coords_from_z()

24 years agoadded info about GL_EXT_secondary_color and GL_EXT_fog_coord
Brian Paul [Fri, 27 Oct 2000 18:32:55 +0000 (18:32 +0000)]
added info about GL_EXT_secondary_color and GL_EXT_fog_coord

24 years agoEnabled GL_EXT_secondary_color. Fixed a bunch of typos in the dlist.c
Brian Paul [Fri, 27 Oct 2000 18:31:21 +0000 (18:31 +0000)]
Enabled GL_EXT_secondary_color.  Fixed a bunch of typos in the dlist.c
and state.c file for plugging those functions into the dispatch table.
Don't use Mesa 3.5 for DRI until SGI approves the new dispatch offsets.
Commented-out references to ctx->FogMode and VB->Specular in FX driver.
Minor clean-up in extensions.c
Removed unused prototype in fog.h

24 years agoImplement EXT_fog_coord and EXT_secondary_color.
Keith Whitwell [Fri, 27 Oct 2000 16:44:40 +0000 (16:44 +0000)]
Implement EXT_fog_coord and EXT_secondary_color.

EXT_secondary_color is disabled until we get some dispatch offsets from SGI.

24 years agoChange animated apps to double-buffered visuals by default.
Gareth Hughes [Fri, 27 Oct 2000 02:49:17 +0000 (02:49 +0000)]
Change animated apps to double-buffered visuals by default.

24 years agoadded GL_BGR case to bytes_per_pixel()
Brian Paul [Thu, 26 Oct 2000 21:48:18 +0000 (21:48 +0000)]
added GL_BGR case to bytes_per_pixel()

24 years agoremoved X86/*.m4 files from tar archive
Brian Paul [Thu, 26 Oct 2000 19:36:14 +0000 (19:36 +0000)]
removed X86/*.m4 files from tar archive

24 years agoclarified meaning of DEFAULT_SOFTWARE_DEPTH_BITS value
Brian Paul [Thu, 26 Oct 2000 19:26:18 +0000 (19:26 +0000)]
clarified meaning of DEFAULT_SOFTWARE_DEPTH_BITS value

24 years agofixed value for GLU_NURBS_MODE
Brian Paul [Thu, 26 Oct 2000 15:32:54 +0000 (15:32 +0000)]
fixed value for GLU_NURBS_MODE

24 years agoadded a glFinish() call
Brian Paul [Thu, 26 Oct 2000 15:26:14 +0000 (15:26 +0000)]
added a glFinish() call

24 years agoadded incomplete() debug function/macro
Brian Paul [Tue, 24 Oct 2000 02:53:18 +0000 (02:53 +0000)]
added incomplete() debug function/macro

24 years agosignal NEW_TEXTURING if there's a Driver.BindTexture() function
Brian Paul [Tue, 24 Oct 2000 01:13:58 +0000 (01:13 +0000)]
signal NEW_TEXTURING if there's a Driver.BindTexture() function

24 years agoPut a white texel in each corner of each texture.
Brian Paul [Mon, 23 Oct 2000 23:32:22 +0000 (23:32 +0000)]
Put a white texel in each corner of each texture.
Draw polygons using the texture's aspect ratio.
The tdfx-3-0-0 texcoord bug is obvious with the -randomsize option.

24 years agoadded idle() func, enable fog by default
Brian Paul [Mon, 23 Oct 2000 20:06:36 +0000 (20:06 +0000)]
added idle() func, enable fog by default

24 years agoadded libOSMesa.so info
Brian Paul [Mon, 23 Oct 2000 19:46:11 +0000 (19:46 +0000)]
added libOSMesa.so info

24 years agogenerate separate libOSMesa library ala XFree86/DRI
Brian Paul [Mon, 23 Oct 2000 19:43:36 +0000 (19:43 +0000)]
generate separate libOSMesa library ala XFree86/DRI

24 years agofixed 386/x86 mismatches, reordered a few configs
Brian Paul [Mon, 23 Oct 2000 19:33:55 +0000 (19:33 +0000)]
fixed 386/x86 mismatches, reordered a few configs

24 years agoMajor audit of all Mesa's x86 assembly code. This round is basically
Gareth Hughes [Mon, 23 Oct 2000 00:20:50 +0000 (00:20 +0000)]
Major audit of all Mesa's x86 assembly code.  This round is basically
general cleanups - more to come.

Added P6 architecture timing to debug_xform routines.  Still need to add
test_all_vertex_functions test for the v16 asm.  Dynamic reconfiguration
of counter overhead for more accurate benchmarking.

Removed redundant x86 assembly build options, replace with linux-x86 and
so on.  This will build all x86, MMX, 3DNow!, SSE etc assembly into
libGL - preferred over many different options to include some but not
all assembly code.  Note that linux-3dnow and linux-katmai options have
thus been removed.

24 years agoMajor audit of all Mesa's x86 assembly code. This round is basically
Gareth Hughes [Mon, 23 Oct 2000 00:16:28 +0000 (00:16 +0000)]
Major audit of all Mesa's x86 assembly code.  This round is basically
general cleanups - more to come.

Added P6 architecture timing to debug_xform routines.  Still need to add
test_all_vertex_functions test for the v16 asm.  Dynamic reconfiguration
of counter overhead for more accurate benchmarking.

24 years agoadded a proper idle() function
Brian Paul [Sat, 21 Oct 2000 04:29:02 +0000 (04:29 +0000)]
added a proper idle() function

24 years agofixed a texture enable bug
Brian Paul [Sat, 21 Oct 2000 01:29:12 +0000 (01:29 +0000)]
fixed a texture enable bug

24 years agopolygon offset changes; added Visual->MRD field
Brian Paul [Sat, 21 Oct 2000 00:02:47 +0000 (00:02 +0000)]
polygon offset changes; added Visual->MRD field

24 years agoChanges for multitexture > 3, code clean-ups.
Brian Paul [Fri, 20 Oct 2000 19:54:49 +0000 (19:54 +0000)]
Changes for multitexture > 3, code clean-ups.
Added GLboolean ctx->Texture.MultiTextureEnabled to determine when
multitexture is enabled.  Eventually ctx->Texture.ReallyEnabled may
become a boolean.

24 years agouse 1.1 glPolygonOffset instead of glPolygonOffsetEXT
Brian Paul [Fri, 20 Oct 2000 17:26:57 +0000 (17:26 +0000)]
use 1.1 glPolygonOffset instead of glPolygonOffsetEXT

24 years agoRewrote get_static_proc_address(). It made mistakes in some situations
Brian Paul [Thu, 19 Oct 2000 20:13:12 +0000 (20:13 +0000)]
Rewrote get_static_proc_address().  It made mistakes in some situations

24 years agoglPixelStore(GL_PACK/UNPACK_SKIP_IMAGES) wasn't handled correctly
Brian Paul [Thu, 19 Oct 2000 20:09:47 +0000 (20:09 +0000)]
glPixelStore(GL_PACK/UNPACK_SKIP_IMAGES) wasn't handled correctly

24 years agocall Driver.SetReadBuffer() in clear_color_buffers() to fix colormasked clear bug
Brian Paul [Thu, 19 Oct 2000 18:17:19 +0000 (18:17 +0000)]
call Driver.SetReadBuffer() in clear_color_buffers() to fix colormasked clear bug

24 years agoimproved blending accuracy to fix Glean test failures
Brian Paul [Thu, 19 Oct 2000 18:08:05 +0000 (18:08 +0000)]
improved blending accuracy to fix Glean test failures

24 years agoGL_MAX_TEXTURE_UNITS_ARB is now 3
Brian Paul [Wed, 18 Oct 2000 15:14:48 +0000 (15:14 +0000)]
GL_MAX_TEXTURE_UNITS_ARB is now 3

24 years agoMore fixes for MAX_TEXTURE_UNITS > 2. Seems to work now.
Brian Paul [Wed, 18 Oct 2000 15:02:59 +0000 (15:02 +0000)]
More fixes for MAX_TEXTURE_UNITS > 2.  Seems to work now.
Misc code clean-ups, minor bug fixes.
MAX_TEXTURE_UNITS now defaults to 3.

24 years agoported render begin/end calls from Mesa 3.4
Brian Paul [Tue, 17 Oct 2000 00:42:02 +0000 (00:42 +0000)]
ported render begin/end calls from Mesa 3.4

24 years agoadded _mesa_get_teximages_from_driver()
Brian Paul [Mon, 16 Oct 2000 23:43:12 +0000 (23:43 +0000)]
added _mesa_get_teximages_from_driver()

24 years agouse gray background, memset TempImage to white to help with debugging
Brian Paul [Mon, 16 Oct 2000 21:24:39 +0000 (21:24 +0000)]
use gray background, memset TempImage to white to help with debugging

24 years agoif depthBits == 0, set DepthMask = 2^16 to fix per-fragment fog problems
Brian Paul [Mon, 9 Oct 2000 22:42:40 +0000 (22:42 +0000)]
if depthBits == 0, set DepthMask = 2^16 to fix per-fragment fog problems

24 years agoupdate TriangleCaps in GL_POINT/POLYGON_SMOOTH cases
Brian Paul [Thu, 5 Oct 2000 23:10:42 +0000 (23:10 +0000)]
update TriangleCaps in GL_POINT/POLYGON_SMOOTH cases

24 years agobrighter colors
Brian Paul [Thu, 5 Oct 2000 21:57:00 +0000 (21:57 +0000)]
brighter colors

24 years agobetter handling of GLX_DEPTH_SIZE in glXChooseVisual()
Brian Paul [Thu, 5 Oct 2000 17:38:21 +0000 (17:38 +0000)]
better handling of GLX_DEPTH_SIZE in glXChooseVisual()

24 years agodrawing color-index image to RGB window was broken
Brian Paul [Thu, 5 Oct 2000 16:22:22 +0000 (16:22 +0000)]
drawing color-index image to RGB window was broken

24 years ago Committing in .
Jouk Jansen [Thu, 5 Oct 2000 07:17:43 +0000 (07:17 +0000)]
 Committing in .

 Modified Files:
  Mesa/demos/paltex.c

 Silenced compiler warnings

----------------------------------------------------------------------

24 years agoimproved to test alpha blending with texture palette
Brian Paul [Wed, 4 Oct 2000 18:15:39 +0000 (18:15 +0000)]
improved to test alpha blending with texture palette

24 years agomore work to support N texture units
Brian Paul [Mon, 2 Oct 2000 15:45:12 +0000 (15:45 +0000)]
more work to support N texture units

24 years agotextured line test
Brian Paul [Sat, 30 Sep 2000 18:48:33 +0000 (18:48 +0000)]
textured line test

24 years agosupport for N texture units
Brian Paul [Sat, 30 Sep 2000 18:42:29 +0000 (18:42 +0000)]
support for N texture units

24 years agoadded fps output
Brian Paul [Fri, 29 Sep 2000 23:09:39 +0000 (23:09 +0000)]
added fps output

24 years agogeneralized support for N texure units
Brian Paul [Fri, 29 Sep 2000 16:58:44 +0000 (16:58 +0000)]
generalized support for N texure units

24 years agoremoved ctx->Texture.Enabled, use ctx->Texture.ReallyEnabled instead
Brian Paul [Thu, 28 Sep 2000 22:44:30 +0000 (22:44 +0000)]
removed ctx->Texture.Enabled, use ctx->Texture.ReallyEnabled instead

24 years agonew params for SpecificCompressedTexFormat() (Bill White)
Brian Paul [Thu, 28 Sep 2000 18:30:39 +0000 (18:30 +0000)]
new params for SpecificCompressedTexFormat() (Bill White)

24 years ago Committing in .
Jouk Jansen [Wed, 27 Sep 2000 10:59:15 +0000 (10:59 +0000)]
 Committing in .

 Modified Files:
  Mesa/src/descrip.mms

 inserted imports.c
----------------------------------------------------------------------

24 years agoinclude types.h
Brian Paul [Wed, 27 Sep 2000 03:30:49 +0000 (03:30 +0000)]
include types.h

24 years agorenamed gl_copy_context to _mesa_copy_context
Brian Paul [Tue, 26 Sep 2000 21:28:39 +0000 (21:28 +0000)]
renamed gl_copy_context to _mesa_copy_context

24 years agoadded imports.c
Brian Paul [Tue, 26 Sep 2000 21:22:20 +0000 (21:22 +0000)]
added imports.c

24 years agoFirst batch of OpenGL SI related changes:
Brian Paul [Tue, 26 Sep 2000 20:53:53 +0000 (20:53 +0000)]
First batch of OpenGL SI related changes:
Renamed struct gl_context to struct __GLcontextRec.
Include glcore.h, setup GL imports/exports.
Replaced gl_ prefix with _mesa_ prefix in context.[ch] functions.
GLcontext's Visual field is no longer a pointer.

24 years agoReplaced preprocessor symbol GL_MESA_TRACE with MESA_TRACE.
Brian Paul [Tue, 26 Sep 2000 15:27:20 +0000 (15:27 +0000)]
Replaced preprocessor symbol GL_MESA_TRACE with MESA_TRACE.
Changed src/Makefile.X11 to compile Trace sources like other drivers.

24 years agouse GL_NEAREST texture filter
Brian Paul [Tue, 26 Sep 2000 15:25:01 +0000 (15:25 +0000)]
use GL_NEAREST texture filter

24 years agoadded GL_ARB_texture_env_add
Brian Paul [Mon, 25 Sep 2000 16:03:59 +0000 (16:03 +0000)]
added GL_ARB_texture_env_add

24 years agoremoved unused display_list struct
Brian Paul [Sun, 24 Sep 2000 16:11:55 +0000 (16:11 +0000)]
removed unused display_list struct

24 years agoAdded SSE streaming store instructions, external symbol directives.
Gareth Hughes [Mon, 18 Sep 2000 22:49:04 +0000 (22:49 +0000)]
Added SSE streaming store instructions, external symbol directives.

24 years agoAdded SSE prefetching instructions. General cleanups.
Gareth Hughes [Mon, 18 Sep 2000 16:57:16 +0000 (16:57 +0000)]
Added SSE prefetching instructions.  General cleanups.

24 years agonew comments, misc clean-up
Brian Paul [Sun, 17 Sep 2000 21:56:07 +0000 (21:56 +0000)]
new comments, misc clean-up

24 years agoGeneral cleanups. Disable gl_katmai_project_vertices and
Gareth Hughes [Sun, 17 Sep 2000 21:12:40 +0000 (21:12 +0000)]
General cleanups.  Disable gl_katmai_project_vertices and
gl_katmai_project_clipped_vertices for now as they are broken.

24 years agoset default window pos, changed 4 to GL_RGBA
Brian Paul [Fri, 15 Sep 2000 23:59:46 +0000 (23:59 +0000)]
set default window pos, changed 4 to GL_RGBA

24 years agoadded some missing const keywords in GetString
Brian Paul [Fri, 15 Sep 2000 19:57:51 +0000 (19:57 +0000)]
added some missing const keywords in GetString

24 years agoadded GL_MESA_trace support
Brian Paul [Fri, 15 Sep 2000 19:45:40 +0000 (19:45 +0000)]
added GL_MESA_trace support

24 years agoAdded GL_MESA_trace extension (Loki)
Brian Paul [Fri, 15 Sep 2000 19:45:00 +0000 (19:45 +0000)]
Added GL_MESA_trace extension (Loki)

24 years agoadded trace support (Loki)
Brian Paul [Fri, 15 Sep 2000 19:44:39 +0000 (19:44 +0000)]
added trace support (Loki)

24 years agoremoved unused struct display_list_compilation
Brian Paul [Fri, 15 Sep 2000 17:04:35 +0000 (17:04 +0000)]
removed unused struct display_list_compilation