Commit Graph

92185 Commits

Author SHA1 Message Date
Roland Scheidegger a04056d313 fix assertion, z/stencil swarst readback, (still looks suspicious) copyTexSubimage 2007-07-14 14:24:20 +02:00
Jan Dvorak 5a0f02a394 fix shader/info string length queries (bug 11588) 2007-07-13 16:36:00 -06:00
Brian f0636d9653 Fix setup.light_twoside determination.
When a vertex program is used, use value of GL_VERTEX_PROGRAM_TWO_SIDE.
Otherwise, if FF lighting, use value of GL_LIGHT_MODEL_TWO_SIDE.
2007-07-13 14:28:15 -06:00
Brian a2e471e05e press 'f' to toggle front-face winding 2007-07-13 14:25:28 -06:00
Brian dc313b5783 Fix more polygon winding, culling confusion.
If the determinant of the triangle is positive, its winding is CCW (right-handed coord system).
2007-07-13 14:22:46 -06:00
Roland Scheidegger f022bff5aa bugfixes (wrt fb updates), cleanups
move drawable validation back to where it was now that the driDrawable
information isn't used directly anymore.
Fix bogus fb updates (the context we get for SwapBuffer processing
may not have the drawable being processed attached!)
glthreads behaves a bit better but still not correct.
2007-07-13 20:47:17 +02:00
Brian 2bf4a500de Fix for-loop in interp() so we don't go out of bounds.
Improved comments for that loop.
Added some sanity check assertions regarding vertex layout.
2007-07-13 12:28:42 -06:00
Brian 5810b40d6e set INTERP_CONSTANT when appropriate
Not really signficant now since draw_flat stage copies the provoking
vertex color to all prim verts.
2007-07-13 12:26:09 -06:00
Brian a47b5764c0 comments 2007-07-13 12:23:34 -06:00
Brian a6eccf9e4f Enable Keith's branch-less stipple code - it works. 2007-07-13 11:16:13 -06:00
Brian 80362a90d8 Add 'prim' field to quad so that stipple and aa coverage stages can do the right thing. 2007-07-13 11:15:10 -06:00
Brian 46bba80a54 Implement AA points and AA coverage application in quad pipeline. 2007-07-13 10:33:48 -06:00
Brian 5796056e28 press 's' to toggle smoothing 2007-07-13 10:32:56 -06:00
Brian 563479552e Added basic occlusion counting 2007-07-13 09:25:57 -06:00
Brian 676fcf0de2 minor rename 2007-07-13 09:23:41 -06:00
Ben Skeggs 8fcfaa3238 Play "nuke the typedef" 2007-07-13 23:39:45 +10:00
Keith Whitwell aa0f415c8d Add conditional-free implementation (disabled, not tested) 2007-07-13 11:28:42 +01:00
Keith Whitwell 60a21f6c54 Simplify slightly.
Don't bother trying to save a small memcpy.
2007-07-13 11:27:57 +01:00
Oliver McFadden 5ec66cf62d Revert "r300: Corrected off-by-one error in r300_vertprog.c."
This reverts commit 07ac2386f5.
2007-07-13 09:39:23 +00:00
Oliver McFadden 07ac2386f5 r300: Corrected off-by-one error in r300_vertprog.c. 2007-07-13 04:58:32 +00:00
Oliver McFadden 42dcdb9372 r300: Moved some hardware initialization into appropriate functions. 2007-07-13 04:51:36 +00:00
Oliver McFadden 08a005e076 r300: Use a switch statement in r300UpdateCulling. 2007-07-13 04:51:36 +00:00
Oliver McFadden 4b08b9c3e9 r300: Setup the back facing color bits correctly.
Apparently for back facing color to work you must set all 3 color bits; I guess
the hardware cannot handle them separately.
2007-07-13 04:51:36 +00:00
Brian 7c4c82fc6d fix width/depth mix-up (bug 11577) 2007-07-12 21:33:05 -06:00
Brian f0f9a22609 minor changes, comments about multiple color buffers, MRT. 2007-07-12 16:17:14 -06:00
Brian f5eb25e9c7 fix swizzle-related bug 11534 2007-07-12 14:50:53 -06:00
Brian a48d767cf2 Add a quad 'bufloop' stage to handle glDrawBuffer(GL_FRONT_AND_BACK).
This removes the notion of multiple color buffers from all other stages.
Will need a bit more work when shaders with multiple render targets arrive.
2007-07-12 14:13:48 -06:00
Roland Scheidegger 8b6517abfc don't use driDrawable information directly, don't resize at makecurrent
driDrawable information now isn't used in most parts of the driver.
makecurrent only updates fb information when the context is new
(driDrawable is still updated by the dri common code).
2007-07-12 21:52:02 +02:00
Brian e8ceb5a2eb XXX comment about skipping stipple for points/lines 2007-07-12 13:44:43 -06:00
Brian c78f372b17 s/prim_setup/sp_draw_render_stage/, new comments 2007-07-12 13:43:33 -06:00
Brian 4f218958cc Remove dead code 2007-07-12 13:33:33 -06:00
Brian ea470eec86 Rename prim_stage -> draw_stage 2007-07-12 13:32:31 -06:00
Brian 86352ff70d Added colormask, dither, multisample state. Implement colormasking stage. 2007-07-12 12:20:14 -06:00
Brian bd5533bb7c front/back-face determination was wrong 2007-07-12 11:59:43 -06:00
Brian 9e94e9b798 culling was inverted 2007-07-12 11:59:15 -06:00
Brian 62f5f18b3e handle edge flags for GL_POLYGONs 2007-07-12 11:50:52 -06:00
Brian 5b06424a15 fix MIN/MAX mix-up 2007-07-12 10:43:33 -06:00
Patrice Mandin e5dd389429 nv20 also don't support viewport_origin, like nv10 2007-07-12 18:36:41 +02:00
Ben Skeggs cd8613e59d nouveau: match drm 0.0.9 interface 2007-07-12 11:08:17 +10:00
Brian 3ffa09b09d clean-up of stencil code 2007-07-11 16:33:15 -06:00
Brian b755a2d9de Minor clean-up of polygon offset logic. Properly compute _MRD field. 2007-07-11 16:20:32 -06:00
Brian 34f6243bef Improve this demo in a few ways.
1. Use more reasonable hither/yon clip planes to make better use of shallow
(16-bit) z buffers.
2. Use different colors on cube faces to help detect Z fighting if it occurs.
3. Report GL_DEPTH_BITS on start-up.
2007-07-11 16:20:32 -06:00
Brian 2371ed36f7 remove unused hw_data_offset 2007-07-11 16:17:23 -06:00
Brian 46d75518fa disable debug printfs 2007-07-11 13:13:00 -06:00
Brian 8db689350d remove glDepthFunc(GL_LEQUAL) change from prev commit 2007-07-11 13:12:33 -06:00
Brian aac2129663 Fix broken depth offset.
The edge vectors were totally wrong.
Need to multiply bias units by the min resolvable depth delta.
2007-07-11 13:02:03 -06:00
Roland Scheidegger 9870f7bccc restrict blitted area to size of rendered area 2007-07-11 20:18:51 +02:00
Tommy Schultz Lassen ee7fece054 r300: Added support for Back Facing Color. 2007-07-11 17:37:45 +00:00
Tommy Schultz Lassen 4bd04c9851 r300: Corrected r300UpdateCulling; would only set font face if culling was set. 2007-07-11 17:37:44 +00:00
Brian bc4dd63f12 Obsolete file. 2007-07-11 11:36:22 -06:00