mesa.git
19 years agoupdated to version 29
Brian Paul [Tue, 21 Jun 2005 14:30:46 +0000 (14:30 +0000)]
updated to version 29

19 years agoinclude light.h to silence warning
Brian Paul [Tue, 21 Jun 2005 03:38:10 +0000 (03:38 +0000)]
include light.h to silence warning

19 years agoDirectFB updates (Claudio Ciccani)
Brian Paul [Mon, 20 Jun 2005 18:29:28 +0000 (18:29 +0000)]
DirectFB updates (Claudio Ciccani)

19 years agoran "make" after update to glX_proto_send.py.
Jeremy Kolb [Mon, 20 Jun 2005 03:18:16 +0000 (03:18 +0000)]
ran "make" after update to glX_proto_send.py.

19 years agoFixed some issues where XCB replies were being freed and data was not being copied.
Jeremy Kolb [Mon, 20 Jun 2005 03:12:35 +0000 (03:12 +0000)]
Fixed some issues where XCB replies were being freed and data was not being copied.

19 years agoDefine __FUNCTION__ as a preprocessor symbol in glheader.h if we're not
Brian Paul [Sun, 19 Jun 2005 14:57:34 +0000 (14:57 +0000)]
Define __FUNCTION__ as a preprocessor symbol in glheader.h if we're not
using GCC or VMS.

19 years agoFix gloss breakage when using hw tnl.
Aapo Tahkola [Thu, 16 Jun 2005 11:57:45 +0000 (11:57 +0000)]
Fix gloss breakage when using hw tnl.

19 years agoUse depth tiling.
Aapo Tahkola [Thu, 16 Jun 2005 11:41:19 +0000 (11:41 +0000)]
Use depth tiling.

19 years agoSupport 16-bit modes.
Aapo Tahkola [Thu, 16 Jun 2005 10:40:39 +0000 (10:40 +0000)]
Support 16-bit modes.

19 years agoFix problems with elts when immediate mode is on.
Aapo Tahkola [Thu, 16 Jun 2005 10:27:04 +0000 (10:27 +0000)]
Fix problems with elts when immediate mode is on.

19 years agoTurn off VBO's.
Aapo Tahkola [Thu, 16 Jun 2005 10:21:01 +0000 (10:21 +0000)]
Turn off VBO's.

19 years agolost_context never gets reset.
Aapo Tahkola [Thu, 16 Jun 2005 10:05:18 +0000 (10:05 +0000)]
lost_context never gets reset.

19 years agoFix a few compiler warnings
Jon Smirl [Thu, 16 Jun 2005 04:25:45 +0000 (04:25 +0000)]
Fix a few compiler warnings

19 years agoFix linux-solo build for mga check-in
Jon Smirl [Thu, 16 Jun 2005 03:45:48 +0000 (03:45 +0000)]
Fix linux-solo build for mga check-in

19 years agoAdds support for MGA DRM version 3.2.
Ian Romanick [Tue, 14 Jun 2005 22:51:44 +0000 (22:51 +0000)]
Adds support for MGA DRM version 3.2.

This patch makes use of two of the new ioctls added in MGA DRM version
3.2.  Specifically, the DRM_MGA_SET_FENCE and DRM_MGA_WAIT_FENCE
ioctls are used in mgaWaitForFrameCompletion.  As a result the MMIO
register region and the primary DMA region are *not* mapped (if DRM
3.2 is available).

This patch does *not* make use of the new get_param query was added to
differentiate between G4x0 cards and G550 cards.  That is left to a
future update.

Xorg bug: 3259
Reviewed by: Eric Anholt

19 years ago Committing in .
Jouk Jansen [Tue, 14 Jun 2005 10:27:05 +0000 (10:27 +0000)]
 Committing in .

 OpenVMS updates

 Modified Files:
  Mesa/src/mesa/tnl/descrip.mms Mesa/src/mesa/tnl/t_vp_build.c
 ----------------------------------------------------------------------

19 years agofbSwapBuffers needs to return a status
Jon Smirl [Mon, 13 Jun 2005 14:21:34 +0000 (14:21 +0000)]
fbSwapBuffers needs to return a status

19 years agomingw changes (Nolan Leake)
Brian Paul [Mon, 13 Jun 2005 14:07:14 +0000 (14:07 +0000)]
mingw changes (Nolan Leake)

19 years agoFixed typos.
Vladimir Dergachev [Sun, 12 Jun 2005 14:57:02 +0000 (14:57 +0000)]
Fixed typos.

19 years agoAdd definition for memory controller latency registers..
Vladimir Dergachev [Fri, 10 Jun 2005 16:10:50 +0000 (16:10 +0000)]
Add definition for memory controller latency registers..

19 years agoremove debug prints
Keith Whitwell [Fri, 10 Jun 2005 14:58:32 +0000 (14:58 +0000)]
remove debug prints

19 years agobe sure we have span texcoords before calling _swrast_texture_span()
Brian Paul [Fri, 10 Jun 2005 14:37:32 +0000 (14:37 +0000)]
be sure we have span texcoords before calling _swrast_texture_span()

19 years agopass mask array to PutRowRGB() in simple_z_textured_triangle()
Brian Paul [Fri, 10 Jun 2005 14:36:55 +0000 (14:36 +0000)]
pass mask array to PutRowRGB() in simple_z_textured_triangle()

19 years agoAllow the print opcode to compile
Keith Whitwell [Fri, 10 Jun 2005 13:59:49 +0000 (13:59 +0000)]
Allow the print opcode to compile

19 years agoFix typo in spot attenuation
Keith Whitwell [Fri, 10 Jun 2005 13:35:31 +0000 (13:35 +0000)]
Fix typo in spot attenuation

19 years agoCorrect test for attenuation.
Keith Whitwell [Fri, 10 Jun 2005 12:04:47 +0000 (12:04 +0000)]
Correct test for attenuation.
DISSASEM changes.

19 years agoremove depend files on clean
Keith Whitwell [Fri, 10 Jun 2005 10:43:02 +0000 (10:43 +0000)]
remove depend files on clean

19 years agoFix colormaterial flag calculations.
Keith Whitwell [Fri, 10 Jun 2005 08:33:37 +0000 (08:33 +0000)]
Fix colormaterial flag calculations.
Fix lighting alpha result.

19 years agoAdd notes about intended precision of opcodes.
Keith Whitwell [Fri, 10 Jun 2005 08:32:27 +0000 (08:32 +0000)]
Add notes about intended precision of opcodes.
Remove dead floating point twiddles.
Fix bug translating MAD->MUL,ADD.

19 years agoFix a couple of buglets
Keith Whitwell [Thu, 9 Jun 2005 22:10:23 +0000 (22:10 +0000)]
Fix a couple of buglets

19 years agoAnother typo
Keith Whitwell [Thu, 9 Jun 2005 19:03:18 +0000 (19:03 +0000)]
Another typo

19 years agoFurther clean up RoughApproxPow2 and disable the optimized version --
Keith Whitwell [Thu, 9 Jun 2005 18:59:41 +0000 (18:59 +0000)]
Further clean up RoughApproxPow2 and disable the optimized version --
it's a very poor approximation.

19 years agoFix typo in RoughApproxPow2
Keith Whitwell [Thu, 9 Jun 2005 18:52:42 +0000 (18:52 +0000)]
Fix typo in RoughApproxPow2

19 years agoStore compiled vertex program representations in a pointer in the
Keith Whitwell [Thu, 9 Jun 2005 14:55:34 +0000 (14:55 +0000)]
Store compiled vertex program representations in a pointer in the
vertex_program struct.

Allow switching between regular and vertex_program implementations
of fixed function TNL with the MESA_TNL_PROG environment var
(previously this required recompilation).

Ensure program compilation only references program data, not the
wider context.  This means that compiled programs only need to be
invalidated when the program string changes, not on other state
changes.

19 years agoBuild vertex programs using state from a 'state key' struct which is
Keith Whitwell [Thu, 9 Jun 2005 14:52:08 +0000 (14:52 +0000)]
Build vertex programs using state from a 'state key' struct which is
distilled from the current state.

Maintain a list of vertex programs for various different tnl states
indexed by these state keys.

This cuts down the number of vertex programs generated and means that
time spent optimizing vertex programs for execution isn't wasted each
time the state changes.

19 years agoTurn off debug
Keith Whitwell [Wed, 8 Jun 2005 22:14:29 +0000 (22:14 +0000)]
Turn off debug

19 years agoAdd t_vb_arbprogram_sse.c
Keith Whitwell [Wed, 8 Jun 2005 22:10:34 +0000 (22:10 +0000)]
Add t_vb_arbprogram_sse.c

19 years agoRuntime generate sse/sse2 code for some vertex programs. Experimental
Keith Whitwell [Wed, 8 Jun 2005 22:10:16 +0000 (22:10 +0000)]
Runtime generate sse/sse2 code for some vertex programs.  Experimental
and only active when _TNL_FIXED_FUNCTION_PROGRAM is defined *and*
the MESA_EXPERIMENTAL environment variable is set...
Works for the arbfplight demo at least.

19 years agoTurn off DISASSEM
Keith Whitwell [Wed, 8 Jun 2005 22:06:29 +0000 (22:06 +0000)]
Turn off DISASSEM

19 years agoNew arguments for sse_shufps()
Keith Whitwell [Wed, 8 Jun 2005 21:58:30 +0000 (21:58 +0000)]
New arguments for sse_shufps()

19 years agoUse ALIGN_MALLOC for parameter lists.
Keith Whitwell [Wed, 8 Jun 2005 21:57:45 +0000 (21:57 +0000)]
Use ALIGN_MALLOC for parameter lists.

19 years agoAdd some more opcodes
Keith Whitwell [Wed, 8 Jun 2005 21:56:21 +0000 (21:56 +0000)]
Add some more opcodes

19 years ago- Secondary colour
Ben Skeggs [Wed, 8 Jun 2005 15:05:19 +0000 (15:05 +0000)]
- Secondary colour
- Calculate tc_count in EmitArrays (enabled units != nr texcoords).

19 years agoregenerated
Brian Paul [Wed, 8 Jun 2005 13:35:28 +0000 (13:35 +0000)]
regenerated

19 years agoput full prototype on one line to fix gl_mangle.h generation (Dave Reveman)
Brian Paul [Wed, 8 Jun 2005 13:35:07 +0000 (13:35 +0000)]
put full prototype on one line to fix gl_mangle.h generation (Dave Reveman)

19 years agoremove stray line
Brian Paul [Wed, 8 Jun 2005 13:07:33 +0000 (13:07 +0000)]
remove stray line

19 years agoRemove ARL opcode from interpreter.
Keith Whitwell [Wed, 8 Jun 2005 10:03:29 +0000 (10:03 +0000)]
Remove ARL opcode from interpreter.
Revert SEL opcode to MSK.
Split out t_vb_arbprogram.h header file.

19 years agonew file
Keith Whitwell [Wed, 8 Jun 2005 10:02:28 +0000 (10:02 +0000)]
new file

19 years agoregenerate for latest glext.h
Brian Paul [Wed, 8 Jun 2005 02:18:22 +0000 (02:18 +0000)]
regenerate for latest glext.h

19 years agofix some renderbuffer problems for Xserver build (Dave Reveman)
Brian Paul [Wed, 8 Jun 2005 02:17:10 +0000 (02:17 +0000)]
fix some renderbuffer problems for Xserver build (Dave Reveman)

19 years agocheck for double-buffered buffer in XMesaDestroyBuffer() (Dave Reveman)
Brian Paul [Wed, 8 Jun 2005 02:14:55 +0000 (02:14 +0000)]
check for double-buffered buffer in XMesaDestroyBuffer() (Dave Reveman)

19 years agoupdates from Paul Garceau
Daniel Borca [Tue, 7 Jun 2005 19:01:33 +0000 (19:01 +0000)]
updates from Paul Garceau

19 years agoadded GL libs to APP_LIB_DEPS (bug 3485)
Brian Paul [Tue, 7 Jun 2005 15:30:12 +0000 (15:30 +0000)]
added GL libs to APP_LIB_DEPS (bug 3485)

19 years agofix error in OSMESA_LIB_NAME line
Brian Paul [Tue, 7 Jun 2005 15:25:08 +0000 (15:25 +0000)]
fix error in OSMESA_LIB_NAME line

19 years agofix GL_ALPHA render-to-texture problem (Jon Smirl)
Brian Paul [Tue, 7 Jun 2005 15:03:40 +0000 (15:03 +0000)]
fix GL_ALPHA render-to-texture problem (Jon Smirl)

19 years agoInitialize some variables.
Keith Whitwell [Tue, 7 Jun 2005 12:46:30 +0000 (12:46 +0000)]
Initialize some variables.

19 years agoAdd new runtime assembly files.
Keith Whitwell [Tue, 7 Jun 2005 12:45:29 +0000 (12:45 +0000)]
Add new runtime assembly files.

19 years agoSplit out runtime assembly functions.
Keith Whitwell [Tue, 7 Jun 2005 12:45:04 +0000 (12:45 +0000)]
Split out runtime assembly functions.

19 years agoNew files - split off runtime assembly functions from
Keith Whitwell [Tue, 7 Jun 2005 12:44:26 +0000 (12:44 +0000)]
New files - split off runtime assembly functions from
t_vertex_sse.c.

19 years agoSimplify interpreted language:
Keith Whitwell [Tue, 7 Jun 2005 10:59:37 +0000 (10:59 +0000)]
Simplify interpreted language:

- Expand operand argument specifiers so that all registers and
  parameters can be referenced directly.  Remove old PAR/PRL
  instructions.

- No 3 operand instructions, translate MAD -> MUL, ADD.  (No room for
  3 full operands in instruction struct).

- Translate SWZ instructions into 1 or 2 reduced swizzles at compile
  time.

- Add hardwired code for moving input and output values to/from the
  register file.  Drop old INx, OUT instructions.

19 years agoAdd a VP_MAX_OPCODE entry to allow engines with internal opcodes to
Keith Whitwell [Tue, 7 Jun 2005 10:56:17 +0000 (10:56 +0000)]
Add a VP_MAX_OPCODE entry to allow engines with internal opcodes to
place them sensibly.

19 years agoupdates from Paul Garceau
Daniel Borca [Tue, 7 Jun 2005 05:29:38 +0000 (05:29 +0000)]
updates from Paul Garceau

19 years agoAdd SetBuffer to egl driver too
Jon Smirl [Tue, 7 Jun 2005 02:10:14 +0000 (02:10 +0000)]
Add SetBuffer to egl driver too

19 years agoAdd a NULL SetBuffer function to the fbdev driver
Jon Smirl [Mon, 6 Jun 2005 21:40:55 +0000 (21:40 +0000)]
Add a NULL SetBuffer function to the fbdev driver

19 years agothis is auto-generated
Brian Paul [Mon, 6 Jun 2005 14:40:56 +0000 (14:40 +0000)]
this is auto-generated

19 years agoTEX to output
Ben Skeggs [Mon, 6 Jun 2005 07:38:29 +0000 (07:38 +0000)]
TEX to output

19 years agoFix xyz/w interaction (needs a cleanup still..)
Ben Skeggs [Sun, 5 Jun 2005 08:25:54 +0000 (08:25 +0000)]
Fix xyz/w interaction (needs a cleanup still..)
Use SRC0A instead of WZY/XXX combination for W in XYZ positions.
Remove dodgy hack from POW opcode, now works correctly without it

19 years agoMake install install GLES too
Jon Smirl [Sun, 5 Jun 2005 02:10:58 +0000 (02:10 +0000)]
Make install install GLES too

19 years agoset OLD_RENDERBUFFER=0, need to clean up a few more things before totally removing...
Brian Paul [Sat, 4 Jun 2005 22:09:27 +0000 (22:09 +0000)]
set OLD_RENDERBUFFER=0, need to clean up a few more things before totally removing that

19 years agoremove old span functions from swrast_device_driver struct
Brian Paul [Sat, 4 Jun 2005 18:25:39 +0000 (18:25 +0000)]
remove old span functions from swrast_device_driver struct

19 years agoremove old span code
Brian Paul [Sat, 4 Jun 2005 18:12:28 +0000 (18:12 +0000)]
remove old span code

19 years agofix an assertion
Brian Paul [Sat, 4 Jun 2005 17:53:30 +0000 (17:53 +0000)]
fix an assertion

19 years agoremove old span code
Brian Paul [Sat, 4 Jun 2005 17:45:50 +0000 (17:45 +0000)]
remove old span code

19 years agoadded comment
Brian Paul [Sat, 4 Jun 2005 17:44:42 +0000 (17:44 +0000)]
added comment

19 years agoFixup file lists for tarball/zip file creation.
Karl Schultz [Fri, 3 Jun 2005 15:24:55 +0000 (15:24 +0000)]
Fixup file lists for tarball/zip file creation.
- Adjust for recent changes to Windows build files.
- Add in at least some of the new slang files - enough to build on
Windows, but some of the other slang-related files may still need to be
added.  (Will probably get corrected just prior to next release, if needed)

19 years agoUpdates for new Windows build system.
Karl Schultz [Thu, 2 Jun 2005 23:17:02 +0000 (23:17 +0000)]
Updates for new Windows build system.

19 years agoRemove last of the old span code.
Brian Paul [Thu, 2 Jun 2005 04:09:05 +0000 (04:09 +0000)]
Remove last of the old span code.

19 years agooops, undo previous change
Brian Paul [Thu, 2 Jun 2005 04:07:08 +0000 (04:07 +0000)]
oops, undo previous change

19 years agostart removing old (pre-renderbuffer) span code
Brian Paul [Thu, 2 Jun 2005 04:05:45 +0000 (04:05 +0000)]
start removing old (pre-renderbuffer) span code

19 years ago Committing in .
Jouk Jansen [Wed, 1 Jun 2005 12:07:15 +0000 (12:07 +0000)]
 Committing in .

 OpenVMS makefile added

 Added Files:
  Mesa/src/mesa/shader/grammar/descrip.mms
 ----------------------------------------------------------------------

19 years ago Committing in .
Jouk Jansen [Wed, 1 Jun 2005 12:05:34 +0000 (12:05 +0000)]
 Committing in .

 Update OpneVMS compilesupport

 Modified Files:
  Mesa/src/mesa/shader/descrip.mms
  Mesa/src/mesa/shader/slang/descrip.mms
  Mesa/src/mesa/shader/slang/slang_compile.c
  Mesa/src/mesa/shader/slang/slang_storage.c
  Mesa/src/mesa/shader/slang/slang_storage.h
 ----------------------------------------------------------------------

19 years agoMove fallback and other debugging under TDFX_DEBUG using the same mechanism
Eric Anholt [Wed, 1 Jun 2005 08:22:57 +0000 (08:22 +0000)]
Move fallback and other debugging under TDFX_DEBUG using the same mechanism
as other drivers.

19 years agoAdd no_rast option.
Eric Anholt [Wed, 1 Jun 2005 07:44:52 +0000 (07:44 +0000)]
Add no_rast option.

19 years agoAdd a mode to test flat shading + separate specular.
Keith Whitwell [Wed, 1 Jun 2005 07:02:23 +0000 (07:02 +0000)]
Add a mode to test flat shading + separate specular.

19 years agoFix the 3dfx driver by correcting what appears to be a typo GL_RGBA8 instead
Eric Anholt [Wed, 1 Jun 2005 02:59:12 +0000 (02:59 +0000)]
Fix the 3dfx driver by correcting what appears to be a typo GL_RGBA8 instead
of GL_RGBA in driNewRenderbuffer of the backbuffer.

19 years agoadded code to detect GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT error
Brian Paul [Wed, 1 Jun 2005 00:50:23 +0000 (00:50 +0000)]
added code to detect GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT error

19 years agoadd support for GL_RENDERBUFFER_RED/GREEN/BLUE/etc_SIZE_EXT querie
Brian Paul [Tue, 31 May 2005 23:55:21 +0000 (23:55 +0000)]
add support for GL_RENDERBUFFER_RED/GREEN/BLUE/etc_SIZE_EXT querie

19 years agoremove temporary GL_EXT_framebuffer_object info
Brian Paul [Tue, 31 May 2005 23:54:44 +0000 (23:54 +0000)]
remove temporary GL_EXT_framebuffer_object info

19 years agoupdated to version 28
Brian Paul [Tue, 31 May 2005 23:54:24 +0000 (23:54 +0000)]
updated to version 28

19 years agoBugzilla #2708: Disable the fallback on GL_SPHERE_MAP. It appears to hurt more
Eric Anholt [Tue, 31 May 2005 23:32:47 +0000 (23:32 +0000)]
Bugzilla #2708: Disable the fallback on GL_SPHERE_MAP.  It appears to hurt more
than it helps, and we seem to have a handle on how to fix it.

19 years agoAdd Intel(R) 945G support (Keith Whitwell, Tungsten Graphics)
Alan Hourihane [Tue, 31 May 2005 18:10:03 +0000 (18:10 +0000)]
Add Intel(R) 945G support (Keith Whitwell, Tungsten Graphics)

19 years agoCauses lockups on some rare cases.
Aapo Tahkola [Tue, 31 May 2005 05:53:38 +0000 (05:53 +0000)]
Causes lockups on some rare cases.

19 years agoPull locking out of HW_LOCK/UNLOCK and into SpanRenderStart/Finish. Also do
Eric Anholt [Tue, 31 May 2005 05:31:43 +0000 (05:31 +0000)]
Pull locking out of HW_LOCK/UNLOCK and into SpanRenderStart/Finish.  Also do
some cleanups on the span macros.  This does not deal with the brokenness of
depth spans, but makes the code more readable.

19 years agoCorrect the descriptions of the glBlend{Equation,Func} fallbacks in r128, and
Eric Anholt [Tue, 31 May 2005 04:26:13 +0000 (04:26 +0000)]
Correct the descriptions of the glBlend{Equation,Func} fallbacks in r128, and
remove those descriptions and the corresponding bits on r200, where they're no
longer used.

19 years agoRemove unused CTX_ARG2 define.
Eric Anholt [Tue, 31 May 2005 04:13:45 +0000 (04:13 +0000)]
Remove unused CTX_ARG2 define.

19 years agoBugzilla #2195: Convert the radeon driver to the t_vertex interface. This cuts
Eric Anholt [Tue, 31 May 2005 04:04:24 +0000 (04:04 +0000)]
Bugzilla #2195: Convert the radeon driver to the t_vertex interface.  This cuts
about 200 lines from the code and 25k from the binary, while matching other
drivers more closely.  In the worst case (tcl_mode=0) it appears to have
a performance cost of 4.4% +/- 0.3% on quake3 (800x600 demofours, 1ghz p3,
rv200).  Tested on ut2004, ut, q3, projtex.

Submitted by: Andreas Stenglein <a.stenglein@gmx.net>

19 years agoMove fallback debugging under MACH64_DEBUG=fall (matching other drivers) and
Eric Anholt [Tue, 31 May 2005 03:47:39 +0000 (03:47 +0000)]
Move fallback debugging under MACH64_DEBUG=fall (matching other drivers) and
add pretty descriptions of the bits.  GC one of the bits that was unused.
Also, now only the first thing triggering a fallback and the last thing
requiring one do the debug output.  This also matches other drivers.

19 years agoPull locking out from HW_LOCK/UNLOCK into SpanRenderStart/Finish. Provides a
Eric Anholt [Mon, 30 May 2005 08:07:03 +0000 (08:07 +0000)]
Pull locking out from HW_LOCK/UNLOCK into SpanRenderStart/Finish.  Provides a
factor of 5+ improvement in no_rast glxgears and 2.3 in no_rast quake3 (n=1,
320x240, 16bpp, low qualities, 1ghz p3)

19 years agoFix software fallbacks by being safe with macro arguments in READ/WRITE_DEPTH.
Eric Anholt [Mon, 30 May 2005 06:50:17 +0000 (06:50 +0000)]
Fix software fallbacks by being safe with macro arguments in READ/WRITE_DEPTH.
Convert to spantmp2.h while I'm here.  Tested with 16 and 32bpp no_rast
glxgears.

19 years agoAdd the no_rast debug option to mach64. It shows that software fallbacks are
Eric Anholt [Mon, 30 May 2005 06:41:19 +0000 (06:41 +0000)]
Add the no_rast debug option to mach64.  It shows that software fallbacks are
pretty broken.