Commit graph

10820 commits

Author SHA1 Message Date
Wang Zhenyu
a74eec5af5 i915: Add support for 945GME chip 2007-05-31 11:18:21 +01:00
Wang Zhenyu
1b27ef39c9 i965: Add pci info for 965GME/GLE chip. 2007-05-31 11:18:14 +01:00
Michel Dänzer
2b7ef2549f Fix r300SetTexOffset for big endian platforms.
This was broken by the unification of the texture format table.
2007-05-30 15:37:42 +02:00
Oliver McFadden
d61a595a5b r300: Corrected r300PointSize based on dumping the blob.
The OpenGL specification also verifies the default point size should be 1.0.
2007-05-30 03:19:26 +00:00
Oliver McFadden
da1d9d9795 r300: Corrected r300LineWidth based on dumping the blob.
The OpenGL specification also verifies the default line width should be 1.0.
2007-05-30 03:19:26 +00:00
Oliver McFadden
7c008f365b r300: Removed goto statement in r300SetupRSUnit. 2007-05-30 03:19:26 +00:00
Oliver McFadden
e20acd9168 r300: Cleaned up r300SetupRSUnit. 2007-05-30 03:19:26 +00:00
Oliver McFadden
705298c281 r300: Cleaned up the state atom checking functions. 2007-05-30 03:19:26 +00:00
Oliver McFadden
6439bc5c0d r300: Cleaned up the state atom debugging code. 2007-05-30 03:19:26 +00:00
Oliver McFadden
f973ae78b2 r300: Use compile-time endian detection in r300_state.c as well as r300_texstate.c.
Probably best to not mix-and-match compile-time and run-time detection...
2007-05-30 03:19:26 +00:00
Oliver McFadden
97a89227b0 r300: Document registers 0x2220 to 0x2230.
These registers are per-pixel and per-vertex X and Y clipping planes.
2007-05-30 03:19:26 +00:00
Oliver McFadden
779a5c160f r300: Only support size 4 ELTs; this is what Mesa provides. 2007-05-30 03:19:26 +00:00
Oliver McFadden
1baef2f080 r300: Use the CP_PACKET3 macro for Type 3 packets.
I haven't converted all of the Type 3 packets to the CP_PACKET3 macro yet
because some of the Type 3 packet defines are missing from the R300 register
definition file.

These defines need to be copied from DRM and Mesa into the R300 register
definition file then copied into both DRM and Mesa.
2007-05-30 03:19:26 +00:00
Oliver McFadden
3e5f8a6c89 r300: Removed the (completely broken since new VBO branch) OPTIMIZE_ELTS path.
The VTXFMT code was broken by the new VBO branch and the OPTIMIZE_ELTS path
relied on the VTXFMT code...

I'm not even sure if the OPTIMIZE_ELTS path ever worked; the testing that I did
after minimizing the code duplication would have taken the same path as the
non-OPTIMIZE_ELTS code.
2007-05-30 03:19:26 +00:00
Oliver McFadden
7c893e98a3 r300: Cleaned up the AOS code in r300_render.c. 2007-05-30 03:19:26 +00:00
Oliver McFadden
b8813572ae r300: Added a comment in r300VAPInputCntl0. 2007-05-30 03:19:26 +00:00
Oliver McFadden
6a2ef09918 r300: Cleaned up r300DestroyTexObj. 2007-05-30 03:19:26 +00:00
Oliver McFadden
7e2c381a22 r300: R300_SE_VTE_CNTL applies to both non-TCL and TCL hardware.
See r300ResetHwState.
2007-05-30 03:19:26 +00:00
Brian
0c5662acc7 use glXGetProcAddress to get extension funcs 2007-05-29 08:08:03 -06:00
Brian
5237f863ed check for flat/smooth interp for generic/specular attrib 2007-05-29 08:08:03 -06:00
Oliver McFadden
1fc08251ee Revert "r300: Removed the R300_RS_INTERP_[0-9]_UNKNOWN (magic) defines."
This reverts commit bb3558e651.

This commit caused a regression reported by Markus Amsler
<markus.amsler@oribi.org>. Apparently these defines are required, although I'm
not sure why.
2007-05-27 02:25:31 +00:00
Oliver McFadden
d42c8ab630 r300: Rearranged the DWORD construction in r300VAPInputRoute0 for clarity.
Doesn't actually change anything; just makes it easier to read.
2007-05-26 21:38:52 +00:00
Oliver McFadden
3b8fc727e6 r300: Removed duplicate AOS format defines; already defined in r300_reg.h. 2007-05-26 20:59:16 +00:00
Oliver McFadden
e96d10a861 r300: Removed unused aos_reg variable. 2007-05-26 19:39:35 +00:00
Oliver McFadden
e8b8fd366b r300: Use "rmesa" not "r300" in r300_emit.c; some of the macros require "rmesa". 2007-05-26 17:55:30 +00:00
Oliver McFadden
7bc7f08d88 r300: Cleaned up the non-TCL RENDERINPUTS, etc. 2007-05-26 17:36:08 +00:00
Oliver McFadden
6be60a389b r300: Whitespace cleanup in r300_emit.c. 2007-05-26 17:13:57 +00:00
Oliver McFadden
0d8aba9a47 r300: Added the r300VAPInputCntl0 function.
The function just returns the hard-coded value (0x5555) even though we have no
idea what this means...
2007-05-26 15:49:24 +00:00
Oliver McFadden
ae0f17d591 r300: Added r300VAPOutputCntl0 and r300VAPOutputCntl1 to r300_emit.c. 2007-05-26 15:45:04 +00:00
Oliver McFadden
4e98dcb85f r300: Removed R300_PFS_NODE_LAST_NODE replaced by R300_PFS_NODE_OUTPUT_COLOR. 2007-05-26 14:43:04 +00:00
Oliver McFadden
f4ad34e8bb r300: Renamed the t_vic function. 2007-05-26 12:34:55 +00:00
Oliver McFadden
fbe705f600 r300: Renamed the t_vir0 and t_vir1 functions. 2007-05-26 00:07:25 +00:00
Oliver McFadden
9ed32f4251 r300: Renamed "dt" to "attribptr" in the t_vir0 function. 2007-05-25 23:50:36 +00:00
Oliver McFadden
b9c0a00ed0 r300: Specify the type in the t_vir0 function. 2007-05-25 23:42:03 +00:00
Oliver McFadden
9b727e117e r300: Cleaned up t_vir0 and t_vir1 slightly. 2007-05-25 23:02:57 +00:00
Oliver McFadden
f78ddc69a0 r300: Use C style comments in r300_emit.c. 2007-05-25 22:01:20 +00:00
Oliver McFadden
67ac9bf822 r300: Removed a (disabled and unneeded) assertion.
The r300EmitVec functions don't touch the buf member so the assertion isn't
needed here.
2007-05-25 21:54:45 +00:00
Oliver McFadden
31a86804ae r300: Improved the r300EmitVec debugging information. 2007-05-25 21:49:53 +00:00
Oliver McFadden
b042703935 r300: Use #if 0 for disabled code. 2007-05-25 21:43:24 +00:00
Oliver McFadden
93206f7815 r300: Added a TODO note and some tiny cleanups to r300_emit.c. 2007-05-25 21:38:49 +00:00
Dave Airlie
9f39692e21 add glxtokens.h to xmesa_xf86.h as discussed on mailing list 2007-05-26 15:58:56 +10:00
Brian
e734369565 remove #include "GL/glxtokens.h" 2007-05-25 08:58:15 -06:00
Oliver McFadden
8a6a5dc660 r300: Use GL_TRUE rather than 1 for the GLboolean type. 2007-05-25 13:59:15 +00:00
Oliver McFadden
00a9e4eb8c r300: Removed unused vpucount macro from r300_state.c. 2007-05-25 13:23:11 +00:00
Brian
e4b037051e fix logic for calling _swrast_update_deferred_texture() 2007-05-24 17:07:48 -06:00
Brian
98d2a4a244 doxygen-ize some comments 2007-05-23 16:58:01 -06:00
Brian
f116aed1ed restore GL_TEXTURE_LOD_BIAS in _mesa_PopAttrib(), bug 11049 2007-05-23 16:51:30 -06:00
Brian
e5ed09e60e incr/decr 1D/2DArray texture refcounts like other targets 2007-05-23 16:51:30 -06:00
Oliver McFadden
f2e99e6a58 r300: Call the r300Fogfv function directly within r300_state.c.
This required moving the r300Enable function but there are no actual changes.
2007-05-23 21:38:46 +00:00
Brian
a700832214 Fix problem w/ two-sided lighting and fragment programs (depth-peel regression) 2007-05-23 15:34:50 -06:00