Keith Whitwell [Fri, 11 Feb 2005 09:34:05 +0000 (09:34 +0000)]
mesa-main-0-NULL.patch from Jeff Muizelaar
Ben Skeggs [Fri, 11 Feb 2005 05:59:13 +0000 (05:59 +0000)]
Port of r200 VB code. VB path should be as fast as the immediate path now, tuxracer should render correctly. Immediate path was left enabled.
Roland Scheidegger [Thu, 10 Feb 2005 22:36:06 +0000 (22:36 +0000)]
add texture micro and macro tiling to radeon/r200 driver. This can improve performance up to 15% in texture-intensive applications. Convert the driver to use the correct blit format and blit width instead of fixed blit format and blit width when uploading textures to make it work.
Roland Scheidegger [Thu, 10 Feb 2005 21:59:20 +0000 (21:59 +0000)]
add the new RADEON_CUBIC_OFFSET/FACES state packets/registers to radeon (and r200) sanity code
Roland Scheidegger [Thu, 10 Feb 2005 18:28:44 +0000 (18:28 +0000)]
(Andreas Stenglein) fix projected textures with swtcl, they need the w coordinate of the vertex (bugzilla #1648)
Brian Paul [Thu, 10 Feb 2005 16:08:07 +0000 (16:08 +0000)]
new comments, fix zoffset error test
Brian Paul [Thu, 10 Feb 2005 15:18:26 +0000 (15:18 +0000)]
lots of updates
Aapo Tahkola [Thu, 10 Feb 2005 12:40:41 +0000 (12:40 +0000)]
Added kindly note about single buffer mode.
Aapo Tahkola [Thu, 10 Feb 2005 11:02:55 +0000 (11:02 +0000)]
Updating master copy of r300_reg.h and turning immediate mode back on
Keith Whitwell [Thu, 10 Feb 2005 10:57:22 +0000 (10:57 +0000)]
mesa-tnl-0-to-NULL.patch from Jeff Muizelaar
Keith Whitwell [Thu, 10 Feb 2005 10:55:30 +0000 (10:55 +0000)]
Catch no-op vertex buffers consisting only of vertices which will
also appear in a future buffer.
Aapo Tahkola [Thu, 10 Feb 2005 10:45:54 +0000 (10:45 +0000)]
Removing some regs that are wrong and adding some comments to r300_reg.h .
Aapo Tahkola [Thu, 10 Feb 2005 08:56:35 +0000 (08:56 +0000)]
Support for PolygonMode. Not too far from working even though i almost gave up once already.
Vladimir Dergachev [Thu, 10 Feb 2005 07:39:11 +0000 (07:39 +0000)]
Fix copy'n'paste errors.
Print command buffer sizes during startup (TODO: remove 1 || when the driver is more mature).
Aapo Tahkola [Thu, 10 Feb 2005 05:11:31 +0000 (05:11 +0000)]
Turns out unknown5 was border color. texwrap looks good now.
Aapo Tahkola [Thu, 10 Feb 2005 04:43:07 +0000 (04:43 +0000)]
Adding support for selecting line width. Stipple patterns still cause lots of trouble.
Ian Romanick [Wed, 9 Feb 2005 22:16:38 +0000 (22:16 +0000)]
Simple test for ARB_texture_env_crossbar functionality. It is difficult
to come up with good tests for this functionality that don't require
either ATI_texture_env_combine3 or NV_texture_env_combine4.
Brian Paul [Wed, 9 Feb 2005 18:46:16 +0000 (18:46 +0000)]
glGet*(GL_FRAGMENT_PROGRAM_BINDING_NV) was returning the vertex program binding.
Brian Paul [Wed, 9 Feb 2005 16:18:39 +0000 (16:18 +0000)]
Added a test/clamp in the scale_internal_*() functions to prevent reading
a row of pixels beyond the input buffer's bounds.
FDO/Mesa bug #2510.
Aapo Tahkola [Wed, 9 Feb 2005 05:53:34 +0000 (05:53 +0000)]
Enabled user-defined point size, enabled zbiases for rest of the primitives and fixed bad vertex number checks triggered by nurb.
Brian Paul [Wed, 9 Feb 2005 03:51:11 +0000 (03:51 +0000)]
initial support for GL_EXT_framebuffer_object
Brian Paul [Wed, 9 Feb 2005 03:50:30 +0000 (03:50 +0000)]
implement the 'completeness' tests
Ian Romanick [Wed, 9 Feb 2005 03:11:23 +0000 (03:11 +0000)]
Generate GLX protocol for pixel single commands.
Felix Kuehling [Wed, 9 Feb 2005 00:45:16 +0000 (00:45 +0000)]
Fixed stride of incomplete tiles.
Keith Whitwell [Tue, 8 Feb 2005 20:52:02 +0000 (20:52 +0000)]
SUBPIXEL fixes from Dieter
Vladimir Dergachev [Tue, 8 Feb 2005 20:27:09 +0000 (20:27 +0000)]
Remove #ifdef's around PolygonOffset function.
Print number of missing entry for texture format.
Add alpha-luminance format.
Ian Romanick [Tue, 8 Feb 2005 19:52:26 +0000 (19:52 +0000)]
Correct a couple problems / omissions in the DTD.
Aapo Tahkola [Tue, 8 Feb 2005 19:29:05 +0000 (19:29 +0000)]
Typo..
Aapo Tahkola [Tue, 8 Feb 2005 19:26:59 +0000 (19:26 +0000)]
Fix the bug and get zbias back into shape. There might still be some problems with initial zbias...
Michel Dänzer [Tue, 8 Feb 2005 17:39:08 +0000 (17:39 +0000)]
Call _mesa_ResizeBuffersMESA() in r200Viewport(), fixes incorrect rendering
in bzflag 2.0. (Alexander E. Patrakov)
Brian Paul [Tue, 8 Feb 2005 14:44:01 +0000 (14:44 +0000)]
clamp anisotropy against max value
Aapo Tahkola [Tue, 8 Feb 2005 07:05:25 +0000 (07:05 +0000)]
BIG FAT NOTE: Theres a nasty bug somewhere thats causing vb color buffer clears and other things not to work. This bug can be triggered by extending struct r300_hw_state by two struct r300_state_atom's from its current size. Everything zbs and unk42B4 related is now covered with HAVE_ZBS and GA ifdefs. Who wants to fix it? Not i. :)
Adam Jackson [Tue, 8 Feb 2005 05:46:53 +0000 (05:46 +0000)]
Bug #2477: Make GLU/GLw/glut build properly even with -fvisibility=hidden.
Aapo Tahkola [Tue, 8 Feb 2005 05:33:44 +0000 (05:33 +0000)]
Better fix to get tuxracer working.
Aapo Tahkola [Tue, 8 Feb 2005 04:46:39 +0000 (04:46 +0000)]
fog + immediate mode = bad things
Aapo Tahkola [Tue, 8 Feb 2005 04:31:29 +0000 (04:31 +0000)]
Implemented checks that prevent r300 from locking up when bad number of verts are given. Also tweaked WARN_ONCE a bit to handle va-args.
Vladimir Dergachev [Tue, 8 Feb 2005 04:20:40 +0000 (04:20 +0000)]
Let Polygon Offset be turned on and off.
Brian Paul [Tue, 8 Feb 2005 04:08:56 +0000 (04:08 +0000)]
just some comments
Brian Paul [Tue, 8 Feb 2005 03:46:37 +0000 (03:46 +0000)]
a bunch of assorted fixes
Brian Paul [Tue, 8 Feb 2005 03:46:08 +0000 (03:46 +0000)]
plug in GL_EXT_framebuffer_object functions
Brian Paul [Tue, 8 Feb 2005 03:45:44 +0000 (03:45 +0000)]
removed GL_EXT_framebuffer_object tokens
Brian Paul [Tue, 8 Feb 2005 03:45:08 +0000 (03:45 +0000)]
added GL_EXT_framebuffer_object enums/funcs. Remove when glext.h is updated
Brian Paul [Tue, 8 Feb 2005 03:44:24 +0000 (03:44 +0000)]
Add new entrypoints for GL_EXT_framebuffer_object.
Ian Romanick [Tue, 8 Feb 2005 02:11:44 +0000 (02:11 +0000)]
Definitions for EXT_framebuffer_object. Just <include/> it in gl_API.xml
when ready.
Ian Romanick [Tue, 8 Feb 2005 02:11:14 +0000 (02:11 +0000)]
Add the ability to include other XML files by using a
<include name="file"/> element as a sub-element of <OpenGLAPI>.
Brian Paul [Tue, 8 Feb 2005 02:06:00 +0000 (02:06 +0000)]
checkpoint latest work
Brian Paul [Tue, 8 Feb 2005 02:05:13 +0000 (02:05 +0000)]
added missing prototype
Brian Paul [Tue, 8 Feb 2005 02:04:49 +0000 (02:04 +0000)]
indentation fix
Aapo Tahkola [Tue, 8 Feb 2005 01:49:03 +0000 (01:49 +0000)]
To cut the long and boring story short, polygon offsets should now work. vb mode colorbuffer clears are still mysticly broken by offsets... Maybe we need to merge zbs and unk42B4 together?
Brian Paul [Mon, 7 Feb 2005 15:04:56 +0000 (15:04 +0000)]
improved warning message
Keith Whitwell [Mon, 7 Feb 2005 13:20:17 +0000 (13:20 +0000)]
argb8888 optimizations from via branch
Keith Whitwell [Mon, 7 Feb 2005 11:00:32 +0000 (11:00 +0000)]
More texture enums (Andreas Stenglein)
Keith Whitwell [Mon, 7 Feb 2005 10:36:00 +0000 (10:36 +0000)]
GL_ARB_texture_rectangle enums (Andreas Stenglein)
Brian Paul [Mon, 7 Feb 2005 05:08:24 +0000 (05:08 +0000)]
additional work on GL_EXT_framebuffer_object
Jerome Glisse [Sun, 6 Feb 2005 12:37:23 +0000 (12:37 +0000)]
Added PCI id (0x4152).
Felix Kuehling [Sat, 5 Feb 2005 22:10:14 +0000 (22:10 +0000)]
Disable vertex DMA on SuperSavages.
Felix Kuehling [Sat, 5 Feb 2005 21:21:02 +0000 (21:21 +0000)]
- Fixed scissor rectangle not moving with the window (Xorg bug #1731).
- Flush buffered primitives before changing scissors.
- Require Savage DRM version 2.1.0, so that the broken single-cliprect
code can finally rest in peace.
- Removed some more dead code.
Brian Paul [Sat, 5 Feb 2005 20:00:15 +0000 (20:00 +0000)]
added fbobject.c to sources
Brian Paul [Sat, 5 Feb 2005 19:56:45 +0000 (19:56 +0000)]
Some initial work on GL_EXT_framebuffer_object.
Jerome Glisse [Sat, 5 Feb 2005 19:52:26 +0000 (19:52 +0000)]
Added PCI id (0x4152).
Brian Paul [Sat, 5 Feb 2005 18:12:59 +0000 (18:12 +0000)]
Remove the Shared->TexObjectList pointer and Next field from gl_texture_object.
Was only used by two drivers to walk over all texture objects. Can do that
via the hash table instead.
Cleaned up some comments for struct gl_texture_object.
Brian Paul [Sat, 5 Feb 2005 18:11:05 +0000 (18:11 +0000)]
add a few comments
Jerome Glisse [Sat, 5 Feb 2005 18:01:21 +0000 (18:01 +0000)]
Modified hw state for big endian computers.
Brian Paul [Sat, 5 Feb 2005 17:43:33 +0000 (17:43 +0000)]
remove dependency on Shared->TexObjectList
Brian Paul [Sat, 5 Feb 2005 17:38:13 +0000 (17:38 +0000)]
remove unneeded code
Brian Paul [Sat, 5 Feb 2005 17:37:00 +0000 (17:37 +0000)]
removed need for Shared->TexObjectList, walk over texture hash table entries instead
Felix Kuehling [Sat, 5 Feb 2005 13:17:34 +0000 (13:17 +0000)]
Fixed a typo in an assertion. (Don't understand how this ever compiled.)
Found by Andreas Stenglein.
Vladimir Dergachev [Sat, 5 Feb 2005 03:13:34 +0000 (03:13 +0000)]
Warn of unknown texture formats.
Ian Romanick [Sat, 5 Feb 2005 00:59:57 +0000 (00:59 +0000)]
Fix some mixed spaces / tabs issues in generated code. Commit generated
files that have been trivially changed by other recent commits.
Ian Romanick [Fri, 4 Feb 2005 19:29:30 +0000 (19:29 +0000)]
Enable client-side GLX support for texture compression extensions.
Felix Kuehling [Fri, 4 Feb 2005 00:25:41 +0000 (00:25 +0000)]
Added an option texture_heaps that allows selecting which texture heaps
will be used. Implemented this option in the Savage driver. On my
ProSavageDDR uploads to AGP memory are about 1.5 times as fast as
uploads to card memory. On non-IGP hardware the difference may be even
bigger. Now mplayer -gl is getting really usable.
Felix Kuehling [Fri, 4 Feb 2005 00:17:21 +0000 (00:17 +0000)]
Made subtile upload a template. This speeds up tiled texture uploads by
about a factor 1.3.
Felix Kuehling [Thu, 3 Feb 2005 21:40:21 +0000 (21:40 +0000)]
Use all texture heaps in a fair way when textures need to be kicked in
order to make room for new textures. In particular this fixes texture
trashing on the first heap when the second heap is occupied by
currently unused textures (observed with Torcs and the Savage driver).
Heaps are weighted by their sizes by default but drivers can override
these and apply their own weights based on relative texture upload
speeds to the respective heaps.
Aapo Tahkola [Thu, 3 Feb 2005 19:51:57 +0000 (19:51 +0000)]
Removing some trash and disabling fog fallback as it seem its causing more harm than good. Tuxracer should now work at least with vbs. Fix for vb colorbuffer clear bug is underway...
Aapo Tahkola [Thu, 3 Feb 2005 19:43:27 +0000 (19:43 +0000)]
Changing vb code to handle inputs correctly.
Vladimir Dergachev [Thu, 3 Feb 2005 17:48:32 +0000 (17:48 +0000)]
Start beginning of pixel shader generator..
Vladimir Dergachev [Thu, 3 Feb 2005 16:05:21 +0000 (16:05 +0000)]
Forgot to increase the length.
Vladimir Dergachev [Thu, 3 Feb 2005 16:01:46 +0000 (16:01 +0000)]
Looks like we need at least one instruction for pixel shader.
Vladimir Dergachev [Thu, 3 Feb 2005 15:44:06 +0000 (15:44 +0000)]
Get vertex programs supplied by the user work properly with immediate mode - vertex buffer mode worked by accident.
Fix alu_offset in SINGLE_TEXTURE_PIPELINE.
Vladimir Dergachev [Thu, 3 Feb 2005 06:33:44 +0000 (06:33 +0000)]
Since high bits can be used for flags, mask them out.
This stops arbvpwarpmesh from segfaulting and it actually works - with immediate mode rendering.
Vladimir Dergachev [Thu, 3 Feb 2005 04:16:59 +0000 (04:16 +0000)]
Remove redundant instructions from fixed pipelines, looks like they do not do anything, at least on my hardware.
Vladimir Dergachev [Thu, 3 Feb 2005 03:48:22 +0000 (03:48 +0000)]
Mark ZBIAS definitions.
Vladimir Dergachev [Thu, 3 Feb 2005 03:47:12 +0000 (03:47 +0000)]
This was too optimistic sorry - all that register does is something weird with polygon culling.
Vladimir Dergachev [Thu, 3 Feb 2005 03:43:01 +0000 (03:43 +0000)]
Get Polygon offset fill to work.
Make WARN_ONCE message more informative.
Ian Romanick [Thu, 3 Feb 2005 00:38:40 +0000 (00:38 +0000)]
Added a bunch of extensions that were previously supported but weren't
in the gl_API.xml database. Add "official" support for SGI_color_matrix
and SGI_texture_color_table. These were previously supported only by
way of ARB_imaging.
Felix Kuehling [Wed, 2 Feb 2005 15:57:25 +0000 (15:57 +0000)]
Check for heap == NULL before driSetTextureSwapCounterLocation.
Felix Kuehling [Wed, 2 Feb 2005 15:52:29 +0000 (15:52 +0000)]
Don't try to kick textures from a NULL tex heap.
Felix Kuehling [Wed, 2 Feb 2005 14:43:03 +0000 (14:43 +0000)]
Fixed flushing of client-side vertex buffers.
Felix Kuehling [Wed, 2 Feb 2005 14:42:00 +0000 (14:42 +0000)]
Fixed some debug output that was unconditionally enabled.
Brian Paul [Wed, 2 Feb 2005 14:12:59 +0000 (14:12 +0000)]
clamp viewport against ctx->Const.MaxViewportWidth/Height instead of MAX_WIDTH/HEIGHT
Aapo Tahkola [Wed, 2 Feb 2005 13:29:11 +0000 (13:29 +0000)]
Changed parts of r300_setup_routing to use WARN_ONCE.
Ian Romanick [Wed, 2 Feb 2005 00:54:45 +0000 (00:54 +0000)]
Small refactor. Add glXFunctionIterator, which derrives from
glFunctionIterator and is used by GlxProto. The difference between the two
iterator classes is that glXFunctionIterator skips functions that the GLX
protocol code does not care about.
Replace all the remaining occurances of glParameter::p_count_parameters and
glFunction::count_parameters with the count_parameter_list.
Add GlxProto::size_call to generate the C code to calculate 'compsize'.
These trivially modify the generated code.
Aapo Tahkola [Tue, 1 Feb 2005 23:12:36 +0000 (23:12 +0000)]
Add a missing break and a reminder.
Aapo Tahkola [Tue, 1 Feb 2005 22:45:11 +0000 (22:45 +0000)]
Implement appropriate src checks for attribs/params.
Aapo Tahkola [Tue, 1 Feb 2005 19:56:52 +0000 (19:56 +0000)]
Implemented bunch of ops.
Aapo Tahkola [Tue, 1 Feb 2005 16:56:52 +0000 (16:56 +0000)]
Vertex programs work now with some restrictions. I expect arbvptorus to work
correctly when normals are delivered. Please note that some programs only
start in vb mode as there is something wrong in immediate mode vb code.
Vladimir Dergachev [Tue, 1 Feb 2005 15:51:54 +0000 (15:51 +0000)]
Make WARN_ONCE messages more informative.
Vladimir Dergachev [Tue, 1 Feb 2005 15:46:23 +0000 (15:46 +0000)]
Reduce noiseness of the driver.
Vladimir Dergachev [Tue, 1 Feb 2005 15:27:36 +0000 (15:27 +0000)]
Get alpha in textures to work properly.
Vladimir Dergachev [Tue, 1 Feb 2005 06:55:58 +0000 (06:55 +0000)]
Properly set ABLEND and CBLEND registers. The older code worked, but by accident.