Felix Kuehling [Sat, 23 Apr 2005 19:54:30 +0000 (19:54 +0000)]
Fixed a segfault introduced by Keith's pipeline changes.
Felix Kuehling [Sat, 23 Apr 2005 17:18:57 +0000 (17:18 +0000)]
Texturing fixes for Savage3D/MX/IX:
- force emitting texAddr when the texture image changed (flush caches)
- set transparent texture color key to something improbable
(couldn't find a way to disable it completely)
- fixed texture environment modes GL_DECAL and GL_REPLACE
- made texture environment mode GL_BLEND a software fallback
- added two custom texture formats for promoting from GL_ALPHA to ARGB8888
and 4444. Since the hardware can't be made to ignore the RGB color
components, set them to 1 instead of 0. This gives the correct results
- disabled GL_EXT_texture_env_add on Savage3D/MX/IX
- map both GL_CLAMP and GL_CLAMP_TO_EDGE to hardware mode "wrap". It doesn't
match either mode exactly by the spec, so we should either fall back on both
or none. I chose the latter.
- fall back to software when s and t wrapping modes differ (hardware has only
one bit for both)
Keith Whitwell [Sat, 23 Apr 2005 11:55:18 +0000 (11:55 +0000)]
Fix the worst problems with dangling edgeflag references in
display lists. These mainly arise from edgeflag being the only
attribute no longer stored internally as a float and requiring
various special case paths to accomodate it.
Keith Whitwell [Fri, 22 Apr 2005 22:47:09 +0000 (22:47 +0000)]
Updates for pipeline_stage struct changes.
Keith Whitwell [Fri, 22 Apr 2005 22:42:09 +0000 (22:42 +0000)]
First pass at updating these drivers with pipeline_stage struct changes.
Felix Kuehling [Fri, 22 Apr 2005 21:36:37 +0000 (21:36 +0000)]
Added a French translation of option descriptions by Stephane Marchesin.
Brian Paul [Fri, 22 Apr 2005 21:17:14 +0000 (21:17 +0000)]
demo / test progs
Brian Paul [Fri, 22 Apr 2005 21:16:28 +0000 (21:16 +0000)]
types for Mesa implementation of EGL
Brian Paul [Fri, 22 Apr 2005 21:16:12 +0000 (21:16 +0000)]
prototype EGL_MESA_screen_surface.
Brian Paul [Fri, 22 Apr 2005 21:09:39 +0000 (21:09 +0000)]
initial EGL code
Keith Whitwell [Fri, 22 Apr 2005 13:02:04 +0000 (13:02 +0000)]
Move the call to _tnl_UpdateFixedFunctionProgram to make
it easier for hardware drivers to test this out.
Keith Whitwell [Fri, 22 Apr 2005 12:51:19 +0000 (12:51 +0000)]
Simplify the pipeline_stage structure
- remove input/output fields, input tracking removed.
- remove state fields, the validate function now called
on every statechange.
- add an explicit 'create' function.
Add in code to build vertex program to implement current t&l state. Still
disabled, but turn on with a #define in t_vp_build.h.
Keith Whitwell [Fri, 22 Apr 2005 12:46:13 +0000 (12:46 +0000)]
Up the value of MAX_NV_VERTEX_PROGRAM_PARAMS to a power of two.
Michal Krol [Fri, 22 Apr 2005 10:43:36 +0000 (10:43 +0000)]
Add more error checking.
Michal Krol [Fri, 22 Apr 2005 10:28:53 +0000 (10:28 +0000)]
Cosmetic changes.
Michal Krol [Fri, 22 Apr 2005 10:15:32 +0000 (10:15 +0000)]
Move some utility functions to slang_utility.c.
Michal Krol [Fri, 22 Apr 2005 09:51:46 +0000 (09:51 +0000)]
Provide precompiled binary versions of built-in library .gc sources
to dramatically improve shader compiling performance.
Brian Paul [Fri, 22 Apr 2005 02:56:21 +0000 (02:56 +0000)]
undef DEPTH_TYPE at end
Felix Kuehling [Thu, 21 Apr 2005 21:50:54 +0000 (21:50 +0000)]
Fixed some suspicious pointer casts that caused lots of
compile-time-warnings on x86-64. Not tested on x86-64 yet, but a good
thing in general, so I'm giving up waiting for feedback. See also
https://bugs.freedesktop.org/show_bug.cgi?id=2924.
Felix Kuehling [Thu, 21 Apr 2005 21:43:21 +0000 (21:43 +0000)]
Fixed TexEnv modes GL_BLEND and GL_ADD on Savage4-based cards. Disabled
the use of hardware texture format I8 as it produces garbage at least on
ProSavageDDR.
Aapo Tahkola [Thu, 21 Apr 2005 19:09:54 +0000 (19:09 +0000)]
Adding some comments.
Keith Whitwell [Thu, 21 Apr 2005 14:46:57 +0000 (14:46 +0000)]
Reduce the size of mesa's internal fragment and vertex program
representations by switching to packed structures for registers and
instructions.
Brian Paul [Thu, 21 Apr 2005 14:19:50 +0000 (14:19 +0000)]
use _mesa_pow() for LIT (bug 3087)
Keith Whitwell [Thu, 21 Apr 2005 13:13:49 +0000 (13:13 +0000)]
Facility to construct a vertex program which executes the current
fixed function t&l pipeline.
Currently runs most of the Mesa demos OK, but still needs debugging &
polishing.
Keith Whitwell [Thu, 21 Apr 2005 13:11:02 +0000 (13:11 +0000)]
New software implementation of ARB_vertex_program. Similar in speed
to existing version, but with the potential for good improvements.
Aapo Tahkola [Thu, 21 Apr 2005 05:24:02 +0000 (05:24 +0000)]
Had some odd problems with add and temps so doing it with mad. Adding some MAD_2 cases.
Brian Paul [Wed, 20 Apr 2005 23:47:03 +0000 (23:47 +0000)]
fix state.light[n].spot.direction.w value (bug 3083)
Brian Paul [Wed, 20 Apr 2005 17:12:10 +0000 (17:12 +0000)]
clean up buffer creation code
Aapo Tahkola [Tue, 19 Apr 2005 18:49:44 +0000 (18:49 +0000)]
Reorganized shader stuff.
Aapo Tahkola [Tue, 19 Apr 2005 03:12:30 +0000 (03:12 +0000)]
Fixes for bugs that were nailed down when compairing against software vertex shading.
Aapo Tahkola [Mon, 18 Apr 2005 22:41:43 +0000 (22:41 +0000)]
Fixing and enabling elt buffers by default.
Ian Romanick [Mon, 18 Apr 2005 21:30:20 +0000 (21:30 +0000)]
If the file name passed to parse_GL_API is None or "-", read from standard
input. This allows use of GL API scripts in pipelines.
Ian Romanick [Mon, 18 Apr 2005 19:42:23 +0000 (19:42 +0000)]
Refactor a bunch of common code from the "leaf" scripts to a new functions,
parse_GL_API, in gl_XML.py.
Ian Romanick [Mon, 18 Apr 2005 19:17:12 +0000 (19:17 +0000)]
Fill-in function offsets and correct a couple typos.
Ian Romanick [Mon, 18 Apr 2005 19:16:07 +0000 (19:16 +0000)]
Convert all Python scripts to use XML namespaces.
Peter Zubaj [Mon, 18 Apr 2005 19:06:14 +0000 (19:06 +0000)]
Alpha test fix
Ian Romanick [Mon, 18 Apr 2005 18:36:57 +0000 (18:36 +0000)]
Move the DTD to its own file.
Brian Paul [Mon, 18 Apr 2005 17:48:25 +0000 (17:48 +0000)]
comments and clean-up
Ian Romanick [Mon, 18 Apr 2005 16:59:53 +0000 (16:59 +0000)]
Add support for pthreads and TLS to libGL for __glXLock / __glXUnlock and
for tracking the current GLX context.
This fixes bug #3024.
Ian Romanick [Mon, 18 Apr 2005 16:40:36 +0000 (16:40 +0000)]
Send GL_PACK_INVERT_MESA state to the server. This fixes bug #2538.
Brian Paul [Mon, 18 Apr 2005 14:21:44 +0000 (14:21 +0000)]
s/NORMAL/FOG/ (J.P. Delport)
Jouk Jansen [Mon, 18 Apr 2005 13:05:24 +0000 (13:05 +0000)]
Updates for OpenVMS : New makefiles
added some type-casts
Modified Files:
Mesa/src/mesa/shader/descrip.mms
Mesa/src/mesa/shader/program.c
Mesa/src/mesa/shader/slang/slang_compile.c
Mesa/src/mesa/shader/slang/slang_preprocess.c
Added Files:
Mesa/src/mesa/shader/slang/descrip.mms
----------------------------------------------------------------------
Brian Paul [Fri, 15 Apr 2005 22:20:46 +0000 (22:20 +0000)]
added SLANG_SOURCES to SOLO_C_SOURCES
Brian Paul [Fri, 15 Apr 2005 22:16:18 +0000 (22:16 +0000)]
config for profiling with gprof
Brian Paul [Fri, 15 Apr 2005 17:25:07 +0000 (17:25 +0000)]
added _mesa_share_state()
Ben Crossman [Fri, 15 Apr 2005 17:17:47 +0000 (17:17 +0000)]
more gldirect compile fixes. Getting near the linking stage now. No build file yet.
Brian Paul [Fri, 15 Apr 2005 16:05:14 +0000 (16:05 +0000)]
remove carriage returns
Keith Whitwell [Fri, 15 Apr 2005 12:57:23 +0000 (12:57 +0000)]
Fix alpha value of STATE_LIGHTMODEL_SCENECOLOR. From the spec:
The "w" component of the program parameter variable is filled with
the alpha component of the front diffuse material color.
Make sure matrix inverses are uptodate also.
Michal Krol [Fri, 15 Apr 2005 10:30:43 +0000 (10:30 +0000)]
add shader/slang/slang_preprocess.c
Michal Krol [Fri, 15 Apr 2005 10:23:10 +0000 (10:23 +0000)]
implement info log; parse #version directive
Michal Krol [Fri, 15 Apr 2005 10:21:34 +0000 (10:21 +0000)]
slang preprocessor
Michal Krol [Fri, 15 Apr 2005 10:20:30 +0000 (10:20 +0000)]
slang #version directive syntax
Michal Krol [Fri, 15 Apr 2005 10:19:27 +0000 (10:19 +0000)]
change __asm statement semantics
Ben Crossman [Fri, 15 Apr 2005 09:13:21 +0000 (09:13 +0000)]
Reverted the last change back to fix bug 3035
Ian Romanick [Thu, 14 Apr 2005 23:03:44 +0000 (23:03 +0000)]
Convert 'variable_param' from a CDATA attribute to a NMTOKENS attribute.
The main difference is that white-space is used to separate the names
instead of comas.
Ian Romanick [Thu, 14 Apr 2005 23:00:34 +0000 (23:00 +0000)]
Refactor the handling of the '(true | false)' enumerated attributes.
Ian Romanick [Thu, 14 Apr 2005 22:59:46 +0000 (22:59 +0000)]
Modify the DTD to use NMTOKEN, enumerants, and explicit default values
wherever possible. Correct a couple mis-uses of the 'counter' attribute
when 'count' was intended. Fix some errors in the DTD and in the data with
'doubles_in_order'.
Ian Romanick [Thu, 14 Apr 2005 21:05:55 +0000 (21:05 +0000)]
In GLX_USE_TLS builds, make GET_CURRENT_CONTEXT use the TLS verion of the
variable. Without this, GET_CURRENT_CONTEXT would *always* result in a call
to _glapi_get_context (because _glapi_Context is a const pointer to NULL in
TLS builds).
Ian Romanick [Thu, 14 Apr 2005 20:35:33 +0000 (20:35 +0000)]
Add missing includes of indirect.h.
Ben Crossman [Thu, 14 Apr 2005 19:54:15 +0000 (19:54 +0000)]
A few getenv() that werent using the mesa wrapper version
Ben Crossman [Thu, 14 Apr 2005 16:58:25 +0000 (16:58 +0000)]
Some initial compile fixes. Still some left and warnings that need fixing. No where near runnable yet.
Keith Whitwell [Thu, 14 Apr 2005 15:53:30 +0000 (15:53 +0000)]
Disable CLOD (Lod constant) state emit. The values emitted were
possibly negative, hence clobbering the leading register-id byte.
Fixed the calculation of the values to prevent negative numbers being
emitted, but the code still doesn't implement texture LOD bias
correctly, so leave it disabled overall.
Michal Krol [Thu, 14 Apr 2005 10:31:36 +0000 (10:31 +0000)]
hook to _slang_compile()
Michal Krol [Thu, 14 Apr 2005 10:30:08 +0000 (10:30 +0000)]
cosmetic changes
Michal Krol [Thu, 14 Apr 2005 10:28:14 +0000 (10:28 +0000)]
ARB_fragment_shader state
Michal Krol [Thu, 14 Apr 2005 10:27:19 +0000 (10:27 +0000)]
ARB_fragment/vertex_shader state
Michal Krol [Thu, 14 Apr 2005 10:25:49 +0000 (10:25 +0000)]
ARB_shading_language_100 bit;
Fragment shader derivative hint
Michal Krol [Thu, 14 Apr 2005 10:23:51 +0000 (10:23 +0000)]
add GL_ARB_shading_language_100;
reorder GL_ARB_shader_objects and GL_ARB_fragment/vertex_shader stuff
Michal Krol [Thu, 14 Apr 2005 10:21:30 +0000 (10:21 +0000)]
add FEATURE_ARB_shading_language_100;
remove FEATURE_shading_language;
add ARB_fragment/vertex_shader max values
Michal Krol [Thu, 14 Apr 2005 10:19:19 +0000 (10:19 +0000)]
do not use isdigit() - can cause link errors
Brian Paul [Wed, 13 Apr 2005 23:50:47 +0000 (23:50 +0000)]
updated procedure for getting CVS-write access
Ian Romanick [Wed, 13 Apr 2005 20:59:15 +0000 (20:59 +0000)]
Add TLS support to libGL and, by virtue of using glthread.h and GL_CALL, all
DRI drivers. A TLS enabled libGL can load a TLS or a non-TLS DRI driver,
but a TLS DRI driver requires a TLS enabled libGL.
This fixes bug #1822.
Ian Romanick [Wed, 13 Apr 2005 18:41:33 +0000 (18:41 +0000)]
Revert revision 1.13. This allows server-side libGLcore (in X.org) to build
with Mesa CVS. This change was wrong in the first place, and the issue that
necessitated it has been resolved. For more background on the problem see:
http://marc.theaimsgroup.com/?l=mesa3d-dev&m=
111333880529935&w=2
Michal Krol [Wed, 13 Apr 2005 14:05:28 +0000 (14:05 +0000)]
add SLANG_SOURCES
Michal Krol [Wed, 13 Apr 2005 14:05:06 +0000 (14:05 +0000)]
clean-up stuff
Michal Krol [Wed, 13 Apr 2005 14:04:41 +0000 (14:04 +0000)]
simple front-end compiler
Michal Krol [Wed, 13 Apr 2005 13:18:35 +0000 (13:18 +0000)]
add __fixed_input and __fixed_output qualifier support;
fix for_init_statement output;
Michal Krol [Wed, 13 Apr 2005 13:06:57 +0000 (13:06 +0000)]
cosmetic changes;
add __fixed_input and __fixed_output qualifiers for built-in variables;
Michal Krol [Wed, 13 Apr 2005 13:03:23 +0000 (13:03 +0000)]
cosmetic changes;
fix syntax errors;
Michal Krol [Wed, 13 Apr 2005 12:59:58 +0000 (12:59 +0000)]
cosmetic changes;
change first parameter's qualifier from inout to out for __operator =;
remove __asm instructions: int_add, int_multiply, int_divide, int_negate,
int_less, int_equal, bool_equal;
Michal Krol [Wed, 13 Apr 2005 12:48:40 +0000 (12:48 +0000)]
converts a .gc file to a C header containing string form of the file
Felix Kuehling [Tue, 12 Apr 2005 21:01:30 +0000 (21:01 +0000)]
Added a Spanish translation by David Rubio Miguélezand a Dutch
translation by Manfred Stienstra.
Felix Kuehling [Tue, 12 Apr 2005 20:58:34 +0000 (20:58 +0000)]
Changed escaping of double quotes.
Brian Paul [Tue, 12 Apr 2005 01:41:04 +0000 (01:41 +0000)]
PF_8A8R8G8B pixel format (Dave Reveman)
Felix Kuehling [Mon, 11 Apr 2005 21:41:40 +0000 (21:41 +0000)]
Manage option translations in separate .po files to make translations
easier for non-programmers familiar with GNU gettext. For now there is
only a German translation but more translations are encouraged.
Translatable strings are extracted from t_options.h containing option
definitions with English descriptions. A corresponding header options.h
with all available translations of option descriptions is generated by
gen_xmlpool.py and included by xmlpool.h.
Many option descriptions were rephrased to make them unambiguous for
translation without context. They are hopefully more helpful to users at
the same time.
Brian Paul [Sun, 10 Apr 2005 17:44:27 +0000 (17:44 +0000)]
set table size to 1023 and use new HASH_FUNC() macro
Adam Jackson [Sat, 9 Apr 2005 18:35:57 +0000 (18:35 +0000)]
Bug #2945: Fix math error that left half the hash buckets empty.
Ian Romanick [Fri, 8 Apr 2005 23:54:20 +0000 (23:54 +0000)]
Remove all the radeon_subset files. They were completely unused. Keith
Whitwell says, "[T]he radeon subset code can probably be archived now."
This "fixes" bug #1623.
Ian Romanick [Thu, 7 Apr 2005 23:58:51 +0000 (23:58 +0000)]
Use the same dispatch.c source file for "normal" Mesa builds and DRI
libGL builds.
Brian Paul [Thu, 7 Apr 2005 14:38:41 +0000 (14:38 +0000)]
Add shaderobjects_3dlabs.c back into build but use #ifdef FEATURE_shading_language to enable/disable relevant code.
Ian Romanick [Thu, 7 Apr 2005 00:05:55 +0000 (00:05 +0000)]
Follow the GLX_SGIX_fbconfig spec and return the complete list of
available fbconfigs if attrList is NULL. This fixes bug #2917.
Brian Paul [Wed, 6 Apr 2005 22:41:46 +0000 (22:41 +0000)]
added wrappers/helpers for creating/destroying rendering contexts
Brian Paul [Wed, 6 Apr 2005 22:40:39 +0000 (22:40 +0000)]
changed implementation of GetAllFBConfigs()
Brian Paul [Wed, 6 Apr 2005 22:33:15 +0000 (22:33 +0000)]
Fix Fake_glXChooseFBConfig so passing NULL attribList causes a list of all
fbconfigs to be returned.
Ian Romanick [Wed, 6 Apr 2005 21:34:34 +0000 (21:34 +0000)]
Make linux-dri-x86-64 more like linux-dri-x86. Add ARCH_FLAGS. This is
where things like "-m64" or "-m32" should be specified. Using this, a
32-bit DRI build can be done on an x86-64 system by doing 'ARCH_CFLAGS=-m32
make linux-dri-x86'. Minor tweaks to linux-dri to support these changes.
Ian Romanick [Tue, 5 Apr 2005 20:43:06 +0000 (20:43 +0000)]
Make glxgears_fbconfig compile and respect the DISPLAY setting. Add it
to the Makefile as well.
Keith Whitwell [Tue, 5 Apr 2005 10:30:05 +0000 (10:30 +0000)]
Don't call PrimitiveNotify with an invalid primitive. Fix ipers
wireframe mode.
Brian Paul [Mon, 4 Apr 2005 20:06:40 +0000 (20:06 +0000)]
s/Togle/Toggle/
Brian Paul [Mon, 4 Apr 2005 16:06:16 +0000 (16:06 +0000)]
updated warning string to match patch in bug report 2868
Brian Paul [Fri, 1 Apr 2005 01:41:54 +0000 (01:41 +0000)]
Use FEATURE_shading_language to control whether the shading language
compiler is hooked in. May be enabled on compiler command line by setting
-DFEATURE_shading_lanuage=1.