profile/ivi/mesa.git
19 years agoHAVE_ALIAS was never defined anywhere, add some logic to turn it on
Adam Jackson [Sun, 23 Jan 2005 03:54:38 +0000 (03:54 +0000)]
HAVE_ALIAS was never defined anywhere, add some logic to turn it on
automagically.

19 years agosilence makedepend warnings about non-portable whitespace
Adam Jackson [Sun, 23 Jan 2005 02:12:23 +0000 (02:12 +0000)]
silence makedepend warnings about non-portable whitespace

19 years agoFixed initialization of draw destination to front buffer on single
Felix Kuehling [Sun, 23 Jan 2005 01:46:14 +0000 (01:46 +0000)]
Fixed initialization of draw destination to front buffer on single
buffered visuals. Also don't change span draw/read buffers in
savageDDDrawBuffer. Now glean's polygon offset test works (and PASSes
with fixed point depth buffer) with single buffered visuals without
winding up in an infinite loop.

19 years agoMy last attempt to fix polygon offsets with the reversed viewport depth
Felix Kuehling [Sun, 23 Jan 2005 01:42:01 +0000 (01:42 +0000)]
My last attempt to fix polygon offsets with the reversed viewport depth
range used by the savage driver by negating ctx->MRD broke polygon
offsets with software fallbacks. This one adds a REVERSE_DEPTH parameter
to t_dd_tritmp.h (defaults to 0) that allows reversing polygon offsets
for hardware rendering but not for software fallbacks. For software
fallbacks depth values are reversed after polygon offsets have been
applied by the depth span functions.

19 years agoDetermine ahead of time whether a display list will include vertices
Keith Whitwell [Sat, 22 Jan 2005 14:38:00 +0000 (14:38 +0000)]
Determine ahead of time whether a display list will include vertices
which have to be processed in the 'loopback' path.  If so, send
all vertices that way as the transition from playback->loopback has
several problems.

19 years agoProperly configure routing - based on advice by Keith Whitwell.
Vladimir Dergachev [Sat, 22 Jan 2005 03:33:10 +0000 (03:33 +0000)]
Properly configure routing - based on advice by Keith Whitwell.

19 years agoFixed polygon offset with reversed viewport depth range.
Felix Kuehling [Sat, 22 Jan 2005 00:52:31 +0000 (00:52 +0000)]
Fixed polygon offset with reversed viewport depth range.

19 years agoProperly input stencil info contributed by Wladimir.
Vladimir Dergachev [Fri, 21 Jan 2005 21:30:55 +0000 (21:30 +0000)]
Properly input stencil info contributed by Wladimir.

19 years agofix glGetString funniness
Brian Paul [Fri, 21 Jan 2005 16:35:56 +0000 (16:35 +0000)]
fix glGetString funniness

19 years agoadd getstring.c; remove arb*.h nv*.h stuff
Michal Krol [Fri, 21 Jan 2005 15:55:13 +0000 (15:55 +0000)]
add getstring.c; remove arb*.h nv*.h stuff

19 years agoadd slang/traverse_wrap.h
Michal Krol [Fri, 21 Jan 2005 15:52:17 +0000 (15:52 +0000)]
add slang/traverse_wrap.h

19 years agoHandy TIntermTraverser class wrapper
Michal Krol [Fri, 21 Jan 2005 15:51:28 +0000 (15:51 +0000)]
Handy TIntermTraverser class wrapper

19 years agosilence the 'using AGP/PCI' string unless VIA_DEBUG is used.
Alan Hourihane [Fri, 21 Jan 2005 09:50:48 +0000 (09:50 +0000)]
silence the 'using AGP/PCI' string unless VIA_DEBUG is used.

19 years agoSmall cleanup:
Felix Kuehling [Fri, 21 Jan 2005 01:39:09 +0000 (01:39 +0000)]
Small cleanup:
* Remove some unused (mostly empty) functions
* Added context parameter to WAIT_IDLE_EMPTY[_LOCKED] for consistency
* Added debug messages to WAIT_IDLE_EMPTY[_LOCKED]
* Don't flush empty command buffers

19 years ago* Added options for disabling the fast path (render stage) and vertex DMA
Felix Kuehling [Thu, 20 Jan 2005 15:18:10 +0000 (15:18 +0000)]
* Added options for disabling the fast path (render stage) and vertex DMA
* Fixed disabling of the render stage
* Added debug output for per-primitive fallbacks
* Bumped driver date

19 years agoglext.h version 26
Brian Paul [Thu, 20 Jan 2005 15:07:42 +0000 (15:07 +0000)]
glext.h version 26

19 years agoAdded support for ELTS to the _savage_render_stage. Requires at least
Felix Kuehling [Thu, 20 Jan 2005 13:59:49 +0000 (13:59 +0000)]
Added support for ELTS to the _savage_render_stage. Requires at least
Savage DRM version 2.2.0. Otherwise the render stage is disabled.

19 years agoEnclose passed macro values in brackets to ensure correct read/write span
Alan Hourihane [Thu, 20 Jan 2005 13:24:08 +0000 (13:24 +0000)]
Enclose passed macro values in brackets to ensure correct read/write span
values.

19 years agodocument new glDeleteTextures/Buffers/Programs behaviour
Brian Paul [Thu, 20 Jan 2005 04:03:37 +0000 (04:03 +0000)]
document new glDeleteTextures/Buffers/Programs behaviour

19 years agoUpdate glDeletePrograms/Buffers() so that the ID is freed immediately, like
Brian Paul [Thu, 20 Jan 2005 04:02:02 +0000 (04:02 +0000)]
Update glDeletePrograms/Buffers() so that the ID is freed immediately, like
texture objects.

19 years agoUse a simple CSS style sheet.
Brian Paul [Thu, 20 Jan 2005 03:55:10 +0000 (03:55 +0000)]
Use a simple CSS style sheet.

19 years agoRemoved gl_texture_object's DeletePending. Changed a comment.
Brian Paul [Wed, 19 Jan 2005 21:41:24 +0000 (21:41 +0000)]
Removed gl_texture_object's DeletePending.  Changed a comment.

19 years agoadded texobjshare.c
Brian Paul [Wed, 19 Jan 2005 14:52:13 +0000 (14:52 +0000)]
added texobjshare.c

19 years agotest program for texture sharing, deleting, etc
Brian Paul [Wed, 19 Jan 2005 14:51:41 +0000 (14:51 +0000)]
test program for texture sharing, deleting, etc

19 years agoChange behaviour of glDeleteTextures as discussed on ARB list.
Brian Paul [Wed, 19 Jan 2005 14:50:52 +0000 (14:50 +0000)]
Change behaviour of glDeleteTextures as discussed on ARB list.
glDeleteTexture makes the texture ID immediately free for re-use
while the actual texture object lingers until its reference count goes
to zero (when no longer bound by any rendering context).

19 years agomake sure the new instruction Data pointer is set to NULL
Brian Paul [Wed, 19 Jan 2005 14:45:23 +0000 (14:45 +0000)]
make sure the new instruction Data pointer is set to NULL

19 years agofix a typo
Brian Paul [Wed, 19 Jan 2005 14:44:55 +0000 (14:44 +0000)]
fix a typo

19 years agominor formatting fix
Brian Paul [Wed, 19 Jan 2005 14:44:41 +0000 (14:44 +0000)]
minor formatting fix

19 years agoBring the texcombine fixes to the trunk.
Keith Whitwell [Wed, 19 Jan 2005 12:09:33 +0000 (12:09 +0000)]
Bring the texcombine fixes to the trunk.

19 years agoAlways use ARGB8888 hardware texture format when mesa specifies
Keith Whitwell [Wed, 19 Jan 2005 12:06:17 +0000 (12:06 +0000)]
Always use ARGB8888 hardware texture format when mesa specifies
MESA_FORMAT_ARGB8888.  Previously attempted to use ARGB0888 under some
circumstances, but glean failed and demos/texenv.c was also incorrect.

19 years agoRemove depend on make clean
Keith Whitwell [Wed, 19 Jan 2005 11:39:23 +0000 (11:39 +0000)]
Remove depend on make clean

19 years agoDepend tweaks
Keith Whitwell [Wed, 19 Jan 2005 11:10:27 +0000 (11:10 +0000)]
Depend tweaks

19 years agomake sure we avoid assertion failure wrt VB->ColorPtr[1]->stride
Daniel Borca [Wed, 19 Jan 2005 07:57:52 +0000 (07:57 +0000)]
make sure we avoid assertion failure wrt VB->ColorPtr[1]->stride

19 years agoglVertex* is the provoking "cmd" (that is, by the time of glVertex*, we must have...
Daniel Borca [Wed, 19 Jan 2005 07:52:49 +0000 (07:52 +0000)]
glVertex* is the provoking "cmd" (that is, by the time of glVertex*, we must have all other attributes already set).

i am committing this before i forget.  however, i'm still leaving my code disabled, because the old code seems legal.

19 years agoThere is no point trying to detect SSE at all, when MESA_NO_SSE is defined. I am...
Daniel Borca [Wed, 19 Jan 2005 07:43:13 +0000 (07:43 +0000)]
There is no point trying to detect SSE at all, when MESA_NO_SSE is defined.  I am committing this because the current WIN32 SSE detection code crashes UnrealTournament2003.

19 years agominor reorg of shader files, disable building for now
Brian Paul [Tue, 18 Jan 2005 22:58:13 +0000 (22:58 +0000)]
minor reorg of shader files, disable building for now

19 years agoremove some debug
Alan Hourihane [Tue, 18 Jan 2005 21:57:48 +0000 (21:57 +0000)]
remove some debug

19 years agoFix tristrips (which fixes coloredTexPerf2 & coloredLitPerf2 glean tests)
Alan Hourihane [Tue, 18 Jan 2005 15:06:01 +0000 (15:06 +0000)]
Fix tristrips (which fixes coloredTexPerf2 & coloredLitPerf2 glean tests)

19 years agoremove #ifndef linux, it isnt defined on Linux, where should I define it?
Michal Krol [Tue, 18 Jan 2005 14:21:50 +0000 (14:21 +0000)]
remove #ifndef linux, it isnt defined on Linux, where should I define it?

19 years agocomment out _THROW calls, dont want to compile under Linux
Michal Krol [Tue, 18 Jan 2005 14:19:46 +0000 (14:19 +0000)]
comment out _THROW calls, dont want to compile under Linux

19 years agoadd shader/slang/slang_mesa.cpp
Michal Krol [Tue, 18 Jan 2005 14:17:37 +0000 (14:17 +0000)]
add shader/slang/slang_mesa.cpp

19 years agochange .cc suffix to .cpp
Michal Krol [Tue, 18 Jan 2005 14:16:51 +0000 (14:16 +0000)]
change .cc suffix to .cpp

19 years agoadd slang preprocessor C sources; add slang include directories
Michal Krol [Tue, 18 Jan 2005 14:02:52 +0000 (14:02 +0000)]
add slang preprocessor C sources; add slang include directories

19 years agofix // comments
Michal Krol [Tue, 18 Jan 2005 13:58:56 +0000 (13:58 +0000)]
fix // comments

19 years agofix MAX_VERTEX_ATTRIBS_ARB query
Michal Krol [Tue, 18 Jan 2005 12:04:53 +0000 (12:04 +0000)]
fix MAX_VERTEX_ATTRIBS_ARB query

19 years agoFix calculation of last_count in _tnl_wrap_buffers()
Keith Whitwell [Tue, 18 Jan 2005 08:41:55 +0000 (08:41 +0000)]
Fix calculation of last_count in _tnl_wrap_buffers()

19 years agoadded rule for compiling C++ sources
Brian Paul [Mon, 17 Jan 2005 22:33:50 +0000 (22:33 +0000)]
added rule for compiling C++ sources

19 years agoadd slang/ directory tree
Michal Krol [Mon, 17 Jan 2005 16:25:08 +0000 (16:25 +0000)]
add slang/ directory tree

19 years agouse FABSF(fogCoord) to fix fog calculation problem (Soju Matsumoto)
Brian Paul [Mon, 17 Jan 2005 16:16:35 +0000 (16:16 +0000)]
use FABSF(fogCoord) to fix fog calculation problem (Soju Matsumoto)

19 years agofix some weirdness accidentally checked in in the past
Brian Paul [Mon, 17 Jan 2005 16:14:46 +0000 (16:14 +0000)]
fix some weirdness accidentally checked in in the past

19 years ago2005-oct-19 3dlabs slang compiler, tweaked a little bit
Michal Krol [Mon, 17 Jan 2005 16:01:49 +0000 (16:01 +0000)]
2005-oct-19 3dlabs slang compiler, tweaked a little bit

19 years agoslang to mesa compatibility, tested only under Windows
Michal Krol [Mon, 17 Jan 2005 15:52:20 +0000 (15:52 +0000)]
slang to mesa compatibility, tested only under Windows

19 years agoadd 3dlabs_shhandle interface
Michal Krol [Mon, 17 Jan 2005 15:47:57 +0000 (15:47 +0000)]
add 3dlabs_shhandle interface

19 years agoadd [.slang] to INCDIR, fix comma in OBJECTS
Michal Krol [Mon, 17 Jan 2005 15:35:46 +0000 (15:35 +0000)]
add [.slang] to INCDIR, fix comma in OBJECTS

19 years agoadd src/mesa/shader/slang to INCLUDE_DIRS
Michal Krol [Mon, 17 Jan 2005 15:32:25 +0000 (15:32 +0000)]
add src/mesa/shader/slang to INCLUDE_DIRS

19 years agocleaned up warnings
Daniel Borca [Mon, 17 Jan 2005 08:05:47 +0000 (08:05 +0000)]
cleaned up warnings

19 years agoallow more internalFormat/format combinations (i hope i got it right)
Daniel Borca [Mon, 17 Jan 2005 08:04:39 +0000 (08:04 +0000)]
allow more internalFormat/format combinations (i hope i got it right)

19 years agofix compilation error for fx/Mesa
Daniel Borca [Mon, 17 Jan 2005 08:02:42 +0000 (08:02 +0000)]
fix compilation error for fx/Mesa

19 years agosince we've already messed up this one, let we do it further and make it look like...
Daniel Borca [Mon, 17 Jan 2005 07:48:53 +0000 (07:48 +0000)]
since we've already messed up this one, let we do it further and make it look like a fire...

19 years agoremove trailing slash from TOP definition
Daniel Borca [Mon, 17 Jan 2005 07:47:41 +0000 (07:47 +0000)]
remove trailing slash from TOP definition

19 years agosilence warning
Brian Paul [Mon, 17 Jan 2005 01:21:03 +0000 (01:21 +0000)]
silence warning

19 years agoclean up gl2 structs
Brian Paul [Mon, 17 Jan 2005 01:07:00 +0000 (01:07 +0000)]
clean up gl2 structs

19 years agosilence a bunch of warnings
Brian Paul [Mon, 17 Jan 2005 01:02:40 +0000 (01:02 +0000)]
silence a bunch of warnings

19 years agofix a few warnings
Brian Paul [Mon, 17 Jan 2005 00:40:29 +0000 (00:40 +0000)]
fix a few warnings

19 years agoadded getstring.c
Brian Paul [Sun, 16 Jan 2005 19:42:46 +0000 (19:42 +0000)]
added getstring.c

19 years agoadded a few OpenGL 2.0 tokens (temporary)
Brian Paul [Sun, 16 Jan 2005 19:40:15 +0000 (19:40 +0000)]
added a few OpenGL 2.0 tokens (temporary)

19 years ago_mesa_GetInteger/Float/Boolean/Doublev() are now generated with the new
Brian Paul [Sun, 16 Jan 2005 19:39:10 +0000 (19:39 +0000)]
_mesa_GetInteger/Float/Boolean/Doublev() are now generated with the new
get_gen.py Python script.
Moved GetString(), GetPointer(), GetError() into new getstring.c file.

19 years agomake tnl_clipspace_attr->insert field const, to silence warning
Brian Paul [Sun, 16 Jan 2005 17:59:50 +0000 (17:59 +0000)]
make tnl_clipspace_attr->insert field const, to silence warning

19 years agoThis fixes it but why mipmaps still work?
Aapo Tahkola [Sun, 16 Jan 2005 17:07:24 +0000 (17:07 +0000)]
This fixes it but why mipmaps still work?
It doesnt look like filter constants in r300_reg.h would define number of
levels.

19 years agoI was wrong...
Aapo Tahkola [Sun, 16 Jan 2005 16:12:05 +0000 (16:12 +0000)]
I was wrong...

19 years agoLooks like masking masking t->filter isnt needed anymore.
Aapo Tahkola [Sun, 16 Jan 2005 13:28:49 +0000 (13:28 +0000)]
Looks like masking masking t->filter isnt needed anymore.
texwrap still shows some problems with clamp mode with nearest filtering.

19 years agoAdded a fast path for emitting unclipped primitives directly to a
Felix Kuehling [Sun, 16 Jan 2005 01:28:26 +0000 (01:28 +0000)]
Added a fast path for emitting unclipped primitives directly to a
vertex buffer. ELTS are not supported yet (missing functionality in
the DRM). You need at least Savage DRM version 2.1.3, which fixes a
bug that screwed up triangle fans and strips.

Moved the texture normalization stage to savagerender.c.

19 years agoOn the way to getting stencil working.
Vladimir Dergachev [Sat, 15 Jan 2005 20:44:23 +0000 (20:44 +0000)]
On the way to getting stencil working.

19 years agoOn the way to getting stencil and texture formats working.
Vladimir Dergachev [Sat, 15 Jan 2005 19:33:19 +0000 (19:33 +0000)]
On the way to getting stencil and texture formats working.
Looks like the matter of texture formats is a lot simpler, with the wrong
display in quake explained by the fact that we are not handling texture combine modes.

19 years agoConverted to use spantmp2.h.
Felix Kuehling [Sat, 15 Jan 2005 14:37:33 +0000 (14:37 +0000)]
Converted to use spantmp2.h.

19 years agoUse HW_READ_LOCK and HW_READ_UNLOCK in assembler-optimized span read
Felix Kuehling [Sat, 15 Jan 2005 14:35:35 +0000 (14:35 +0000)]
Use HW_READ_LOCK and HW_READ_UNLOCK in assembler-optimized span read
functions.

19 years agoUse symbolic constants to describe pixel shader ALU instructions.
Vladimir Dergachev [Sat, 15 Jan 2005 04:17:27 +0000 (04:17 +0000)]
Use symbolic constants to describe pixel shader ALU instructions.

19 years agoAdded fixes for filter modes and support for anisotropy filters.
Aapo Tahkola [Fri, 14 Jan 2005 21:53:00 +0000 (21:53 +0000)]
Added fixes for filter modes and support for anisotropy filters.
Wrap modes would work perfectly but i messed up something when cleaning up
the code :/ Border color code is incomplete because i forgot to check how to
set border size :)

19 years agoEnable line stippling.
Alan Hourihane [Fri, 14 Jan 2005 16:56:52 +0000 (16:56 +0000)]
Enable line stippling.

19 years agoFix previously un-noticed issue with flat-shaded points.
Keith Whitwell [Fri, 14 Jan 2005 15:03:00 +0000 (15:03 +0000)]
Fix previously un-noticed issue with flat-shaded points.

19 years agosilence a warning
Alan Hourihane [Fri, 14 Jan 2005 13:11:34 +0000 (13:11 +0000)]
silence a warning

19 years agoGet PolygonStipple working.. (or seemingly too). It seems to do the right
Alan Hourihane [Fri, 14 Jan 2005 13:10:50 +0000 (13:10 +0000)]
Get PolygonStipple working.. (or seemingly too). It seems to do the right
things now given the demos I've used and passes glean's paths test.

19 years ago16bpp doesn't support masked clears, so fallback when they're enabled.
Alan Hourihane [Fri, 14 Jan 2005 13:02:53 +0000 (13:02 +0000)]
16bpp doesn't support masked clears, so fallback when they're enabled.

19 years agoPopulate WriteMonoDepthSpan in 24/8 modes.
Keith Whitwell [Fri, 14 Jan 2005 13:01:21 +0000 (13:01 +0000)]
Populate WriteMonoDepthSpan in 24/8 modes.

19 years agochanged coding style. made `glutTimerFunc' less accurate, but far more reliable.
Daniel Borca [Fri, 14 Jan 2005 08:50:08 +0000 (08:50 +0000)]
changed coding style.  made `glutTimerFunc' less accurate, but far more reliable.

19 years agochanged coding style. added possibility to use default timer instead of PC/HW timer.
Daniel Borca [Fri, 14 Jan 2005 08:44:29 +0000 (08:44 +0000)]
changed coding style.  added possibility to use default timer instead of PC/HW timer.

19 years agochanged coding style. added a NULL pointer check.
Daniel Borca [Fri, 14 Jan 2005 08:40:43 +0000 (08:40 +0000)]
changed coding style.  added a NULL pointer check.

19 years agochanged coding style
Daniel Borca [Fri, 14 Jan 2005 08:37:20 +0000 (08:37 +0000)]
changed coding style

19 years agodoc update
Daniel Borca [Fri, 14 Jan 2005 08:31:50 +0000 (08:31 +0000)]
doc update

19 years agoRemove redundant register.
Vladimir Dergachev [Fri, 14 Jan 2005 06:39:14 +0000 (06:39 +0000)]
Remove redundant register.
Hook up some functions in r300Enable().

19 years agoReduce amount of stderr output.
Vladimir Dergachev [Fri, 14 Jan 2005 05:26:17 +0000 (05:26 +0000)]
Reduce amount of stderr output.
Switch to using R300_EASY_TX_FORMAT() macro everywhere.

19 years agoIncorporate latest data from Wladimir van der Laan.
Vladimir Dergachev [Fri, 14 Jan 2005 04:21:55 +0000 (04:21 +0000)]
Incorporate latest data from Wladimir van der Laan.

19 years agoSync with master copy.
Vladimir Dergachev [Thu, 13 Jan 2005 23:13:52 +0000 (23:13 +0000)]
Sync with master copy.

19 years agoadd -DUSE_EXTERNAL_DXTN_LIB=1 so compressed textures are enabled for solo
Dave Airlie [Thu, 13 Jan 2005 22:38:21 +0000 (22:38 +0000)]
add -DUSE_EXTERNAL_DXTN_LIB=1 so compressed textures are enabled for solo

19 years agoremove some dead texture code
Alan Hourihane [Thu, 13 Jan 2005 17:53:01 +0000 (17:53 +0000)]
remove some dead texture code

19 years agoMake sure DMA buffers are released in savageDestroyContext. Usually
Felix Kuehling [Thu, 13 Jan 2005 16:02:05 +0000 (16:02 +0000)]
Make sure DMA buffers are released in savageDestroyContext. Usually
the DRM would reclaim DMA buffers, but if one process creates and
destroys many contexts it can still run out of DMA buffers.

19 years agoFix loop for quads-as-triangles.
Keith Whitwell [Thu, 13 Jan 2005 15:58:05 +0000 (15:58 +0000)]
Fix loop for quads-as-triangles.

19 years agoRename via_fastrender_* to avoid confusion with similar functions in
Keith Whitwell [Thu, 13 Jan 2005 15:49:39 +0000 (15:49 +0000)]
Rename via_fastrender_* to avoid confusion with similar functions in
via_render.c.

19 years agoSimplify viaChooseVertexState slightly.
Keith Whitwell [Thu, 13 Jan 2005 14:57:34 +0000 (14:57 +0000)]
Simplify viaChooseVertexState slightly.

19 years agoRemove misleading comment.
Keith Whitwell [Thu, 13 Jan 2005 14:54:44 +0000 (14:54 +0000)]
Remove misleading comment.