mesa.git
19 years agoVisual Studio 6 workspace for Mesa libraries.
Karl Schultz [Tue, 24 May 2005 20:57:15 +0000 (20:57 +0000)]
Visual Studio 6 workspace for Mesa libraries.

19 years agoRemoving in favor of new Windows build directory.
Karl Schultz [Tue, 24 May 2005 20:50:56 +0000 (20:50 +0000)]
Removing in favor of new Windows build directory.

19 years agoremove stupid flags
Daniel Borca [Mon, 23 May 2005 22:02:53 +0000 (22:02 +0000)]
remove stupid flags

19 years agoInitialize hw stencil renderbuffer.
Keith Whitwell [Mon, 23 May 2005 21:10:01 +0000 (21:10 +0000)]
Initialize hw stencil renderbuffer.

19 years agoDisable recent sse change pending more testing.
Keith Whitwell [Mon, 23 May 2005 14:31:44 +0000 (14:31 +0000)]
Disable recent sse change pending more testing.

19 years agoImplement enough of ARB_fragment_program for Keith's texenv program
Ben Skeggs [Mon, 23 May 2005 14:14:19 +0000 (14:14 +0000)]
Implement enough of ARB_fragment_program for Keith's texenv program
generation in Mesa.  Requires most recent Mesa cvs to work correctly.

Swizzle code is possibly slow/buggy and will probably be replaced.

Old behaviour can be controlled by a #define in r300_context.h, if
no-one minds I'll remove the old code later on.

Also, disabled cube map extension.  AFAIK We don't support it yet,
and it causes issues with UT2004.

19 years agoUse SSE for vertex emit -- another good speedup.
Keith Whitwell [Mon, 23 May 2005 12:25:43 +0000 (12:25 +0000)]
Use SSE for vertex emit -- another good speedup.

19 years agoImport Thomas Helstrom's SSE memcpy code from the via X.org driver.
Keith Whitwell [Mon, 23 May 2005 12:17:27 +0000 (12:17 +0000)]
Import Thomas Helstrom's SSE memcpy code from the via X.org driver.
Add a TextureMemCpy callback, called from texstore.c when copying
texture data via the memcpy_texture() path.
Enable this code in the via driver - 100% speedup in texdown.c results.

19 years agosilence gcc warnings
Keith Whitwell [Mon, 23 May 2005 12:15:19 +0000 (12:15 +0000)]
silence gcc warnings

19 years agoDetect use of disabled textures as tex_env_crossbar sources.
Keith Whitwell [Mon, 23 May 2005 09:50:34 +0000 (09:50 +0000)]
Detect use of disabled textures as tex_env_crossbar sources.

19 years agoSupport ARB_texture_env_crossbar. Changes the way programs are
Keith Whitwell [Mon, 23 May 2005 09:37:32 +0000 (09:37 +0000)]
Support ARB_texture_env_crossbar.  Changes the way programs are
generated somewhat, with all TEX instructions now emitted at the head
of the program.

19 years agoRestore the negate() function.
Keith Whitwell [Mon, 23 May 2005 08:08:43 +0000 (08:08 +0000)]
Restore the negate() function.
Add Ben Skegg's ATI_texture_env_combine3 support.

19 years agoSmall change to handle native case (7 natives case)
Jerome Glisse [Sun, 22 May 2005 12:24:52 +0000 (12:24 +0000)]
Small change to handle native case (7 natives case)

19 years agoAdding r300 fragment program swizzle tab. Please some
Jerome Glisse [Sun, 22 May 2005 12:06:50 +0000 (12:06 +0000)]
Adding r300 fragment program swizzle tab. Please some
one reread macro at begining see if i made any error.
A full reread would also be usefull there may be some
errors for some swizzle despite the great care i took
to done them :)

19 years agoAdd support for modes with a depth-buffer but no stencil-buffer. This
Ian Romanick [Fri, 20 May 2005 18:40:11 +0000 (18:40 +0000)]
Add support for modes with a depth-buffer but no stencil-buffer.  This
eliminates various "3D driver claims to not support visual" messages in
16-bit color mode.

19 years agoRemove debug printfs
Keith Whitwell [Fri, 20 May 2005 15:12:12 +0000 (15:12 +0000)]
Remove debug printfs

19 years agoRe-enable X11 optimized triangle funcs.
Keith Whitwell [Fri, 20 May 2005 15:06:41 +0000 (15:06 +0000)]
Re-enable X11 optimized triangle funcs.

19 years agouse MAX_SCREENS instead of hard-coded number
Brian Paul [Fri, 20 May 2005 14:11:11 +0000 (14:11 +0000)]
use MAX_SCREENS instead of hard-coded number

19 years agofix reversed strstr() args, print mode string
Brian Paul [Fri, 20 May 2005 14:03:35 +0000 (14:03 +0000)]
fix reversed strstr() args, print mode string

19 years agoreplace // with /* */
Brian Paul [Fri, 20 May 2005 14:02:02 +0000 (14:02 +0000)]
replace // with /* */

19 years ago Committing in .
Jouk Jansen [Fri, 20 May 2005 11:43:54 +0000 (11:43 +0000)]
 Committing in .

 Update openVMS compile support

 Modified Files:
  Mesa/progs/demos/descrip.mms
  Mesa/src/mesa/shader/slang/descrip.mms
  Mesa/src/mesa/tnl/descrip.mms
 ----------------------------------------------------------------------

19 years agoRemove some debug output
Jon Smirl [Fri, 20 May 2005 01:17:38 +0000 (01:17 +0000)]
Remove some debug output
Add #if DEBUG_FRAG in s_nvfragprog.c

19 years agoUse the 1.3 names for FogCoord*
Adam Jackson [Fri, 20 May 2005 00:44:37 +0000 (00:44 +0000)]
Use the 1.3 names for FogCoord*

19 years agoInvalidate current fastpath on changes to attribute size or offset within
Keith Whitwell [Thu, 19 May 2005 20:25:32 +0000 (20:25 +0000)]
Invalidate current fastpath on changes to attribute size or offset within
the vertex.

Use existing facilities to check for sse2 and enable when available.

Turn on SSE/SSE2 codegen for t_vertex.c by default when USE_SSE_ASM is
defined.  Disable with "MESA_NO_CODEGEN=t".

19 years agoCope with the common 3ub and 1ub cases.
Keith Whitwell [Thu, 19 May 2005 19:02:46 +0000 (19:02 +0000)]
Cope with the common 3ub and 1ub cases.
Fix a few typos.
Note that sse_movss sets high dwords to zero when reading from memory.
Fix a few related bugs.

19 years agoRe-initialize viewport shadows each time.
Keith Whitwell [Thu, 19 May 2005 19:01:47 +0000 (19:01 +0000)]
Re-initialize viewport shadows each time.

19 years agomove osmesa demos to their own directory
Keith Whitwell [Thu, 19 May 2005 15:39:37 +0000 (15:39 +0000)]
move osmesa demos to their own directory

19 years agoFix EGL fbdev palette problem. demo3 can save ppm of screen
Jon Smirl [Thu, 19 May 2005 15:03:31 +0000 (15:03 +0000)]
Fix EGL fbdev palette problem. demo3 can save ppm of screen

19 years agoRename emit functions to reflect instruction set in use (ie
Keith Whitwell [Thu, 19 May 2005 14:42:09 +0000 (14:42 +0000)]
Rename emit functions to reflect instruction set in use (ie
x86,sse,sse2,mmx).  Add paths for sse+mmx vs. the initial version
which assumed sse2 was available everywhere.

19 years agoremove the XFree86 ID line
Brian Paul [Thu, 19 May 2005 13:32:41 +0000 (13:32 +0000)]
remove the XFree86 ID line

19 years agointermediate code generator (not finished);
Michal Krol [Thu, 19 May 2005 11:50:53 +0000 (11:50 +0000)]
intermediate code generator (not finished);
generic back-end interpreter (interprets directly intermediate code)

19 years agoadd static_assert macro
Michal Krol [Thu, 19 May 2005 10:22:28 +0000 (10:22 +0000)]
add static_assert macro

19 years agofix info log grabbing
Michal Krol [Thu, 19 May 2005 09:28:01 +0000 (09:28 +0000)]
fix info log grabbing

19 years agoDitch unused code and features that arent in subject to get supported any near time.
Aapo Tahkola [Thu, 19 May 2005 00:03:50 +0000 (00:03 +0000)]
Ditch unused code and features that arent in subject to get supported any near time.

19 years agoIn addition to dead-code removal and other clean-up, bump the required DDX
Ian Romanick [Wed, 18 May 2005 22:49:59 +0000 (22:49 +0000)]
In addition to dead-code removal and other clean-up, bump the required DDX
version from 1.0.0 to 1.1.1.  1.1.1 is over a year and a half old at this
point, so it should be pretty widespread.  This allows the linecomp_sane
field to be eliminated from mga_screen_private_s.

19 years agoFix inverted y for egl fbdev, add egl demo3
Jon Smirl [Wed, 18 May 2005 20:44:23 +0000 (20:44 +0000)]
Fix inverted y for egl fbdev, add egl demo3

19 years agoTo better exercise pixel packing, replace regular glReadPixels with four
Brian Paul [Wed, 18 May 2005 15:44:13 +0000 (15:44 +0000)]
To better exercise pixel packing, replace regular glReadPixels with four
ReadPixels that get the image piece by piece.

19 years agoRemove old t_vertex.c codegen infrastructure, tie in new code.
Keith Whitwell [Wed, 18 May 2005 15:26:48 +0000 (15:26 +0000)]
Remove old t_vertex.c codegen infrastructure, tie in new code.
Currently disabled, can enable with MESA_EXPERIMENTAL=t.

19 years agoFix a few typos, initialize p->identity.
Keith Whitwell [Wed, 18 May 2005 14:04:19 +0000 (14:04 +0000)]
Fix a few typos, initialize p->identity.

19 years agoEliminate a couple of swizzles.
Keith Whitwell [Wed, 18 May 2005 14:03:02 +0000 (14:03 +0000)]
Eliminate a couple of swizzles.

19 years agoGenerates working SSE code for gears under the swrast driver.
Keith Whitwell [Wed, 18 May 2005 12:26:21 +0000 (12:26 +0000)]
Generates working SSE code for gears under the swrast driver.

19 years agoCheckpoint commit: Preliminary version of a facility to emit x86/sse code
Keith Whitwell [Wed, 18 May 2005 10:04:27 +0000 (10:04 +0000)]
Checkpoint commit:  Preliminary version of a facility to emit x86/sse code
to implement vertex emit functions for the t_vertex.c mechanism.

19 years agoStick texture LOD back on.
Aapo Tahkola [Wed, 18 May 2005 08:43:30 +0000 (08:43 +0000)]
Stick texture LOD back on.

19 years agoPolygon mode fixes.
Aapo Tahkola [Wed, 18 May 2005 08:22:36 +0000 (08:22 +0000)]
Polygon mode fixes.

19 years agoFix for writing the wrong sysfs variable when blanking
Jon Smirl [Wed, 18 May 2005 02:48:44 +0000 (02:48 +0000)]
Fix for writing the wrong sysfs variable when blanking

19 years agoImplement fbdev swapbuffers()
Jon Smirl [Wed, 18 May 2005 01:44:11 +0000 (01:44 +0000)]
Implement fbdev swapbuffers()

19 years agoMore comments. More dead-code removed. More clean-up.
Ian Romanick [Wed, 18 May 2005 00:37:32 +0000 (00:37 +0000)]
More comments.  More dead-code removed.  More clean-up.

19 years agoDisable leftover debug statements
Keith Whitwell [Tue, 17 May 2005 22:21:08 +0000 (22:21 +0000)]
Disable leftover debug statements

19 years agofix some BCOMP/ACOMP typos (fixes Brad King's vtk failures)
Brian Paul [Tue, 17 May 2005 19:29:46 +0000 (19:29 +0000)]
fix some BCOMP/ACOMP typos (fixes Brad King's vtk failures)

19 years agodon't include strings.h
Brian Paul [Tue, 17 May 2005 18:44:33 +0000 (18:44 +0000)]
don't include strings.h

19 years agoremove eglQueryDisplayMESA()
Brian Paul [Tue, 17 May 2005 13:22:13 +0000 (13:22 +0000)]
remove eglQueryDisplayMESA()

19 years agofix pbuffer sample code
Brian Paul [Tue, 17 May 2005 13:21:46 +0000 (13:21 +0000)]
fix pbuffer sample code

19 years agoremove glmode stuff
Brian Paul [Tue, 17 May 2005 13:21:12 +0000 (13:21 +0000)]
remove glmode stuff

19 years agoCheck error return from _eglInitPbufferSurface() correctly
Jon Smirl [Tue, 17 May 2005 03:48:38 +0000 (03:48 +0000)]
Check error return from _eglInitPbufferSurface() correctly

19 years agoCompute stride in the right order
Jon Smirl [Tue, 17 May 2005 03:38:06 +0000 (03:38 +0000)]
Compute stride in the right order

19 years agoAdded software-based pbuffer support (untested).
Brian Paul [Tue, 17 May 2005 02:18:38 +0000 (02:18 +0000)]
Added software-based pbuffer support (untested).
Use _eglConfigToContextModesRec() function and remove need for
the _EGLConfig->glmode struct.
Silence some compiler warnings.

19 years agoupdated demoCreatePbufferSurface()
Brian Paul [Tue, 17 May 2005 02:15:38 +0000 (02:15 +0000)]
updated demoCreatePbufferSurface()

19 years agoupdate comments
Brian Paul [Tue, 17 May 2005 02:14:44 +0000 (02:14 +0000)]
update comments

19 years agomore work on _eglConfigToContextModesRec()
Brian Paul [Tue, 17 May 2005 02:13:00 +0000 (02:13 +0000)]
more work on _eglConfigToContextModesRec()

19 years agoMake EGL_NO_MODE_MESA work.
Jon Smirl [Tue, 17 May 2005 02:12:29 +0000 (02:12 +0000)]
Make EGL_NO_MODE_MESA work.

19 years agoadded _eglInitPbufferSurface()
Brian Paul [Tue, 17 May 2005 02:12:26 +0000 (02:12 +0000)]
added _eglInitPbufferSurface()

19 years agoFix several internal problems with generating the list of configs.
Jon Smirl [Tue, 17 May 2005 00:59:13 +0000 (00:59 +0000)]
Fix several internal problems with generating the list of configs.

19 years agoRearranged some code and added some comments to mgaAllocDmaLow. The
Ian Romanick [Mon, 16 May 2005 23:23:51 +0000 (23:23 +0000)]
Rearranged some code and added some comments to mgaAllocDmaLow.  The
modified code performs identically, but cuts 16KiB from the resulting
mga_dri.so.

19 years agoDon't use _mesa_swizzle_ubyte_image if all three texture formats
Felix Kuehling [Mon, 16 May 2005 23:01:09 +0000 (23:01 +0000)]
Don't use _mesa_swizzle_ubyte_image if all three texture formats
involved in _mesa_textore_argb/rgba8888 (source, base-internal,
destination) differ. _mesa_swizzle_ubyte_image knows only about two of
the formats and can't handle the case that all three are different
correctly. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3111.

19 years agoremove -ansi -pedantic -D_POSIX_C_SOURCE=199309L from CXXFLAGS
Brian Paul [Mon, 16 May 2005 19:07:45 +0000 (19:07 +0000)]
remove -ansi -pedantic -D_POSIX_C_SOURCE=199309L from CXXFLAGS

19 years agoImplement query of surface type.
Jon Smirl [Mon, 16 May 2005 16:50:38 +0000 (16:50 +0000)]
Implement query of surface type.

19 years agoAdd error about write permission to fbdev attribs
Jon Smirl [Mon, 16 May 2005 15:51:05 +0000 (15:51 +0000)]
Add error about write permission to fbdev attribs

19 years agoanother GLX / XCB patch (Jeremy Kolb)
Brian Paul [Mon, 16 May 2005 14:12:46 +0000 (14:12 +0000)]
another GLX / XCB patch (Jeremy Kolb)

19 years agoDeal better with indirection and indirection accounting, developed
Keith Whitwell [Mon, 16 May 2005 12:15:01 +0000 (12:15 +0000)]
Deal better with indirection and indirection accounting, developed
with Ben Skeggs.

19 years agoApply r200 tcl fix to radeon - compiles but untested.
Keith Whitwell [Mon, 16 May 2005 08:36:28 +0000 (08:36 +0000)]
Apply r200 tcl fix to radeon - compiles but untested.

19 years agoEGL_MESA_copy_context stuff
Brian Paul [Mon, 16 May 2005 02:21:57 +0000 (02:21 +0000)]
EGL_MESA_copy_context stuff

19 years agouse EGLint instead of unsigned long for eglCopyContextMESA, added comments
Brian Paul [Mon, 16 May 2005 02:21:08 +0000 (02:21 +0000)]
use EGLint instead of unsigned long for eglCopyContextMESA, added comments

19 years agoseparate ext strings with a space
Brian Paul [Mon, 16 May 2005 02:17:49 +0000 (02:17 +0000)]
separate ext strings with a space

19 years agos/Atrib/Attrib/, set extension enable flags
Brian Paul [Mon, 16 May 2005 02:16:33 +0000 (02:16 +0000)]
s/Atrib/Attrib/, set extension enable flags

19 years agoadded boolean extension flags to _EGLDriver
Brian Paul [Mon, 16 May 2005 02:15:42 +0000 (02:15 +0000)]
added boolean extension flags to _EGLDriver

19 years agorestore _eglSetConfigAttrib (for now), added prototype _eglConfigToContextModesRec()
Brian Paul [Mon, 16 May 2005 02:14:50 +0000 (02:14 +0000)]
restore _eglSetConfigAttrib (for now), added prototype _eglConfigToContextModesRec()

19 years agodefine M_E if needed
Brian Paul [Mon, 16 May 2005 01:32:57 +0000 (01:32 +0000)]
define M_E if needed

19 years agomake _eglSetConfigAtrib() a static function, and rename it
Brian Paul [Mon, 16 May 2005 00:45:03 +0000 (00:45 +0000)]
make _eglSetConfigAtrib() a static function, and rename it

19 years agoremove MESA suffix from _eglInitScreenSurface, use swAlpha value
Brian Paul [Mon, 16 May 2005 00:32:09 +0000 (00:32 +0000)]
remove MESA suffix from _eglInitScreenSurface, use swAlpha value

19 years agominor tweaks
Brian Paul [Mon, 16 May 2005 00:31:29 +0000 (00:31 +0000)]
minor tweaks

19 years agofix GetRow parameters (Nicolai Haehnle)
Brian Paul [Sun, 15 May 2005 21:26:11 +0000 (21:26 +0000)]
fix GetRow parameters (Nicolai Haehnle)

19 years agoA few egl patches needed for glitz, mainly config BITS
Jon Smirl [Sun, 15 May 2005 04:00:59 +0000 (04:00 +0000)]
A few egl patches needed for glitz, mainly config BITS

19 years agoMake gleans polyoffset test happy.
Aapo Tahkola [Sat, 14 May 2005 17:41:57 +0000 (17:41 +0000)]
Make gleans polyoffset test happy.

19 years agoDont assume GLbooleans are ones when true.
Aapo Tahkola [Sat, 14 May 2005 16:52:32 +0000 (16:52 +0000)]
Dont assume GLbooleans are ones when true.

19 years agoCleanup blend state generation.
Nicolai Haehnle [Sat, 14 May 2005 14:56:25 +0000 (14:56 +0000)]
Cleanup blend state generation.
Do not set the NO_SEPARATE bit, as it causes problems with some
combinations of blend functions.

19 years agoAdd empty placeholder for eglCopyContextMESA
Jon Smirl [Sat, 14 May 2005 14:54:38 +0000 (14:54 +0000)]
Add empty placeholder for eglCopyContextMESA

19 years agoThe kernel doesn't like command buffers over 64KB, so we don't
Nicolai Haehnle [Sat, 14 May 2005 14:51:17 +0000 (14:51 +0000)]
The kernel doesn't like command buffers over 64KB, so we don't
allocate buffers bigger than that.

19 years agoFix compiler warning about missing parameter list
Jon Smirl [Sat, 14 May 2005 14:11:11 +0000 (14:11 +0000)]
Fix compiler warning about missing parameter list

19 years agoRemove dead span functions code.
Nicolai Haehnle [Sat, 14 May 2005 12:19:05 +0000 (12:19 +0000)]
Remove dead span functions code.

19 years agoFix span functions for stencil buffer access.
Nicolai Haehnle [Sat, 14 May 2005 11:43:04 +0000 (11:43 +0000)]
Fix span functions for stencil buffer access.

19 years agoDon't print debug messages unless the user explicitly requested them
Nicolai Haehnle [Sat, 14 May 2005 09:17:28 +0000 (09:17 +0000)]
Don't print debug messages unless the user explicitly requested them
using the RADEON_DEBUG environment variable.

19 years agoAdd forgotten demo2.c
Jon Smirl [Sat, 14 May 2005 03:51:18 +0000 (03:51 +0000)]
Add forgotten demo2.c
VS: ----------------------------------------------------------------------

19 years agoFix compile error in demo egl driver
Jon Smirl [Sat, 14 May 2005 03:49:55 +0000 (03:49 +0000)]
Fix compile error in demo egl driver

19 years agoForgot to add fb_egl.c
Jon Smirl [Sat, 14 May 2005 03:22:48 +0000 (03:22 +0000)]
Forgot to add fb_egl.c

19 years agoMake software fallbacks work again:
Nicolai Haehnle [Fri, 13 May 2005 21:29:17 +0000 (21:29 +0000)]
Make software fallbacks work again:
We need to plug in swsetup functions into the TNL module's callbacks.
Also, resize the framebuffer size when the drawable size changes.

19 years agoRemove quiescence sequence from r300ClearBuffer.
Nicolai Haehnle [Fri, 13 May 2005 21:00:11 +0000 (21:00 +0000)]
Remove quiescence sequence from r300ClearBuffer.

The DRM is responsible for emitting this quiescence sequence when
appropriate.

19 years agoFirst attempt at getting egl support up on dumb framebuffer.
Jon Smirl [Fri, 13 May 2005 18:31:35 +0000 (18:31 +0000)]
First attempt at getting egl support up on dumb framebuffer.
Seems to be mostly working. Not all of egl API is implemented.

19 years agoPatch from Jeff Smith:
Nicolai Haehnle [Fri, 13 May 2005 18:03:24 +0000 (18:03 +0000)]
Patch from Jeff Smith:
The type of vertex data is opaque in the emit_* functions, so use GLvoid*
instead of char*. This also eliminates some compiler warnings.

19 years agoPatch from Jeff Smith:
Nicolai Haehnle [Fri, 13 May 2005 17:44:22 +0000 (17:44 +0000)]
Patch from Jeff Smith:
Fix a WARN_ONCE format string.

19 years agoRemove MAX_VISUAL limitations of 100. If running dual head this can
Alan Hourihane [Fri, 13 May 2005 11:56:13 +0000 (11:56 +0000)]
Remove MAX_VISUAL limitations of 100. If running dual head this can
be easily consumed. There are no limitations now and the VisualTable
is realloced when necessary.