mesa.git
19 years agoFixes for bugs that were nailed down when compairing against software vertex shading.
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.

19 years agoFixing and enabling elt buffers by default.
Aapo Tahkola [Mon, 18 Apr 2005 22:41:43 +0000 (22:41 +0000)]
Fixing and enabling elt buffers by default.

19 years agoIf the file name passed to parse_GL_API is None or "-", read from standard
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.

19 years agoRefactor a bunch of common code from the "leaf" scripts to a new functions,
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.

19 years agoFill-in function offsets and correct a couple typos.
Ian Romanick [Mon, 18 Apr 2005 19:17:12 +0000 (19:17 +0000)]
Fill-in function offsets and correct a couple typos.

19 years agoConvert all Python scripts to use XML namespaces.
Ian Romanick [Mon, 18 Apr 2005 19:16:07 +0000 (19:16 +0000)]
Convert all Python scripts to use XML namespaces.

19 years agoAlpha test fix
Peter Zubaj [Mon, 18 Apr 2005 19:06:14 +0000 (19:06 +0000)]
Alpha test fix

19 years agoMove the DTD to its own file.
Ian Romanick [Mon, 18 Apr 2005 18:36:57 +0000 (18:36 +0000)]
Move the DTD to its own file.

19 years agocomments and clean-up
Brian Paul [Mon, 18 Apr 2005 17:48:25 +0000 (17:48 +0000)]
comments and clean-up

19 years agoAdd support for pthreads and TLS to libGL for __glXLock / __glXUnlock and
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.

19 years agoSend GL_PACK_INVERT_MESA state to the server. This fixes bug #2538.
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.

19 years agos/NORMAL/FOG/ (J.P. Delport)
Brian Paul [Mon, 18 Apr 2005 14:21:44 +0000 (14:21 +0000)]
s/NORMAL/FOG/ (J.P. Delport)

19 years ago Updates for OpenVMS : New makefiles
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
 ----------------------------------------------------------------------

19 years agoadded SLANG_SOURCES to SOLO_C_SOURCES
Brian Paul [Fri, 15 Apr 2005 22:20:46 +0000 (22:20 +0000)]
added SLANG_SOURCES to SOLO_C_SOURCES

19 years agoconfig for profiling with gprof
Brian Paul [Fri, 15 Apr 2005 22:16:18 +0000 (22:16 +0000)]
config for profiling with gprof

19 years agoadded _mesa_share_state()
Brian Paul [Fri, 15 Apr 2005 17:25:07 +0000 (17:25 +0000)]
added _mesa_share_state()

19 years agomore gldirect compile fixes. Getting near the linking stage now. No build file yet.
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.

19 years agoremove carriage returns
Brian Paul [Fri, 15 Apr 2005 16:05:14 +0000 (16:05 +0000)]
remove carriage returns

19 years agoFix alpha value of STATE_LIGHTMODEL_SCENECOLOR. From the spec:
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.

19 years agoadd shader/slang/slang_preprocess.c
Michal Krol [Fri, 15 Apr 2005 10:30:43 +0000 (10:30 +0000)]
add shader/slang/slang_preprocess.c

19 years agoimplement info log; parse #version directive
Michal Krol [Fri, 15 Apr 2005 10:23:10 +0000 (10:23 +0000)]
implement info log; parse #version directive

19 years agoslang preprocessor
Michal Krol [Fri, 15 Apr 2005 10:21:34 +0000 (10:21 +0000)]
slang preprocessor

19 years agoslang #version directive syntax
Michal Krol [Fri, 15 Apr 2005 10:20:30 +0000 (10:20 +0000)]
slang #version directive syntax

19 years agochange __asm statement semantics
Michal Krol [Fri, 15 Apr 2005 10:19:27 +0000 (10:19 +0000)]
change __asm statement semantics

19 years agoReverted the last change back to fix bug 3035
Ben Crossman [Fri, 15 Apr 2005 09:13:21 +0000 (09:13 +0000)]
Reverted the last change back to fix bug 3035

19 years agoConvert 'variable_param' from a CDATA attribute to a NMTOKENS attribute.
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.

19 years agoRefactor the handling of the '(true | false)' enumerated attributes.
Ian Romanick [Thu, 14 Apr 2005 23:00:34 +0000 (23:00 +0000)]
Refactor the handling of the '(true | false)' enumerated attributes.

19 years agoModify the DTD to use NMTOKEN, enumerants, and explicit default values
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'.

19 years agoIn GLX_USE_TLS builds, make GET_CURRENT_CONTEXT use the TLS verion of the
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).

19 years agoAdd missing includes of indirect.h.
Ian Romanick [Thu, 14 Apr 2005 20:35:33 +0000 (20:35 +0000)]
Add missing includes of indirect.h.

19 years agoA few getenv() that werent using the mesa wrapper version
Ben Crossman [Thu, 14 Apr 2005 19:54:15 +0000 (19:54 +0000)]
A few getenv() that werent using the mesa wrapper version

19 years agoSome initial compile fixes. Still some left and warnings that need fixing. No where...
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.

19 years agoDisable CLOD (Lod constant) state emit. The values emitted were
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.

19 years agohook to _slang_compile()
Michal Krol [Thu, 14 Apr 2005 10:31:36 +0000 (10:31 +0000)]
hook to _slang_compile()

19 years agocosmetic changes
Michal Krol [Thu, 14 Apr 2005 10:30:08 +0000 (10:30 +0000)]
cosmetic changes

19 years agoARB_fragment_shader state
Michal Krol [Thu, 14 Apr 2005 10:28:14 +0000 (10:28 +0000)]
ARB_fragment_shader state

19 years agoARB_fragment/vertex_shader state
Michal Krol [Thu, 14 Apr 2005 10:27:19 +0000 (10:27 +0000)]
ARB_fragment/vertex_shader state

19 years agoARB_shading_language_100 bit;
Michal Krol [Thu, 14 Apr 2005 10:25:49 +0000 (10:25 +0000)]
ARB_shading_language_100 bit;
Fragment shader derivative hint

19 years agoadd GL_ARB_shading_language_100;
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

19 years agoadd FEATURE_ARB_shading_language_100;
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

19 years agodo not use isdigit() - can cause link errors
Michal Krol [Thu, 14 Apr 2005 10:19:19 +0000 (10:19 +0000)]
do not use isdigit() - can cause link errors

19 years agoupdated procedure for getting CVS-write access
Brian Paul [Wed, 13 Apr 2005 23:50:47 +0000 (23:50 +0000)]
updated procedure for getting CVS-write access

19 years agoAdd TLS support to libGL and, by virtue of using glthread.h and GL_CALL, all
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.

19 years agoRevert revision 1.13. This allows server-side libGLcore (in X.org) to build
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

19 years agoadd SLANG_SOURCES
Michal Krol [Wed, 13 Apr 2005 14:05:28 +0000 (14:05 +0000)]
add SLANG_SOURCES

19 years agoclean-up stuff
Michal Krol [Wed, 13 Apr 2005 14:05:06 +0000 (14:05 +0000)]
clean-up stuff

19 years agosimple front-end compiler
Michal Krol [Wed, 13 Apr 2005 14:04:41 +0000 (14:04 +0000)]
simple front-end compiler

19 years agoadd __fixed_input and __fixed_output qualifier support;
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;

19 years agocosmetic changes;
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;

19 years agocosmetic changes;
Michal Krol [Wed, 13 Apr 2005 13:03:23 +0000 (13:03 +0000)]
cosmetic changes;
fix syntax errors;

19 years agocosmetic changes;
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;

19 years agoconverts a .gc file to a C header containing string form of the file
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

19 years agoAdded a Spanish translation by David Rubio Miguélezand a Dutch
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.

19 years agoChanged escaping of double quotes.
Felix Kuehling [Tue, 12 Apr 2005 20:58:34 +0000 (20:58 +0000)]
Changed escaping of double quotes.

19 years agoPF_8A8R8G8B pixel format (Dave Reveman)
Brian Paul [Tue, 12 Apr 2005 01:41:04 +0000 (01:41 +0000)]
PF_8A8R8G8B pixel format (Dave Reveman)

19 years agoManage option translations in separate .po files to make translations
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.

19 years agoset table size to 1023 and use new HASH_FUNC() macro
Brian Paul [Sun, 10 Apr 2005 17:44:27 +0000 (17:44 +0000)]
set table size to 1023 and use new HASH_FUNC() macro

19 years agoBug #2945: Fix math error that left half the hash buckets empty.
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.

19 years agoRemove all the radeon_subset files. They were completely unused. Keith
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.

19 years agoUse the same dispatch.c source file for "normal" Mesa builds and DRI
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.

19 years agoAdd shaderobjects_3dlabs.c back into build but use #ifdef FEATURE_shading_language...
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.

19 years agoFollow the GLX_SGIX_fbconfig spec and return the complete list of
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.

19 years agoadded wrappers/helpers for creating/destroying rendering contexts
Brian Paul [Wed, 6 Apr 2005 22:41:46 +0000 (22:41 +0000)]
added wrappers/helpers for creating/destroying rendering contexts

19 years agochanged implementation of GetAllFBConfigs()
Brian Paul [Wed, 6 Apr 2005 22:40:39 +0000 (22:40 +0000)]
changed implementation of GetAllFBConfigs()

19 years agoFix Fake_glXChooseFBConfig so passing NULL attribList causes a list of all
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.

19 years agoMake linux-dri-x86-64 more like linux-dri-x86. Add ARCH_FLAGS. This is
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.

19 years agoMake glxgears_fbconfig compile and respect the DISPLAY setting. Add it
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.

19 years agoDon't call PrimitiveNotify with an invalid primitive. Fix ipers
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.

19 years agos/Togle/Toggle/
Brian Paul [Mon, 4 Apr 2005 20:06:40 +0000 (20:06 +0000)]
s/Togle/Toggle/

19 years agoupdated warning string to match patch in bug report 2868
Brian Paul [Mon, 4 Apr 2005 16:06:16 +0000 (16:06 +0000)]
updated warning string to match patch in bug report 2868

19 years agoUse FEATURE_shading_language to control whether the shading language
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.

19 years agoDisable _mesa_3dlabs_create_{program,shader}_object references.
Adam Jackson [Wed, 30 Mar 2005 17:02:18 +0000 (17:02 +0000)]
Disable _mesa_3dlabs_create_{program,shader}_object references.

19 years agoDisable C++ shading language code yet again. Doesn't compile with older
Brian Paul [Tue, 29 Mar 2005 02:46:59 +0000 (02:46 +0000)]
Disable C++ shading language code yet again.  Doesn't compile with older
g++ installations.

19 years agore-enable shading language sources
Brian Paul [Tue, 29 Mar 2005 02:31:43 +0000 (02:31 +0000)]
re-enable shading language sources

19 years agore-enable _mesa_init_shaderobjects_3dlabs() call
Brian Paul [Tue, 29 Mar 2005 02:31:11 +0000 (02:31 +0000)]
re-enable _mesa_init_shaderobjects_3dlabs() call

19 years agofix a variety of warnings/errors
Brian Paul [Tue, 29 Mar 2005 02:28:21 +0000 (02:28 +0000)]
fix a variety of warnings/errors

19 years agodisable 3dlabs shading language code until build is fixed
Brian Paul [Sat, 26 Mar 2005 19:45:40 +0000 (19:45 +0000)]
disable 3dlabs shading language code until build is fixed

19 years agodisable _mesa_init_shaderobjects_3dlabs() call until build is fixed
Brian Paul [Sat, 26 Mar 2005 19:45:08 +0000 (19:45 +0000)]
disable _mesa_init_shaderobjects_3dlabs() call until build is fixed

19 years agoremove INSTALL.GNU from tarball list
Brian Paul [Sat, 26 Mar 2005 19:22:06 +0000 (19:22 +0000)]
remove INSTALL.GNU from tarball list

19 years agoobsolete
Brian Paul [Sat, 26 Mar 2005 19:21:07 +0000 (19:21 +0000)]
obsolete

19 years agoimplement gl2_3dlabs_shhandle interface; resolve few TODOs
Michal Krol [Fri, 25 Mar 2005 12:16:53 +0000 (12:16 +0000)]
implement gl2_3dlabs_shhandle interface; resolve few TODOs

19 years agocleanup query functions
Michal Krol [Fri, 25 Mar 2005 12:12:50 +0000 (12:12 +0000)]
cleanup query functions

19 years agoadd _mesa_init_shaderobjects_3dlabs() declaration
Michal Krol [Fri, 25 Mar 2005 12:07:31 +0000 (12:07 +0000)]
add _mesa_init_shaderobjects_3dlabs() declaration

19 years agofix comments; fix TBuiltInResource typedef
Michal Krol [Fri, 25 Mar 2005 12:05:30 +0000 (12:05 +0000)]
fix comments; fix TBuiltInResource typedef

19 years agofix comments; disable DLL linkage for WIN32
Michal Krol [Fri, 25 Mar 2005 12:03:58 +0000 (12:03 +0000)]
fix comments; disable DLL linkage for WIN32

19 years agoFixed segfault due to an off-by-one error in SAVAGE_TEX_MAXLEVELS.
Felix Kuehling [Thu, 24 Mar 2005 11:53:19 +0000 (11:53 +0000)]
Fixed segfault due to an off-by-one error in SAVAGE_TEX_MAXLEVELS.

19 years agoInitialize texture addresses to something valid.
Felix Kuehling [Wed, 23 Mar 2005 17:59:09 +0000 (17:59 +0000)]
Initialize texture addresses to something valid.

19 years agoremove file after merge
Keith Whitwell [Wed, 23 Mar 2005 12:01:08 +0000 (12:01 +0000)]
remove file after merge

19 years agono change
Brian Paul [Wed, 23 Mar 2005 03:34:24 +0000 (03:34 +0000)]
no change

19 years agouse $(*_LIB) in the *_LIB_NAME definitions
Brian Paul [Wed, 23 Mar 2005 02:12:21 +0000 (02:12 +0000)]
use $(*_LIB) in the *_LIB_NAME definitions

19 years agorename mesaVis to try and improve clarity
Keith Whitwell [Tue, 22 Mar 2005 14:30:30 +0000 (14:30 +0000)]
rename mesaVis to try and improve clarity

19 years agoadd FreeTexImageData hook to help single-copy texturing in drivers
Keith Whitwell [Tue, 22 Mar 2005 14:27:10 +0000 (14:27 +0000)]
add FreeTexImageData hook to help single-copy texturing in drivers

19 years agomerge unichrome changes from branch
Keith Whitwell [Tue, 22 Mar 2005 14:25:55 +0000 (14:25 +0000)]
merge unichrome changes from branch

19 years agoRemove test for defined(DRM_USE_MALLOC) around definition of
Keith Whitwell [Tue, 22 Mar 2005 13:34:27 +0000 (13:34 +0000)]
Remove test for defined(DRM_USE_MALLOC) around definition of
drmSIGIOHandler().

19 years agoAdd more formats to test.
Keith Whitwell [Tue, 22 Mar 2005 13:32:35 +0000 (13:32 +0000)]
Add more formats to test.

19 years agoAdd DRM_USE_MALLOC flag
Keith Whitwell [Tue, 22 Mar 2005 13:31:35 +0000 (13:31 +0000)]
Add DRM_USE_MALLOC flag

19 years agoCalculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer in
Keith Whitwell [Tue, 22 Mar 2005 13:16:20 +0000 (13:16 +0000)]
Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer in
driFillInModes().

19 years agoAdd support for production version of ATI RN50/ES1000. (ATI Technologies
Michel Dänzer [Fri, 18 Mar 2005 23:05:07 +0000 (23:05 +0000)]
Add support for production version of ATI RN50/ES1000. (ATI Technologies
Inc.)

19 years agoMisc fixes.
Aapo Tahkola [Fri, 18 Mar 2005 14:44:27 +0000 (14:44 +0000)]
Misc fixes.

19 years agoupdate against 03-Feb-2005 release
Michal Krol [Fri, 18 Mar 2005 14:28:02 +0000 (14:28 +0000)]
update against 03-Feb-2005 release