Ian Romanick [Fri, 28 Jan 2005 17:30:25 +0000 (17:30 +0000)]
Slightly modify the meaning of the 'handcode' attribute in a 'glx' element.
The attribute can now take one of 4 states. "false" (the default value)
means that no handcoding is required for the function. "client" means that
the function must be handcoded on the client-side only. "server" means that
the function must be handcoded on the server-side only. "true" menas that
the function must be handcoded on both the client-side and the server-side.
Version 1.14 of glX_proto_send.py accidentally contained a line of this
change.
Ian Romanick [Fri, 28 Jan 2005 16:51:01 +0000 (16:51 +0000)]
Add an option to emit extra debug code in the generated protocol functions.
The debug version of indirect.c has proven very helpful during the
development of new client-side and server-side GLX protocol code. This is
put here instead of in the DISPATCH and DISPATCH_RETURN macros in dispatch.c
for two reasons.
1. I only want the debug information when indirect-rendering is used.
2. Functions that require a reply from the server, some of which do not have
a return value (e.g., glFlush, glFinish, glGetLightfv, etc.), do not need
the extra glFinish call.
Aapo Tahkola [Fri, 28 Jan 2005 11:59:37 +0000 (11:59 +0000)]
Fix wrong comment.
Aapo Tahkola [Fri, 28 Jan 2005 10:08:00 +0000 (10:08 +0000)]
Forgot one comment...
Aapo Tahkola [Fri, 28 Jan 2005 09:57:06 +0000 (09:57 +0000)]
Add basic sceleton for vertex programs + some other fixes
Ian Romanick [Thu, 27 Jan 2005 19:50:59 +0000 (19:50 +0000)]
Mark a couple more function parameters as counters.
Ian Romanick [Thu, 27 Jan 2005 19:39:16 +0000 (19:39 +0000)]
Add numerous 'get'-type functions to most of the enums supported by the
server-side GLX implementation.
Correct the protocol for EXT_convolution. Several functions were
incorrectly listed as 'sop' that should have been 'vendorpriv'.
Remove TexParameter[if]v from the list of functions associated with
TEXTURE_RESIDENT. The state associated with this enum is read-only.
Sort the enums by value for each particular size. This ensures that the
signature is the same no matter what the ordering is of the enums in the XML
file. The side effect is that there are some extra changes in
indirect_size.c.
Aapo Tahkola [Thu, 27 Jan 2005 04:42:52 +0000 (04:42 +0000)]
Add vector distance operator for vertex programs.
Ian Romanick [Thu, 27 Jan 2005 01:08:48 +0000 (01:08 +0000)]
The 'mode' setting of a function within an 'enum' element is now used.
Parameters to glX_proto_size.py are now used to determine whether to emit
either get-type function, set-type functions, or both. When only get-type
functions are emitted, they can optionally alias set-type functions. This
would be useful if, for example, the two types were in different source
files.
The real work to implement this is in SizeStubFunctionIterator class. All
of the logic for which functions to iterate and in which order is
implemented there.
Ian Romanick [Wed, 26 Jan 2005 19:19:06 +0000 (19:19 +0000)]
remove a bunch of temporary #defines, now that glext.h was updated
Roland Scheidegger [Wed, 26 Jan 2005 18:05:03 +0000 (18:05 +0000)]
(Stephane Marchesin, me) Add support for color (framebuffer) tiling to the radeon and r200 driver
Roland Scheidegger [Wed, 26 Jan 2005 18:02:19 +0000 (18:02 +0000)]
new version check to allow to test for a range of ddx major versions, instead of just one major version
Brian Paul [Wed, 26 Jan 2005 14:45:38 +0000 (14:45 +0000)]
remove a bunch of temporary #defines, now that glext.h was updated
Roland Scheidegger [Wed, 26 Jan 2005 14:20:14 +0000 (14:20 +0000)]
replace magic number with macro constant RADEON_ZBLOCK16
Brian Paul [Wed, 26 Jan 2005 14:02:50 +0000 (14:02 +0000)]
just comments/clean-up
Brian Paul [Wed, 26 Jan 2005 14:01:53 +0000 (14:01 +0000)]
added mutex to-do comment
Brian Paul [Wed, 26 Jan 2005 14:01:28 +0000 (14:01 +0000)]
just fix a comment and update date
Daniel Borca [Wed, 26 Jan 2005 09:47:32 +0000 (09:47 +0000)]
RGB/LUMINANCE texelfetchers (float version) returned 255.0F for alpha channel, instead of 1.0F
Ian Romanick [Tue, 25 Jan 2005 23:53:13 +0000 (23:53 +0000)]
Add a glFunctionIterator class to iterate over the functions stored in a
higher-level API object. Use this type of object to implement the
printFunctions method. Modify other functions that iterate over the list of
functions to use this type of object.
Aapo Tahkola [Tue, 25 Jan 2005 19:09:23 +0000 (19:09 +0000)]
Fixes for clamp modes.
Brian Paul [Tue, 25 Jan 2005 15:16:02 +0000 (15:16 +0000)]
Use the _mesa_HashNextEntry() function to walk over all textures in the
hash table.
Moving toward removing the gl_texture_object's Next pointer (only used by
glide and tdfx drivers).
Ian Romanick [Tue, 25 Jan 2005 01:36:32 +0000 (01:36 +0000)]
Stupid text editor...convert wayward tabs to spaces.
Ian Romanick [Tue, 25 Jan 2005 01:20:11 +0000 (01:20 +0000)]
Add a "count" attribute to "enums" elements to set the default count
used for "size" sub-elements. In the future the "count" attribute may
be removed completely from "size" sub-elements, so gl_API.xml was also
updated.
Support was added for a (currently unused) "mode" attribute for "size"
elements. Basically, functions are marked as either "get" or "set". This
will be used in generating size functions for the server-side (where the
"get" functions have to know how much data to return). It could also be
used to help generate code for src/mesa/main/get.c.
Ian Romanick [Mon, 24 Jan 2005 22:07:00 +0000 (22:07 +0000)]
Correctly set the name of the generating script.
Ian Romanick [Mon, 24 Jan 2005 21:56:05 +0000 (21:56 +0000)]
Move all the code for generating "size" related functions to its own
source file.
Ian Romanick [Mon, 24 Jan 2005 21:43:29 +0000 (21:43 +0000)]
Correct some of the dependencies and clean things up a bit.
Ian Romanick [Mon, 24 Jan 2005 21:29:13 +0000 (21:29 +0000)]
Remove glEnum::startElement, but refactor out some of the common code from
there and glXEnum::startElement to glEnum::process_attributes.
Ian Romanick [Mon, 24 Jan 2005 20:59:32 +0000 (20:59 +0000)]
Since only one of the places that used glXFunction::command_payload_length
actually used both values, it was refactored into command_fixed_length and
command_variable_length. glXFunction::offset_of_first_parameter was also
added.
Ian Romanick [Mon, 24 Jan 2005 20:08:28 +0000 (20:08 +0000)]
Make sure that functions added to gl_API.xml that do not have any GLX
section are marked as ignored. Also ignore any functions that don't have
assigned dispatch offsets.
Fold Adam Jackson's changes to indirect_size.c into the generator scripts so
that they don't get lost. "DO NOT EDIT" really means "DO NOT EDIT". ;)
Aapo Tahkola [Mon, 24 Jan 2005 19:26:20 +0000 (19:26 +0000)]
border_color causes lockups with vertex buffers. Disabling for now.
Vladimir Dergachev [Mon, 24 Jan 2005 17:09:17 +0000 (17:09 +0000)]
Remove lots of old code that dealed with "magic" texture formats.
Brian Paul [Mon, 24 Jan 2005 15:41:08 +0000 (15:41 +0000)]
reenable some assertions
Felix Kuehling [Mon, 24 Jan 2005 01:15:12 +0000 (01:15 +0000)]
Converted the Savage texture management to use Ian's common texmem code.
Brian Paul [Mon, 24 Jan 2005 00:20:23 +0000 (00:20 +0000)]
Added _mesa_HashNextEntry() function to allow walking over all entries
in a hash table.
Added _mesa_test_hash_functions() for unit testing.
Updated comments, etc.
Dave Airlie [Sun, 23 Jan 2005 22:09:30 +0000 (22:09 +0000)]
reapply Keiths workaround for zbs emit that got dropped during
state change patches....
Nicolai Haehnle [Sun, 23 Jan 2005 17:35:05 +0000 (17:35 +0000)]
Remove unused variables from r300_context
Nicolai Haehnle [Sun, 23 Jan 2005 17:28:04 +0000 (17:28 +0000)]
Fix more warnings and compilation issues.
Nicolai Haehnle [Sun, 23 Jan 2005 17:05:32 +0000 (17:05 +0000)]
Synchronize r300_reg.h.
Fix unportable whitespace before preprocessor commands.
Dave Airlie [Sun, 23 Jan 2005 06:27:08 +0000 (06:27 +0000)]
add sync debugging to the radeon driver
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.
Adam Jackson [Sun, 23 Jan 2005 02:12:23 +0000 (02:12 +0000)]
silence makedepend warnings about non-portable whitespace
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.
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.
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.
Vladimir Dergachev [Sat, 22 Jan 2005 03:33:10 +0000 (03:33 +0000)]
Properly configure routing - based on advice by Keith Whitwell.
Felix Kuehling [Sat, 22 Jan 2005 00:52:31 +0000 (00:52 +0000)]
Fixed polygon offset with reversed viewport depth range.
Vladimir Dergachev [Fri, 21 Jan 2005 21:30:55 +0000 (21:30 +0000)]
Properly input stencil info contributed by Wladimir.
Brian Paul [Fri, 21 Jan 2005 16:35:56 +0000 (16:35 +0000)]
fix glGetString funniness
Michal Krol [Fri, 21 Jan 2005 15:55:13 +0000 (15:55 +0000)]
add getstring.c; remove arb*.h nv*.h stuff
Michal Krol [Fri, 21 Jan 2005 15:52:17 +0000 (15:52 +0000)]
add slang/traverse_wrap.h
Michal Krol [Fri, 21 Jan 2005 15:51:28 +0000 (15:51 +0000)]
Handy TIntermTraverser class wrapper
Alan Hourihane [Fri, 21 Jan 2005 09:50:48 +0000 (09:50 +0000)]
silence the 'using AGP/PCI' string unless VIA_DEBUG is used.
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
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
Brian Paul [Thu, 20 Jan 2005 15:07:42 +0000 (15:07 +0000)]
glext.h version 26
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.
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.
Brian Paul [Thu, 20 Jan 2005 04:03:37 +0000 (04:03 +0000)]
document new glDeleteTextures/Buffers/Programs behaviour
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.
Brian Paul [Thu, 20 Jan 2005 03:55:10 +0000 (03:55 +0000)]
Use a simple CSS style sheet.
Brian Paul [Wed, 19 Jan 2005 21:41:24 +0000 (21:41 +0000)]
Removed gl_texture_object's DeletePending. Changed a comment.
Brian Paul [Wed, 19 Jan 2005 14:52:13 +0000 (14:52 +0000)]
added texobjshare.c
Brian Paul [Wed, 19 Jan 2005 14:51:41 +0000 (14:51 +0000)]
test program for texture sharing, deleting, etc
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).
Brian Paul [Wed, 19 Jan 2005 14:45:23 +0000 (14:45 +0000)]
make sure the new instruction Data pointer is set to NULL
Brian Paul [Wed, 19 Jan 2005 14:44:55 +0000 (14:44 +0000)]
fix a typo
Brian Paul [Wed, 19 Jan 2005 14:44:41 +0000 (14:44 +0000)]
minor formatting fix
Keith Whitwell [Wed, 19 Jan 2005 12:09:33 +0000 (12:09 +0000)]
Bring the texcombine fixes to the trunk.
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.
Keith Whitwell [Wed, 19 Jan 2005 11:39:23 +0000 (11:39 +0000)]
Remove depend on make clean
Keith Whitwell [Wed, 19 Jan 2005 11:10:27 +0000 (11:10 +0000)]
Depend tweaks
Daniel Borca [Wed, 19 Jan 2005 07:57:52 +0000 (07:57 +0000)]
make sure we avoid assertion failure wrt VB->ColorPtr[1]->stride
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.
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.
Brian Paul [Tue, 18 Jan 2005 22:58:13 +0000 (22:58 +0000)]
minor reorg of shader files, disable building for now
Alan Hourihane [Tue, 18 Jan 2005 21:57:48 +0000 (21:57 +0000)]
remove some debug
Alan Hourihane [Tue, 18 Jan 2005 15:06:01 +0000 (15:06 +0000)]
Fix tristrips (which fixes coloredTexPerf2 & coloredLitPerf2 glean tests)
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?
Michal Krol [Tue, 18 Jan 2005 14:19:46 +0000 (14:19 +0000)]
comment out _THROW calls, dont want to compile under Linux
Michal Krol [Tue, 18 Jan 2005 14:17:37 +0000 (14:17 +0000)]
add shader/slang/slang_mesa.cpp
Michal Krol [Tue, 18 Jan 2005 14:16:51 +0000 (14:16 +0000)]
change .cc suffix to .cpp
Michal Krol [Tue, 18 Jan 2005 14:02:52 +0000 (14:02 +0000)]
add slang preprocessor C sources; add slang include directories
Michal Krol [Tue, 18 Jan 2005 13:58:56 +0000 (13:58 +0000)]
fix // comments
Michal Krol [Tue, 18 Jan 2005 12:04:53 +0000 (12:04 +0000)]
fix MAX_VERTEX_ATTRIBS_ARB query
Keith Whitwell [Tue, 18 Jan 2005 08:41:55 +0000 (08:41 +0000)]
Fix calculation of last_count in _tnl_wrap_buffers()
Brian Paul [Mon, 17 Jan 2005 22:33:50 +0000 (22:33 +0000)]
added rule for compiling C++ sources
Michal Krol [Mon, 17 Jan 2005 16:25:08 +0000 (16:25 +0000)]
add slang/ directory tree
Brian Paul [Mon, 17 Jan 2005 16:16:35 +0000 (16:16 +0000)]
use FABSF(fogCoord) to fix fog calculation problem (Soju Matsumoto)
Brian Paul [Mon, 17 Jan 2005 16:14:46 +0000 (16:14 +0000)]
fix some weirdness accidentally checked in in the past
Michal Krol [Mon, 17 Jan 2005 16:01:49 +0000 (16:01 +0000)]
2005-oct-19 3dlabs slang compiler, tweaked a little bit
Michal Krol [Mon, 17 Jan 2005 15:52:20 +0000 (15:52 +0000)]
slang to mesa compatibility, tested only under Windows
Michal Krol [Mon, 17 Jan 2005 15:47:57 +0000 (15:47 +0000)]
add 3dlabs_shhandle interface
Michal Krol [Mon, 17 Jan 2005 15:35:46 +0000 (15:35 +0000)]
add [.slang] to INCDIR, fix comma in OBJECTS
Michal Krol [Mon, 17 Jan 2005 15:32:25 +0000 (15:32 +0000)]
add src/mesa/shader/slang to INCLUDE_DIRS
Daniel Borca [Mon, 17 Jan 2005 08:05:47 +0000 (08:05 +0000)]
cleaned up warnings
Daniel Borca [Mon, 17 Jan 2005 08:04:39 +0000 (08:04 +0000)]
allow more internalFormat/format combinations (i hope i got it right)
Daniel Borca [Mon, 17 Jan 2005 08:02:42 +0000 (08:02 +0000)]
fix compilation error for fx/Mesa
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...
Daniel Borca [Mon, 17 Jan 2005 07:47:41 +0000 (07:47 +0000)]
remove trailing slash from TOP definition
Brian Paul [Mon, 17 Jan 2005 01:21:03 +0000 (01:21 +0000)]
silence warning