Commit graph

201327 commits

Author SHA1 Message Date
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
Dave Airlie
41d28d97f5 clean up color0 code 2007-06-21 18:35:25 +10:00
Dave Airlie
36235e5ff1 add a mem use for current dma buffer 2007-06-21 18:35:00 +10:00
Dave Airlie
faab84cfa6 fix unfilled tris/quads 2007-06-21 15:07:31 +10:00
Dave Airlie
d3ef71166d ensure cmd buffer space 2007-06-21 14:43:53 +10:00
Dave Airlie
d1be4ab80f fix up vertex emission before state change 2007-06-21 14:20:33 +10:00
Zou Nan hai
d19d0596da support branch and loop in pixel shader
most of the sample working with some small modification
2007-06-21 10:22:28 +08:00
Dave Airlie
025efae411 fix secondary color, fog is off for now 2007-06-21 10:59:11 +10:00
Dave Airlie
6d8a4312ed fix projtex 2007-06-21 10:50:27 +10:00
Dave Airlie
ad8abf7147 fix quad-clip 2007-06-21 10:32:39 +10:00
Dave Airlie
08fb0bad72 bring over vertex engine setup code from r300_Render and fix up
now have gears going.. + a few other trivial textured demoes
2007-06-21 10:19:00 +10:00
Brian
ecfa794037 checkpoint: implement z/depth testing 2007-06-20 17:20:02 -06:00
Brian
3c0790ca92 triangles w/ depth test 2007-06-20 17:19:13 -06:00
Keith Whitwell
f185411637 Only build i915tex 2007-06-20 23:17:13 +01:00
Keith Whitwell
24a989c5d1 Add state tracker create/destroy calls to i915 driver. 2007-06-20 23:17:12 +01:00
Keith Whitwell
78cc48f70a Rename static variable in temporary tnl code 2007-06-20 23:17:12 +01:00
Keith Whitwell
b8657e44dc Remove dependency on vf.h in public headers 2007-06-20 23:17:12 +01:00
Brian
2fd7b30bfe update includes (s/tile/quad/) 2007-06-20 16:15:09 -06:00
Brian
47e970b2cc s/tile/quad/ 2007-06-20 16:14:55 -06:00
Brian
e0398f43a2 Rename "tile" files to "quad". 2007-06-20 16:12:26 -06:00
Brian
acef7c7501 only blend active pixels in the quad 2007-06-20 15:22:39 -06:00
Brian
7658a0208a quad blending works now, but many blend terms need to be added in blend_quad(). 2007-06-20 15:14:47 -06:00
Brian
fb5cdbd078 Initial implementation of a software pipeline for quad rasterization (fragment ops).
This is very much like the clipper/setup pipeline for primitives.
2007-06-20 14:29:14 -06:00
Brian
1edb5aafad better comment 2007-06-20 14:27:42 -06:00
Brian
b7c646d1bc actually use new glClear code 2007-06-20 13:10:48 -06:00
Brian
abf45c2a3d fix comment 2007-06-20 12:50:16 -06:00
Brian
83b6c46b50 plug in write_mono_row_ub 2007-06-20 12:23:47 -06:00
Brian
f9c17ec58a Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa 2007-06-20 11:01:09 -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
Brian
837f2c18c4 implement softpipe clearing (untested) 2007-06-20 09:41:41 -06:00
Brian
73f96c5105 Initial work for glClear(), clear color state. 2007-06-20 08:47:09 -06:00
Dave Airlie
d7777f4598 fixup some bits of tcl path 2007-06-20 18:02:08 +10:00
Dave Airlie
2a6082b531 swtcl: gears works 2007-06-20 18:01:47 +10:00
Brian
6cb2d0cb71 hook up point state 2007-06-19 19:52:25 -06:00
Brian
af9b5ca035 Re-org of surface/framebuffer state.
We should be able to render to any depth/format of X window now.
2007-06-19 19:19:31 -06:00
Brian
03933ad656 don't request GLUT_ALPHA 2007-06-19 19:17:48 -06:00
Brian
bd8eeb7ed0 Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa 2007-06-19 18:50:26 -06:00
Brian
0e9838263c just use regular malloc(), free(), memcpy() 2007-06-19 08:45:34 -06:00
Brian
2137e3053e add point/line/polygon state 2007-06-19 08:43:05 -06:00
Brian
493f7b5f3a Added alpha test state. 2007-06-18 17:54:38 -06:00
Brian
efe6c50089 Define just one set of PIPE_FUNC_LESS, GREATER, EQUAL, etc tokens.
Used for depth test, alpha test, stencil test, shadow test, etc.
2007-06-18 17:53:09 -06:00
Eric Anholt
bf0ae055de Fix TTM static allocation flags. 2007-06-18 12:20:07 -07:00
Eric Anholt
1ddbfd779b Test for TTM presence initially rather than test for lack of classic aperture. 2007-06-18 12:19:42 -07:00
Brian
9ec2e16223 change clear color 2007-06-18 06:57:36 -06:00
Dave Airlie
4a841b969a more commits to fix things and stuff - still not doing anything except crashin 2007-06-17 19:55:13 +10:00
Dave Airlie
492bc67df1 swtcl add debug and fix offset 2007-06-17 15:44:42 +10:00