Commit Graph

92185 Commits

Author SHA1 Message Date
Jouk 55f8b70530 Merge branch 'master' of git+ssh://joukj@git.freedesktop.org/git/mesa/mesa 2007-06-08 13:38:24 +02:00
Ian Romanick 7b559a9102 Add support for GL_ARB_fragment_program_shadow. 2007-06-07 13:58:50 -07:00
Ian Romanick 84d1b24647 Fix ARB_fp spec conformance bug WRT shadow sampling.
The ARB_fp (and other assembly-level fragment program specs) say that the
depth comparison function is always GL_NONE in fragment program mode.
2007-06-07 13:38:06 -07:00
Ian Romanick 359c6eada7 Add support for shadow mapping with vertex and fragment programs 2007-06-07 12:12:14 -07:00
Ian Romanick 2260c245fd Refactor shadow map modelview and projection code
Explicitly store the modelview matrix and projection matrix used when the
shadow map is created.  These matrices only need be updated when
RenderShadowMap is called.  Previously, slightly different code was used to
draw and project the shadow map.
2007-06-07 12:09:44 -07:00
Ian Romanick f575d4fa7f Remove '#if defined' tests for ARB extensions. 2007-06-07 11:59:42 -07:00
Oliver McFadden 871f57365e r300: Added a comment regarding the R300_VAP_CLIP registers. 2007-06-07 13:21:18 +00:00
Oliver McFadden 65b45d6d58 r300: Removed a "don't think this is needed" comment, it actually is needed.
According to the comment you do not need to setup INPUT_CNTL when using vertex
buffers. However, not doing so results in a lockup.
2007-06-07 13:20:27 +00:00
Oliver McFadden 9c50d84775 r300: Explain the R300_VAP_OUTPUT_VTX_FMT_1 register. 2007-06-07 13:20:08 +00:00
Oliver McFadden 10d5dd685c r300: Cleaned up long lines in r300Choose8888TexFormat. 2007-06-07 13:19:47 +00:00
Wang Zhenyu 8331d9d7aa Add PCI IDs for the G33, Q33, and Q35 chipsets. 2007-06-05 12:01:28 -07:00
Michel Dänzer 08a2cc2d23 i915tex: Better attempt to release miptree when overriding texture image.
The previous approach could lead to crashes in FBO code that dereferences the
miptree struct pointer unconditionally.
2007-06-05 19:55:53 +02:00
Michel Dänzer 89f070b3bb Remove dubious compile-time test for pre-2.4 Linux kernels.
LINUX_VERSION_CODE shouldn't be used by userspace code, it can be defined empty
these days.

If anybody still cares about 2.2 kernels, they should reinstate this as a
proper runtime test.
2007-06-05 19:52:10 +02:00
Ian Romanick 69358e73ce Updates for array texture shadow targets. 2007-06-05 09:24:40 -07:00
Dave Airlie 0b11203038 miniglx: implement GetProcAddressARB in miniglx as an alias for GPA 2007-06-05 09:38:49 +10:00
Dave Airlie b2dde0a783 miniglx: update defines in linux-solo config 2007-06-05 09:36:28 +10:00
Dave Airlie 90630feeec r300: fix non-tcl rs4xx again. 2007-06-02 16:21:50 +10:00
Eric Anholt 2ac17c68e2 Add buffer manager destroy function. 2007-05-31 09:45:45 -07:00
Eric Anholt fb7e21514f Remove some stale comments. 2007-05-31 09:34:08 -07:00
Wang Zhenyu ad6351a994 i915tex: Add support for 945GME 2007-05-31 11:18:26 +01:00
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
Brian c9527eae8e added st_atom_depth.c 2007-05-30 16:27:17 -06:00
Brian 02a47549ad sketch out texture sampler state 2007-05-30 16:26:55 -06:00
Brian 092a9ecbba comments, clean-up, alphabetize members 2007-05-30 16:10:31 -06:00
Brian 8f28887581 added depth(Z) state support 2007-05-30 16:07:39 -06:00
Brian 4c9b48dcc5 depth(Z) state 2007-05-30 16:07:27 -06: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
Brian 6fc5961933 implement point rendering 2007-05-28 16:13:17 -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