Commit Graph

92185 Commits

Author SHA1 Message Date
Brian e89bd0fbc5 Implement polygon stipple state tracking, application. 2007-07-11 11:34:19 -06:00
Patrice Mandin 922dadf422 nouveau: nv20 does not support hw scissors 2007-07-11 19:25:32 +02:00
Keith Whitwell 20cf13e03b Fix screen corruption on resize.
Move buffer resize check to immediately after swapbuffers.

Update cliprects inside the locked region of swapbuffers.
2007-07-11 17:01:30 +01:00
Brian 300e97081e need to clamp floats to [0,1] in write functions 2007-07-11 09:56:46 -06:00
Brian d6aa360edd fix stencil logic error, use proper front/back face value 2007-07-11 09:52:32 -06:00
Brian 0ac0fb91bd Compute quad.facing from prim->det and polygon winding.
Updated comments/questions about area vs. prim->det.
2007-07-11 09:52:00 -06:00
Roland Scheidegger fb67b1609e remove bogus assertion, change drawable updates
don't update driDrawable information until later at all
(blit needs fixing).
2007-07-11 17:30:01 +02:00
Roland Scheidegger eb2a896f68 drop some more code no longer needed 2007-07-11 16:08:14 +02:00
Roland Scheidegger 43e24ff507 some fixes, fake frontbuffer
still doesn't work quite right (resize).
Fake frontbuffer doesn't copy in real frontbuffer.
Don't even think about doing rotation/page flip/triple buffering for now...
More cleanups needed (fake cliprects etc.)
2007-07-11 14:20:39 +02:00
Brian 73daa68854 Checkpoint: stencil roughly working, some bugs to fix... 2007-07-10 18:59:17 -06:00
Arthur Huillet a8ec5dac3c bumped nouveau DRM interface version number 2007-07-11 02:48:40 +02:00
Brian e6eca5c37e Begin hooking up stenciling. 2007-07-10 16:37:18 -06:00
Brian 227c95737b clean-ups 2007-07-10 16:37:03 -06:00
Brian d015d2e0f4 Fill in remaining switch cases. Only call next stage if quad->mask != 0. 2007-07-10 16:25:43 -06:00
Brian 093d1b42d0 remove debug printf 2007-07-10 15:29:17 -06:00
Brian a49a23efc5 Fix line clipping bug. New comments.
Need to use a new prim_header for the post-clipped line.  Otherwise,
we were changing the header passed to us from the vb code.  That messed
up the vertex pointers for the next line primitive.
2007-07-10 15:24:31 -06:00
Brian 985e37eedb clean-up, comments 2007-07-10 14:46:15 -06:00
Brian 13aa51de41 clamp after offsetting, new comments 2007-07-10 14:38:10 -06:00
Brian 6aa9c8ebc1 remove unneeded casts, added comments 2007-07-10 14:36:10 -06:00
Brian 1deafdb1de Do depth testing with integer values.
Using floats (and float->ushort->float conversion) introduces errors.
Only GLushort depth buffers work for now...
2007-07-10 13:53:21 -06:00
Brian f6dffd6ee7 fix problems with polygon offset 2007-07-10 13:34:23 -06:00
Brian 5e4379b5a4 comments, clean-up 2007-07-10 13:33:45 -06:00
Roland Scheidegger 1278514ff4 copybuffer/cliprect fixups 2007-07-10 19:56:44 +02:00
Brian 720c0eb71d added comments 2007-07-10 11:54:16 -06:00
Brian 1fe4cf83cd Fix front/back mix-up. added comments. 2007-07-10 11:54:03 -06:00
Brian 24b68f4184 press 'f' to toggle GL_CCW/GL_CW front face 2007-07-10 11:53:27 -06:00
Brian 9a89cc3b6b use 'c' to cycle through polygon cull modes 2007-07-10 11:39:08 -06:00
Brian 8733ee9dc9 use cursor keys to translate triangle 2007-07-10 11:33:10 -06:00
Brian 17b86cfa4e Comments, minor clean-up. 2007-07-10 11:03:51 -06:00
Brian e7a2085148 comments 2007-07-10 11:00:24 -06:00
Brian 57a5385652 Added comments, assertions. 2007-07-10 10:53:57 -06:00
Brian 8c1fa904ed Fix EMIT_ATTR() to populate the draw->vf_attr_to_slot[] array.
Note that attribute index has to be biased by two, since vertex->data[]
starts after the header and clipcoord fields.  See comments for details.
Added a bunch of comments/docs.
2007-07-10 10:53:29 -06:00
Brian d68ea4e23f remove some dead/disabled stuff 2007-07-10 10:24:28 -06:00
Roland Scheidegger d348a48ac3 First attempt at using private back/z buffers.
Allocate and use private back and z/stencil buffers.
This is still very broken.
2007-07-10 18:07:38 +02:00
Michel Dänzer 7c42222111 i915tex: Better procedure for dropping batchbuffer on virtual resolution change.
The previous procedure would often result in a GPU lockup.
2007-07-10 11:14:46 +02:00
Michel Dänzer f1e1b2ed16 i915tex: Only wait for vblank when really necessary.
This avoids superfluous waits for vblank timing out under some circumstances.
2007-07-10 11:14:25 +02:00
Michel Dänzer a903749b24 Clear pointers to freed cliprects.
Not doing this could lead to double frees under rare circumstances.
2007-07-10 11:05:41 +02:00
Brian f4053ce858 Remove softpipe includes 2007-07-09 16:21:18 -06:00
Brian ebafc193fa s/G_/SP_/ 2007-07-09 16:20:16 -06:00
Brian a380f98b6c Rename G_NEW_* tokens to SP_NEW_* 2007-07-09 16:17:50 -06:00
Brian 546eff6ba8 Obsolete file. 2007-07-09 16:15:20 -06:00
Brian 279ffe3f16 New 'draw' module for primitive drawing (clipping, culling, etc). 2007-07-09 16:14:26 -06:00
Brian 9fbdf50078 New 'draw' module for handling the various stages of primitive drawing (clipping, culling, etc). 2007-07-09 16:12:13 -06:00
Brian 10f4b37bd7 Rename/move some files to modularize the primitive/draw code. 2007-07-09 16:04:08 -06:00
Brian aa328291c5 Fix size test bug in _mesa_test_proxy_teximage().
width/height/depth == 0 is a legal texture size (no error generated).
Later, the texture will be considered incomplete, however, and texturing
will effectively be disabled.
See bug 11309.
2007-07-08 09:59:05 -06:00
Brian 37ece4df7c Check if 'indices' parameter is NULL (bug 11314) 2007-07-08 09:20:42 -06:00
Brian 25cfb68f0b Change float depthScale param to _mesa_unpack_depth_span() to GLuint depthMax. 2007-07-08 09:02:36 -06:00
Brian 64359af071 check depthScale value for optimized ushort->uint case (fixes bug 11474) 2007-07-08 08:53:19 -06:00
Brian a164d3aee0 In _swsetup_Translate(), update dest->attrib[FRAG_ATTRIB_COL0].
Also, check if we're in RGB vs. CI mode.  This fixes a problem with
incorrect rendering color seen with the redbook/polys demo.
2007-07-06 16:55:40 -06:00
Brian 0bf2479aef Add case for GL_QUADS in i915_reduced_primitive_state().
The t_dd_tritemp.h code can emit GL_QUADS primitives.  We need to catch
that case to determine if polygon stipple should be enabled.
Fixes bug reported by Carlos Diógenes on 4 July 2007.
2007-07-06 16:55:40 -06:00