Commit graph

115447 commits

Author SHA1 Message Date
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
Dave Airlie
780ae9f17d cleaned up reduced prim 2007-06-17 15:05:43 +10:00
Dave Airlie
3b8cf84aa5 fixup packet setup - still hangs 2007-06-17 14:47:09 +10:00
Dave Airlie
aaf76906e8 add missing swtcl file 2007-06-17 14:27:58 +10:00
Dave Airlie
d42888dac3 add more swtcl code to r300 - hangs card now 2007-06-17 14:17:11 +10:00
Eric Anholt
2754ac0878 Replace intel_dump_batchbuffer with a more informational version. 2007-06-15 16:58:15 -07:00
Eric Anholt
7a452b21a2 Correct a mis-count in a LOAD_STATE_IMMEDIATE_1 length argument. 2007-06-15 16:20:34 -07:00
Brian
97fc768574 s/PRIM_H/SP_STATE_H/ 2007-06-15 10:57:44 -06:00
Brian
3cdd8bfe8e Added st_update_framebuffer struct/object. 2007-06-15 10:55:12 -06:00
Brian
1119852d02 framebuffer state 2007-06-15 10:54:08 -06:00
Brian
fde755aefb In softpipe_set_viewport() use ordinary (struct) assignment to update softpipe->viewport.
The previous memcpy() was incorrect since it only copied 4 bytes instead of 32.
With struct assignment we avoid data size errors.
2007-06-15 10:50:48 -06:00
Brian
8f6b6eed35 initial framebuffer state 2007-06-15 09:51:53 -06:00
Brian
fe1f94f26c framebuffer state 2007-06-15 09:51:27 -06:00
Michel Dänzer
9cde7fb61d i915tex: Missing piece of SetTexOffset hook implementation for I830 generation. 2007-06-15 15:24:35 +02:00
Keith Whitwell
477e18cb02 Add GLUT_ALPHA for softpipe 2007-06-14 18:25:10 +01:00
Keith Whitwell
943964a1e5 Rename directories again?!
Some git wierdness going on.
2007-06-14 18:23:43 +01:00
Keith Whitwell
6393cda676 Renamed softpipe directories and files to something less confusing.
softpipe/state_tracker --> state_tracker/
softpipe/              --> pipe/
softpipe/generic       --> pipe/softpipe/

I don't think pipe is a great name, but I disliked all the others too.
Luckily it's fairly easy to rename with git, so this can be revisited
later.
2007-06-14 18:11:48 +01:00
Keith Whitwell
7050a4a7bc Small optimization for line drawing.
And some comments on point sprites.
2007-06-14 15:18:27 +01:00
Keith Whitwell
790ec6ad3f Remove some dead code. 2007-06-14 14:29:59 +01:00
Dave Airlie
bc81885bb2 Initial r300 modes for swtcl it compiles!! 2007-06-14 15:26:39 +10:00
Stephane Marchesin
f6963f57d9 nouveau: remove useless viewport xform with id matrix. 2007-06-14 00:44:16 +02:00
Dave Airlie
40cc47f8ee move clip to r300 emit 2007-06-13 12:56:48 +10:00
Brian
144e1e439f fix an error string, refactor _mesa_GetCompressedTexImageARB() to get rid of a goto 2007-06-12 17:17:43 -06:00
Brian
261ed74074 fix make clean commands so missing subdirs don't cause infinite loops 2007-06-12 17:06:27 -06:00
Brian
d70fa021d5 added memcpy() to-do item 2007-06-12 15:16:21 -06:00
Brian
ef82f004fa fix comment 2007-06-12 15:08:43 -06: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
6378dc3ae3 simple line drawing code 2007-06-12 08:47:49 -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