mesa.git
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.

19 years agoPull hardware locking out into SpanRenderStart/Finish rather than
Eric Anholt [Mon, 30 May 2005 06:15:29 +0000 (06:15 +0000)]
Pull hardware locking out into SpanRenderStart/Finish rather than
HW_LOCK/UNLOCK. Provides a 61% performance improvement in no_rast=true quake3
(n=2, 320x240, 16bpp, p4 1ghz), and a factor of 3 improvement in no_rast
glxgears.

19 years agoAdd the description of the no_rast option fallback so that MGA_DEBUG=fall
Eric Anholt [Mon, 30 May 2005 06:11:22 +0000 (06:11 +0000)]
Add the description of the no_rast option fallback so that MGA_DEBUG=fall
doesn't segfault with no_rast.

19 years agoAdd the no_rast debug option, which I used in some testing.
Eric Anholt [Mon, 30 May 2005 03:32:52 +0000 (03:32 +0000)]
Add the no_rast debug option, which I used in some testing.

19 years agoRemove unused CTX_ARG2.
Eric Anholt [Mon, 30 May 2005 01:59:39 +0000 (01:59 +0000)]
Remove unused CTX_ARG2.

19 years agoPut some fallback debugging output under DEBUG_FALLBACKS.
Eric Anholt [Sat, 28 May 2005 23:45:39 +0000 (23:45 +0000)]
Put some fallback debugging output under DEBUG_FALLBACKS.

19 years agoAdd a missing EnsureCmdBufSpace, matching r200.
Eric Anholt [Sat, 28 May 2005 22:56:16 +0000 (22:56 +0000)]
Add a missing EnsureCmdBufSpace, matching r200.

19 years agoAdd a freebsd-dri-amd64 config, and quiet makedepend slightly by making an
Eric Anholt [Sat, 28 May 2005 20:17:06 +0000 (20:17 +0000)]
Add a freebsd-dri-amd64 config, and quiet makedepend slightly by making an
EXPAT_INCLUDES config variable (set on FreeBSD) which is then used in
Makefile.template's INCLUDES.

19 years agoSome fixes
Jerome Glisse [Sat, 28 May 2005 12:18:32 +0000 (12:18 +0000)]
Some fixes

19 years agouse shared-core
Dave Airlie [Sat, 28 May 2005 10:55:23 +0000 (10:55 +0000)]
use shared-core

19 years agoUp MAX_AOS_ARRAYS to 16. Do we need more?
Ben Skeggs [Sat, 28 May 2005 05:20:05 +0000 (05:20 +0000)]
Up MAX_AOS_ARRAYS to 16.  Do we need more?

19 years agoPlay with swizzling a bit.
Ben Skeggs [Sat, 28 May 2005 03:19:56 +0000 (03:19 +0000)]
Play with swizzling a bit.

19 years agoProgrammable per-vertex point sizes and proper result reg assigns.
Aapo Tahkola [Sat, 28 May 2005 01:02:00 +0000 (01:02 +0000)]
Programmable per-vertex point sizes and proper result reg assigns.

19 years agoMore optimal r300Clear.
Aapo Tahkola [Fri, 27 May 2005 20:10:05 +0000 (20:10 +0000)]
More optimal r300Clear.

19 years agoproperly pop the GL_TEXTURE_GEN_ enable state
Brian Paul [Fri, 27 May 2005 14:44:14 +0000 (14:44 +0000)]
properly pop the GL_TEXTURE_GEN_ enable state

19 years agoAccount for moved/new/removed files.
Karl Schultz [Thu, 26 May 2005 18:22:13 +0000 (18:22 +0000)]
Account for moved/new/removed files.

19 years agoFix gl_enums.py so that enums that are listed with the same name in
Ian Romanick [Thu, 26 May 2005 16:59:47 +0000 (16:59 +0000)]
Fix gl_enums.py so that enums that are listed with the same name in
multiple places don't get generated multiple times.

19 years agoMinor correction to EXT_framebuffer_object XML. Fix gl_table.py so that it
Ian Romanick [Thu, 26 May 2005 16:34:58 +0000 (16:34 +0000)]
Minor correction to EXT_framebuffer_object XML.  Fix gl_table.py so that it
generates the correct script name in the generated output.

19 years agoMake a couple minor corrections to gl_API.xml. Fixes the name of an
Ian Romanick [Thu, 26 May 2005 16:24:35 +0000 (16:24 +0000)]
Make a couple minor corrections to gl_API.xml.  Fixes the name of an
extension that was missing the GL_ part and uses the core GL type names for
vertex buffer object functions instead of the ARB names.

Also commits the resulting changes to the generated code.  Some how, the
#if sequence disappeared in the 1.52 version of glapi_x86.S.

19 years agoBump driver date.
Keith Whitwell [Thu, 26 May 2005 11:42:19 +0000 (11:42 +0000)]
Bump driver date.

19 years agomake egl build first so we don't get wierd drivers linking to libs not available
Dave Airlie [Thu, 26 May 2005 04:24:09 +0000 (04:24 +0000)]
make egl build first so we don't get wierd drivers linking to libs not available
yet

19 years agomake linux-solo and linux-solo-x86 config files hierarchical
Dave Airlie [Thu, 26 May 2005 03:47:34 +0000 (03:47 +0000)]
make linux-solo and linux-solo-x86 config files hierarchical

19 years agoconstant tracking
Ben Skeggs [Thu, 26 May 2005 02:33:57 +0000 (02:33 +0000)]
constant tracking

19 years agouse shared-core rather than shared
Dave Airlie [Thu, 26 May 2005 01:40:34 +0000 (01:40 +0000)]
use shared-core rather than shared

19 years agouse shared-core instead of shared
Dave Airlie [Thu, 26 May 2005 01:40:00 +0000 (01:40 +0000)]
use shared-core instead of shared

19 years agoFix a couple typeos in enum names.
Ian Romanick [Wed, 25 May 2005 21:00:16 +0000 (21:00 +0000)]
Fix a couple typeos in enum names.

19 years agochange local var names from "asm" to "assem" - I guess it caused
Michal Krol [Wed, 25 May 2005 15:09:32 +0000 (15:09 +0000)]
change local var names from "asm" to "assem" - I guess it caused
gcc 3.3.5 to break, but not tested it

19 years agoa small utility to convert .syn files to its binary forms;
Michal Krol [Wed, 25 May 2005 14:58:22 +0000 (14:58 +0000)]
a small utility to convert .syn files to its binary forms;
does not require any command line params;

19 years agosilencium gcc warnings
Michal Krol [Wed, 25 May 2005 14:27:59 +0000 (14:27 +0000)]
silencium gcc warnings

19 years agoadd shader/slang/slang_assemble_assignment.c
Michal Krol [Wed, 25 May 2005 14:24:34 +0000 (14:24 +0000)]
add shader/slang/slang_assemble_assignment.c

19 years agomore slang code
Michal Krol [Wed, 25 May 2005 14:23:00 +0000 (14:23 +0000)]
more slang code

19 years agoncrease stack size
Michal Krol [Wed, 25 May 2005 14:19:24 +0000 (14:19 +0000)]
ncrease stack size

19 years agoupdate grammar_mesa.c path
Michal Krol [Wed, 25 May 2005 14:00:22 +0000 (14:00 +0000)]
update grammar_mesa.c path

19 years agomoved from mesa/shader to mesa/shader/grammar
Michal Krol [Wed, 25 May 2005 13:58:36 +0000 (13:58 +0000)]
moved from mesa/shader to mesa/shader/grammar

19 years agoremove the GLSL spec wording;
Michal Krol [Wed, 25 May 2005 13:43:32 +0000 (13:43 +0000)]
remove the GLSL spec wording;
reorder some elementary operators;
disable assignment "=" and equality "==" "!=" operators - they are
handled internally by the assembly generator;
fix minor typos

19 years agoadd mesa/shader/grammar to include list
Michal Krol [Wed, 25 May 2005 13:37:56 +0000 (13:37 +0000)]
add mesa/shader/grammar to include list

19 years agostand-alone vertsions of grammar_mesa - used by utilities;
Michal Krol [Wed, 25 May 2005 13:35:39 +0000 (13:35 +0000)]
stand-alone vertsions of grammar_mesa - used by utilities;
DO NOT BUILD UNDER MESA

19 years agoProvide initial values for some variables.
Keith Whitwell [Wed, 25 May 2005 13:35:21 +0000 (13:35 +0000)]
Provide initial values for some variables.

19 years agoadd special case for flat shaded + separate specular triangles
Keith Whitwell [Wed, 25 May 2005 13:34:52 +0000 (13:34 +0000)]
add special case for flat shaded + separate specular triangles

19 years agochange the behaviour of enter and local_addr instructions
Michal Krol [Wed, 25 May 2005 13:20:59 +0000 (13:20 +0000)]
change the behaviour of enter and local_addr instructions

19 years agoDisable polygon stipple - it seems to break if certain specific stipple
Keith Whitwell [Wed, 25 May 2005 10:17:19 +0000 (10:17 +0000)]
Disable polygon stipple - it seems to break if certain specific stipple
patterns are used, including the one generated by conform.

19 years agoFix various issues with cliprects and MakeCurrent
Keith Whitwell [Wed, 25 May 2005 10:14:39 +0000 (10:14 +0000)]
Fix various issues with cliprects and MakeCurrent

19 years ago- Remove one of the loops in emit_arith
Ben Skeggs [Wed, 25 May 2005 06:46:10 +0000 (06:46 +0000)]
- Remove one of the loops in emit_arith
- Handle REPL_ALPHA in emit_arith (possibly incorrect for some things)
- Start on getting demos/arbfplight.c to look right.  Won't be animated yet,
  need to re-work const emit so we can update consts without re-translating
  the entire program.

Assertion in r300_state.c::setup_rs_unit needs to be disabled for it to
work.

19 years agoCommit the changes propagated from Jeremy Kolb's changes to the Python
Ian Romanick [Wed, 25 May 2005 03:30:06 +0000 (03:30 +0000)]
Commit the changes propagated from Jeremy Kolb's changes to the Python
scripts in src/mesa/glapi.

19 years agoOnly use x86 / SSE assembly when USE_X86_ASM / USE_SSE_ASM are defined.
Ian Romanick [Tue, 24 May 2005 23:03:15 +0000 (23:03 +0000)]
Only use x86 / SSE assembly when USE_X86_ASM / USE_SSE_ASM are defined.
This makes the driver build on x86-64 again.

19 years agoCleanup some Windows junk.
Karl Schultz [Tue, 24 May 2005 22:16:27 +0000 (22:16 +0000)]
Cleanup some Windows junk.

19 years agoproject file for glut library
Karl Schultz [Tue, 24 May 2005 22:06:59 +0000 (22:06 +0000)]
project file for glut library

19 years agofix location of gears project
Karl Schultz [Tue, 24 May 2005 22:04:03 +0000 (22:04 +0000)]
fix location of gears project

19 years agoproject file to build gears
Karl Schultz [Tue, 24 May 2005 21:57:45 +0000 (21:57 +0000)]
project file to build gears

19 years agoVisual Studio 6 project file to build GLUT and some demos.
Karl Schultz [Tue, 24 May 2005 21:51:58 +0000 (21:51 +0000)]
Visual Studio 6 project file to build GLUT and some demos.

19 years agomoved to windows build dir
Karl Schultz [Tue, 24 May 2005 21:17:42 +0000 (21:17 +0000)]
moved to windows build dir

19 years agomoved to windows build dir
Karl Schultz [Tue, 24 May 2005 21:15:52 +0000 (21:15 +0000)]
moved to windows build dir

19 years agoMajor code cleanup and begin using new render buffer interface.
Karl Schultz [Tue, 24 May 2005 21:12:43 +0000 (21:12 +0000)]
Major code cleanup and begin using new render buffer interface.

19 years agoChange prototype for TextureMemCpy to return void* (was void).
Karl Schultz [Tue, 24 May 2005 21:06:41 +0000 (21:06 +0000)]
Change prototype for TextureMemCpy to return void* (was void).

19 years agoVisual Studio 6 project file for OSmesa library.
Karl Schultz [Tue, 24 May 2005 21:02:51 +0000 (21:02 +0000)]
Visual Studio 6 project file for OSmesa library.

19 years agoVisual Studio 6 project file for core Mesa.
Karl Schultz [Tue, 24 May 2005 21:01:55 +0000 (21:01 +0000)]
Visual Studio 6 project file for core Mesa.

19 years agoNeeded to build .cc files in Visual Studio 6.
Karl Schultz [Tue, 24 May 2005 21:01:05 +0000 (21:01 +0000)]
Needed to build .cc files in Visual Studio 6.

19 years agoVisual Studio 6 project file for GLU library.
Karl Schultz [Tue, 24 May 2005 21:00:03 +0000 (21:00 +0000)]
Visual Studio 6 project file for GLU library.

19 years agoVisual Studio 6 project file for Windows GDI driver.
Karl Schultz [Tue, 24 May 2005 20:59:07 +0000 (20:59 +0000)]
Visual Studio 6 project file for Windows GDI driver.

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)