OSDN Git Service
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.
Adam Jackson [Wed, 30 Mar 2005 17:02:18 +0000 (17:02 +0000)]
Disable _mesa_3dlabs_create_{program,shader}_object references.
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.
Brian Paul [Tue, 29 Mar 2005 02:31:43 +0000 (02:31 +0000)]
re-enable shading language sources
Brian Paul [Tue, 29 Mar 2005 02:31:11 +0000 (02:31 +0000)]
re-enable _mesa_init_shaderobjects_3dlabs() call
Brian Paul [Tue, 29 Mar 2005 02:28:21 +0000 (02:28 +0000)]
fix a variety of warnings/errors
Brian Paul [Sat, 26 Mar 2005 19:45:40 +0000 (19:45 +0000)]
disable 3dlabs shading language code 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
Brian Paul [Sat, 26 Mar 2005 19:22:06 +0000 (19:22 +0000)]
remove INSTALL.GNU from tarball list
Brian Paul [Sat, 26 Mar 2005 19:21:07 +0000 (19:21 +0000)]
obsolete
Michal Krol [Fri, 25 Mar 2005 12:16:53 +0000 (12:16 +0000)]
implement gl2_3dlabs_shhandle interface; resolve few TODOs
Michal Krol [Fri, 25 Mar 2005 12:12:50 +0000 (12:12 +0000)]
cleanup query functions
Michal Krol [Fri, 25 Mar 2005 12:07:31 +0000 (12:07 +0000)]
add _mesa_init_shaderobjects_3dlabs() declaration
Michal Krol [Fri, 25 Mar 2005 12:05:30 +0000 (12:05 +0000)]
fix comments; fix TBuiltInResource typedef
Michal Krol [Fri, 25 Mar 2005 12:03:58 +0000 (12:03 +0000)]
fix comments; disable DLL linkage for WIN32
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.
Felix Kuehling [Wed, 23 Mar 2005 17:59:09 +0000 (17:59 +0000)]
Initialize texture addresses to something valid.
Keith Whitwell [Wed, 23 Mar 2005 12:01:08 +0000 (12:01 +0000)]
remove file after merge
Brian Paul [Wed, 23 Mar 2005 03:34:24 +0000 (03:34 +0000)]
no change
Brian Paul [Wed, 23 Mar 2005 02:12:21 +0000 (02:12 +0000)]
use $(*_LIB) in the *_LIB_NAME definitions
Keith Whitwell [Tue, 22 Mar 2005 14:30:30 +0000 (14:30 +0000)]
rename mesaVis to try and improve clarity
Keith Whitwell [Tue, 22 Mar 2005 14:27:10 +0000 (14:27 +0000)]
add FreeTexImageData hook to help single-copy texturing in drivers
Keith Whitwell [Tue, 22 Mar 2005 14:25:55 +0000 (14:25 +0000)]
merge unichrome changes from branch
Keith Whitwell [Tue, 22 Mar 2005 13:34:27 +0000 (13:34 +0000)]
Remove test for defined(DRM_USE_MALLOC) around definition of
drmSIGIOHandler().
Keith Whitwell [Tue, 22 Mar 2005 13:32:35 +0000 (13:32 +0000)]
Add more formats to test.
Keith Whitwell [Tue, 22 Mar 2005 13:31:35 +0000 (13:31 +0000)]
Add DRM_USE_MALLOC flag
Keith Whitwell [Tue, 22 Mar 2005 13:16:20 +0000 (13:16 +0000)]
Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer in
driFillInModes().
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.)
Aapo Tahkola [Fri, 18 Mar 2005 14:44:27 +0000 (14:44 +0000)]
Misc fixes.
Michal Krol [Fri, 18 Mar 2005 14:28:02 +0000 (14:28 +0000)]
update against 03-Feb-2005 release
Michal Krol [Fri, 18 Mar 2005 14:21:07 +0000 (14:21 +0000)]
enable all 3dlabs front-end compiler sources
Michal Krol [Fri, 18 Mar 2005 14:07:47 +0000 (14:07 +0000)]
a little program to change // comments to /* */ ones
Michal Krol [Fri, 18 Mar 2005 12:18:00 +0000 (12:18 +0000)]
glslang flex and bison sources:
flex glslang.l
bison -t -v -d glslang.y
mv glslang.tab.c Gen_glslang_tab.cpp (shouldn't be .c?)
mv glslang.tab.h glslang_tab.h
Aapo Tahkola [Thu, 17 Mar 2005 22:28:06 +0000 (22:28 +0000)]
Fix to get doom3 started.
Ian Romanick [Thu, 17 Mar 2005 22:01:39 +0000 (22:01 +0000)]
xmllint fixes. Revert 'note_unflushed' changes that were accidetnally
committed in the last version.
Aapo Tahkola [Thu, 17 Mar 2005 21:50:01 +0000 (21:50 +0000)]
Simple TCL stage and ability to disable vps.
Ian Romanick [Thu, 17 Mar 2005 21:48:37 +0000 (21:48 +0000)]
Enable the generation of server-side __glGetBooleanv_size and related
functions. There are two parts to this. First, a size element with a name
"Get" is shorthand for having four separate size elements with names
"GetIntegerv", "GetDoublev", "GetFloatv", and "GetBooleanv". Additionally,
a count of "?" is treated specially. This causes a call to a handcoded
function named "__gl<base name>_variable_size". This is *only* needed to
support GL_COMPRESSED_TEXTURE_FORMATS. That enum can return a variable
number of values depending how many compressed texture formats are supported
by the implementation.
Fix a problem with glGetProgram{Local,Env}Parameter[df]vARB,
glAreProgramsResidentNV, and glGetVertexAttribivNV. These changes only
affect code generated for the server-side.
The changes to enum.c are caused by enums added for the server-side
__glGetBooleanv_size functions.
Ian Romanick [Thu, 17 Mar 2005 20:56:13 +0000 (20:56 +0000)]
Minor refactoring and code tweaking. The only notable chage is that
FilterGLAPISpecBase::xref is replaced by
FilterGLAPISpecBase::functions_by_name. The notable difference between the
two is that ::functions_by_name includes all functions, whether they have an
assigned offset or not. This feature will be useful (necessary) when more
server-side code is generated.
Ian Romanick [Thu, 17 Mar 2005 20:36:20 +0000 (20:36 +0000)]
Minor vertex array support tweaks. These are in preparation for the
(eventual) addition of support for ARB_vertex_buffer_object. Elminitate the
need for array_state_vector::large_header. Make some very minor tweaks to
the handling of the indices pointer in emit_DrawElements_old.
Ian Romanick [Thu, 17 Mar 2005 20:13:09 +0000 (20:13 +0000)]
Minor vertex array support tweaks. Most of these are in preparation for the
(eventual) addition of support for ARB_vertex_buffer_object.
Move all the private vertex array data structures out of
indirect_vertex_array.c and into indirect_va_private.h.
Rename array_state_vector::enabled_array_count to
array_state_vector::enabled_client_array_count.
Make sure that both the GL extension string and the server GL version are
available when __glXInitVertexState is called.
Make sure that array_state::normalized is set correctly in the array's
gl*Pointer function.
Ian Romanick [Thu, 17 Mar 2005 01:50:32 +0000 (01:50 +0000)]
Refactored some of the code for PrintGlxReqSize_[ch]. This ensures that the
same set of functions will be iterated for both the generated C-source file
and the generated header file.
Ian Romanick [Thu, 17 Mar 2005 01:48:11 +0000 (01:48 +0000)]
Fix the handling of zero-sized output parameters (i.e., those with type
'GLvoid *'). This fixes the GLX protocol for glGetProgramStringARB. This
fixes bugzilla #2747.
Remove the 'ignore="true"' from glVertexAttrib4bvARB. This fixes bugzilla
#2746.
Ian Romanick [Thu, 17 Mar 2005 01:36:24 +0000 (01:36 +0000)]
Hard-code the client-side maximum GL version. It turns out that there are
some flaws in the calculation code when the highest version listed in
known_gl_extensions is supported. This code would also have some problems
with some of the new features (that don't have an associated extension) on
GL 2.0.
Aapo Tahkola [Wed, 16 Mar 2005 22:32:48 +0000 (22:32 +0000)]
Proper VAP output configuration as R300_RS_ROUTE_0_COLOR became optional and broke arbvptorus(takes no input color but produces output color). Also removing some useless code.
Ben Skeggs [Wed, 16 Mar 2005 00:54:09 +0000 (00:54 +0000)]
Fixed some strangeness when mixing textured/flat primitives. Skipping texture units should render correctly also. Aapo, I dont think I broke glxgears again on you...
Roland Scheidegger [Tue, 15 Mar 2005 22:23:29 +0000 (22:23 +0000)]
add support for user-configurable brilinear filtering on r200
Aapo Tahkola [Tue, 15 Mar 2005 20:55:29 +0000 (20:55 +0000)]
Fix to get glxgears display anything.
Ben Skeggs [Tue, 15 Mar 2005 17:09:35 +0000 (17:09 +0000)]
For some reason the Makefile didn't commit..
Ben Skeggs [Tue, 15 Mar 2005 17:00:44 +0000 (17:00 +0000)]
Initial multitexturing support. Old behaviour can be re-enabled by changing ifdefs in r300_setup_rs_unit and r300SetupPixelShader in r300_state.c\nRequires DRM update.
Ian Romanick [Mon, 14 Mar 2005 22:09:31 +0000 (22:09 +0000)]
If setting GL_PACK_INVERT_MESA results in a GL error, log it.
Felix Kuehling [Mon, 14 Mar 2005 21:52:46 +0000 (21:52 +0000)]
When timestamping textures, need to emit the event with SAVAGE_WAIT_3D
set. Otherwise the 3D engine may still be using a texture that is
being overwritten. In order to minimize the cost of waiting, timestamp
textures only when needed: when a texture image changes, when a
different texture is bound to a texture unit or when a texture unit is
disabled. (Used to be after flushing every command buffer.)
Peter Zubaj [Mon, 14 Mar 2005 20:35:00 +0000 (20:35 +0000)]
Stencil support
Reflex from mesa demos doesn't work
TODO - double side stencil
I hope that I didn't break anything
Michal Krol [Mon, 14 Mar 2005 12:43:59 +0000 (12:43 +0000)]
re-enable slang sources
Michal Krol [Mon, 14 Mar 2005 12:24:32 +0000 (12:24 +0000)]
make it compile under linux
Michal Krol [Mon, 14 Mar 2005 12:23:14 +0000 (12:23 +0000)]
make it compile under gcc 3.3.2
Michal Krol [Mon, 14 Mar 2005 12:19:36 +0000 (12:19 +0000)]
fix enum comma
Aapo Tahkola [Sun, 13 Mar 2005 12:23:08 +0000 (12:23 +0000)]
Replacing alpha test bits with values that give desired results as compaired to software rendering. Alpha test in textures is still completely broken as can be seen in progs/demos/fire and various games.
Felix Kuehling [Sun, 13 Mar 2005 00:20:03 +0000 (00:20 +0000)]
Updated savage_dri.h from Xorg CVS. This removes definitions that are
not part of the DDX->DRI interface and should never have been in this
file in the first place.
Felix Kuehling [Sat, 12 Mar 2005 23:00:53 +0000 (23:00 +0000)]
Removed savagedma.[ch]. They have been unused for a while and were only
kept around for reference. Now that command DMA is implemented in the
DRM module they are no longer needed.
Aapo Tahkola [Sat, 12 Mar 2005 10:14:09 +0000 (10:14 +0000)]
Unlike radeon and r200 drivers r300AllocCmdBuf allocs dwords not bytes.
Ian Romanick [Fri, 11 Mar 2005 20:55:03 +0000 (20:55 +0000)]
Add support for ARB_draw_buffers and ARB_occlusion_query. The GLX protocol
for these extensions (as well as ARB_vertex_program and ARB_matrix_palette)
was just approved by the ARB on 8-Mar-2005. Now the only extension missing
for 1.5 support is ARB_vertex_buffer_object.
The opcodes for ARB_matrix_palette were also added to gl_API.xml. Since
this extension isn't supported by Mesa, no code is generated for it. Some
tabs were also converted to spaces in the comment for
GetCompressedTexImageARB.
Brian Paul [Fri, 11 Mar 2005 14:54:51 +0000 (14:54 +0000)]
add MAT_DIRTY_FLAGS in _math_matrix_mul_floats(), (bug 2696)
Paul Mackerras [Fri, 11 Mar 2005 11:38:23 +0000 (11:38 +0000)]
Add suitable definitions for the _REV formats, plus a comment
explaining why they are the same as the non-REV formats now that
textures don't get byte-swapped on their way to the chip.
Fix the ARGB4444 and L8 formats.
Add entries for the A8 and RGB332 formats.
Felix Kuehling [Thu, 10 Mar 2005 22:45:00 +0000 (22:45 +0000)]
- Flush before updating the timestamp of a texture heap from a bound texture.
- Flush before using a new texture or before disabling a texture unit,
because savageFlushCmdBuf can only update the timestamp of the last
used texture. This fixes corruption in quake2 with single-textured
lighting.
Felix Kuehling [Wed, 9 Mar 2005 15:28:47 +0000 (15:28 +0000)]
If the texture image changed force emitting the texture address, even
if it didn't change. This seems to flush texture cashes. Fixes
multi-textured lighting in quake2.
Vladimir Dergachev [Wed, 9 Mar 2005 05:31:31 +0000 (05:31 +0000)]
Don't use R200 texture constants - R300 fields are all different.
Vladimir Dergachev [Wed, 9 Mar 2005 00:40:55 +0000 (00:40 +0000)]
Deal with texture formats in a more robust way.
Aapo Tahkola [Tue, 8 Mar 2005 22:29:45 +0000 (22:29 +0000)]
Replacing some RADEON cmd types with r300 counterparts.
Aapo Tahkola [Tue, 8 Mar 2005 03:29:46 +0000 (03:29 +0000)]
Improving Vladimirs alpha test fix a bit as it turns out r300Enable didnt correctly disable alpha test. Vertex programs with high vertex count now run a lot faster as software fallback is no longer on. Also disabling 'temp to result'-instructions as they probably violate the spec and dont seem to be something thats needed.
Ian Romanick [Sun, 6 Mar 2005 08:55:39 +0000 (08:55 +0000)]
Actually *use* the count_scale value associated with a parameter.
Felix Kuehling [Sun, 6 Mar 2005 03:52:01 +0000 (03:52 +0000)]
Don't synchronize after each frame. Allow the GPU to be one frame
ahead of the CPU for more parallelism of CPU and GPU. Unfortunately
there seems to be some broken hardware (like my ProSavageDDR) on which
status register updates are delayed sometimes. This leads to very
jerky animation if the hardware can buffer more than the current
frame. A new option "sync_frames" can be used as a remedy on such
broken hardware.
Felix Kuehling [Sun, 6 Mar 2005 01:28:30 +0000 (01:28 +0000)]
- Fixed two bugs related to DMA buffer handling that showed up with the
new DRM version 2.4 and command DMA.
- Flush less.
- Bumped the driver date.
Vladimir Dergachev [Sat, 5 Mar 2005 22:20:57 +0000 (22:20 +0000)]
Add format 15. It turned out to be X,X,X,X,X8.