Oliver McFadden
79773ba13a
r300: Major vertex program code clean up and rework.
18 years ago
Oliver McFadden
b0f0b4044c
r300: Replaced the ugly VERTEX_SHADER_INSTRUCTION typedef.
18 years ago
Roland Scheidegger
99c7e38d83
change back driver change from previous commit
18 years ago
Roland Scheidegger
a1ec23a30f
fix bogus fb/drawable information (fixes xdemos/wincopy)
the framebuffer objects attached to drawables can have invalidate state
associated with them, since for the window framebuffer this is per-context
state and not per-fbo state. Since drivers may rely on that information
(otherwise would need to check if currently the window-framebuffer is
bound in a lot of places) fix it up in _mesa_make_current (ugly).
18 years ago
Roland Scheidegger
8172f50419
fix the texture copypixels path
18 years ago
Roland Scheidegger
cd3afa2a95
begin getting rid of fake clip rects (copy_pixel)
18 years ago
Oliver McFadden
9457bf62bb
r300: Gracefully exit after GART memory is exhausted.
18 years ago
Oliver McFadden
393558a933
r300: Disable vertex program point size; it's almost certainly wrong.
See the conversation between myself and Tommy Schultz Lassen on mesa3d-dev.
18 years ago
Oliver McFadden
491f646c79
r300: Clean up the vertex program output assignment.
18 years ago
Patrice Mandin
24f85f047b
nouveau: nv10 and nv11,15 are different
18 years ago
Roland Scheidegger
a04056d313
fix assertion, z/stencil swarst readback, (still looks suspicious) copyTexSubimage
18 years ago
Jan Dvorak
5a0f02a394
fix shader/info string length queries (bug 11588)
18 years ago
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.
18 years ago
Brian
a2e471e05e
press 'f' to toggle front-face winding
18 years ago
Brian
dc313b5783
Fix more polygon winding, culling confusion.
If the determinant of the triangle is positive, its winding is CCW (right-handed coord system).
18 years ago
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.
18 years ago
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.
18 years ago
Brian
5810b40d6e
set INTERP_CONSTANT when appropriate
Not really signficant now since draw_flat stage copies the provoking
vertex color to all prim verts.
18 years ago
Brian
a47b5764c0
comments
18 years ago
Brian
a6eccf9e4f
Enable Keith's branch-less stipple code - it works.
18 years ago
Brian
80362a90d8
Add 'prim' field to quad so that stipple and aa coverage stages can do the right thing.
18 years ago
Brian
46bba80a54
Implement AA points and AA coverage application in quad pipeline.
18 years ago
Brian
5796056e28
press 's' to toggle smoothing
18 years ago
Brian
563479552e
Added basic occlusion counting
18 years ago
Brian
676fcf0de2
minor rename
18 years ago
Ben Skeggs
8fcfaa3238
Play "nuke the typedef"
18 years ago
Keith Whitwell
aa0f415c8d
Add conditional-free implementation (disabled, not tested)
18 years ago
Keith Whitwell
60a21f6c54
Simplify slightly.
Don't bother trying to save a small memcpy.
18 years ago
Oliver McFadden
5ec66cf62d
Revert "r300: Corrected off-by-one error in r300_vertprog.c."
This reverts commit 07ac2386f5
.
18 years ago
Oliver McFadden
07ac2386f5
r300: Corrected off-by-one error in r300_vertprog.c.
18 years ago
Oliver McFadden
42dcdb9372
r300: Moved some hardware initialization into appropriate functions.
18 years ago
Oliver McFadden
08a005e076
r300: Use a switch statement in r300UpdateCulling.
18 years ago
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.
18 years ago
Brian
7c4c82fc6d
fix width/depth mix-up (bug 11577)
18 years ago
Brian
f0f9a22609
minor changes, comments about multiple color buffers, MRT.
18 years ago
Brian
f5eb25e9c7
fix swizzle-related bug 11534
18 years ago
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.
18 years ago
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).
18 years ago
Brian
e8ceb5a2eb
XXX comment about skipping stipple for points/lines
18 years ago
Brian
c78f372b17
s/prim_setup/sp_draw_render_stage/, new comments
18 years ago
Brian
4f218958cc
Remove dead code
18 years ago
Brian
ea470eec86
Rename prim_stage -> draw_stage
18 years ago
Brian
86352ff70d
Added colormask, dither, multisample state. Implement colormasking stage.
18 years ago
Brian
bd5533bb7c
front/back-face determination was wrong
18 years ago
Brian
9e94e9b798
culling was inverted
18 years ago
Brian
62f5f18b3e
handle edge flags for GL_POLYGONs
18 years ago
Brian
5b06424a15
fix MIN/MAX mix-up
18 years ago
Patrice Mandin
e5dd389429
nv20 also don't support viewport_origin, like nv10
18 years ago
Ben Skeggs
cd8613e59d
nouveau: match drm 0.0.9 interface
18 years ago
Brian
3ffa09b09d
clean-up of stencil code
18 years ago