Commit graph

10862 commits

Author SHA1 Message Date
Brian
93becd8a18 fix rgba pointer bug hit on zoomed+fogged glDrawPixels 2007-06-21 16:06:27 -06:00
Oliver McFadden
ed5ed6fe2f r300: Corrected a bug in r300LineWidth.
Thanks to Panagiotis Papadakos for reporting it.
2007-06-21 15:53:26 +00:00
Brian
171dcdfa27 Another round of fixing attribute interpolation for glDraw/CopyPixels.
Need to turn off FRAG_BIT_COL0 in swrast->_ActiveAttribMask when doing
glRead/CopyPixels to prevent the user's colors from getting overwritten
when a fragment program is active.
This was happening in the DRI drivers when MaintainTexEnv program was
used (the texenv fragment program was enabled when _swrast_DrawPixels was
called).
This still isn't an ideal solution, but fixes things for now.
2007-06-21 09:15:32 -06:00
Brian
fe11b2c04b rename _swrast_update_fragment_attribs() 2007-06-21 09:11:43 -06:00
Brian
a4af3e5ab3 Effectively disable _TexEnvProgram before calling _swrast_DrawPixels().
It's OK to use _TexEnvProgram regardless of the texture state, but if fog
is also enabled, the fragment program is lacking the actual fog computation
so fogging doesn't appear.
Fixing this might involve a new _MaintainFogProgram field and related code.
For now, just disable the _TexEnvProgram and let swrast handle everything.
2007-06-20 11:01:04 -06:00
Brian
b9080dd549 fix glDrawPixels + fragment program problem 2007-06-20 10:56:13 -06:00
Brian
c1cb541233 copy wpos attrib info into zoomed span (fixes fog perspective correction problem) 2007-06-20 10:55:31 -06:00
Michel Dänzer
9cde7fb61d i915tex: Missing piece of SetTexOffset hook implementation for I830 generation. 2007-06-15 15:24:35 +02:00
Stephane Marchesin
f6963f57d9 nouveau: remove useless viewport xform with id matrix. 2007-06-14 00:44:16 +02:00
Brian
edf07417be Fix TEXREL issues when using GLX_USE_TLS (see bug 7459). 2007-06-12 09:47:03 -06:00
Brian
c1ba308e64 fix GLX_USE_TLS breakage, fix a warning 2007-06-12 08:57:12 -06:00
Brian
0fbc4c51a0 Rework _mesa_update_texture_compare_function() to only be called during
state validation/update.

Note that we're still temporarily skipping the test for an active fragment
program.  Need to fix shadow2D() ...
2007-06-11 17:16:18 -06:00
Brian
495e2c8327 rename/clean-up _mesa_validate_texture_wrap_mode 2007-06-11 16:42:35 -06:00
Brian
84e051b6a0 fix typo, added comment 2007-06-11 16:36:06 -06:00
Brian
227315278d Replace texobj->Complete with texobj->_Complete since it's a derived field. 2007-06-11 16:32:57 -06:00
Brian
a28977a4c7 typo: s/derrived/derived/ 2007-06-11 16:27:33 -06:00
Brian
0186f1bc83 Temporarily disable the calls to _mesa_update_texture_compare_function().
This fixes the depth-peel regression reported by Brad King.
2007-06-11 16:04:36 -06:00
Brian
cf239ced0d In generic_nop() call _mesa_warning() instead of _mesa_problem() since it's an app issue, not a mesa bug. 2007-06-11 11:03:08 -06:00
Brian
c56588407c remove dead code 2007-06-11 11:03:08 -06:00
Dave Airlie
b96dbd2a3e r300: i can't see why we fallback for polygon offset line/fill 2007-06-10 12:27:22 +10:00
Brian
86eecc701e In supported_buffer_bitmask(), use framebuffer's visual, not context's visual 2007-06-08 14:13:13 -06:00
Brian
ee170f2955 disable depthBits test in check_compatible(), see bug 11161 2007-06-08 14:12:27 -06:00
Brian
39d221ef14 fix glReadPixels parameters to handle odd-width windows correctly 2007-06-08 13:10:01 -06:00
Brian
5e9cff0b97 disable shader program before glDrawPixels 2007-06-08 13:02:14 -06:00
Brian
009ddb4e50 remove obsolete comment about max DEFAULT_SOFTWARE_DEPTH_BITS 2007-06-08 12:24:35 -06: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
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
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