Oliver McFadden
42dcdb9372
r300: Moved some hardware initialization into appropriate functions.
18 år sedan
Oliver McFadden
08a005e076
r300: Use a switch statement in r300UpdateCulling.
18 år sedan
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 år sedan
Brian
7c4c82fc6d
fix width/depth mix-up (bug 11577)
18 år sedan
Brian
f0f9a22609
minor changes, comments about multiple color buffers, MRT.
18 år sedan
Brian
f5eb25e9c7
fix swizzle-related bug 11534
18 år sedan
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 år sedan
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 år sedan
Brian
e8ceb5a2eb
XXX comment about skipping stipple for points/lines
18 år sedan
Brian
c78f372b17
s/prim_setup/sp_draw_render_stage/, new comments
18 år sedan
Brian
4f218958cc
Remove dead code
18 år sedan
Brian
ea470eec86
Rename prim_stage -> draw_stage
18 år sedan
Brian
86352ff70d
Added colormask, dither, multisample state. Implement colormasking stage.
18 år sedan
Brian
bd5533bb7c
front/back-face determination was wrong
18 år sedan
Brian
9e94e9b798
culling was inverted
18 år sedan
Brian
62f5f18b3e
handle edge flags for GL_POLYGONs
18 år sedan
Brian
5b06424a15
fix MIN/MAX mix-up
18 år sedan
Patrice Mandin
e5dd389429
nv20 also don't support viewport_origin, like nv10
18 år sedan
Ben Skeggs
cd8613e59d
nouveau: match drm 0.0.9 interface
18 år sedan
Brian
3ffa09b09d
clean-up of stencil code
18 år sedan
Brian
b755a2d9de
Minor clean-up of polygon offset logic. Properly compute _MRD field.
18 år sedan
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.
18 år sedan
Brian
2371ed36f7
remove unused hw_data_offset
18 år sedan
Brian
46d75518fa
disable debug printfs
18 år sedan
Brian
8db689350d
remove glDepthFunc(GL_LEQUAL) change from prev commit
18 år sedan
Brian
aac2129663
Fix broken depth offset.
The edge vectors were totally wrong.
Need to multiply bias units by the min resolvable depth delta.
18 år sedan
Roland Scheidegger
9870f7bccc
restrict blitted area to size of rendered area
18 år sedan
Tommy Schultz Lassen
ee7fece054
r300: Added support for Back Facing Color.
18 år sedan
Tommy Schultz Lassen
4bd04c9851
r300: Corrected r300UpdateCulling; would only set font face if culling was set.
18 år sedan
Brian
bc4dd63f12
Obsolete file.
18 år sedan
Brian
e89bd0fbc5
Implement polygon stipple state tracking, application.
18 år sedan
Patrice Mandin
922dadf422
nouveau: nv20 does not support hw scissors
18 år sedan
Keith Whitwell
20cf13e03b
Fix screen corruption on resize.
Move buffer resize check to immediately after swapbuffers.
Update cliprects inside the locked region of swapbuffers.
18 år sedan
Brian
300e97081e
need to clamp floats to [0,1] in write functions
18 år sedan
Brian
d6aa360edd
fix stencil logic error, use proper front/back face value
18 år sedan
Brian
0ac0fb91bd
Compute quad.facing from prim->det and polygon winding.
Updated comments/questions about area vs. prim->det.
18 år sedan
Roland Scheidegger
fb67b1609e
remove bogus assertion, change drawable updates
don't update driDrawable information until later at all
(blit needs fixing).
18 år sedan
Roland Scheidegger
eb2a896f68
drop some more code no longer needed
18 år sedan
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.)
18 år sedan
Brian
73daa68854
Checkpoint: stencil roughly working, some bugs to fix...
18 år sedan
Arthur Huillet
a8ec5dac3c
bumped nouveau DRM interface version number
18 år sedan
Brian
e6eca5c37e
Begin hooking up stenciling.
18 år sedan
Brian
227c95737b
clean-ups
18 år sedan
Brian
d015d2e0f4
Fill in remaining switch cases. Only call next stage if quad->mask != 0.
18 år sedan
Brian
093d1b42d0
remove debug printf
18 år sedan
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.
18 år sedan
Brian
985e37eedb
clean-up, comments
18 år sedan
Brian
13aa51de41
clamp after offsetting, new comments
18 år sedan
Brian
6aa9c8ebc1
remove unneeded casts, added comments
18 år sedan
Brian
1deafdb1de
Do depth testing with integer values.
Using floats (and float->ushort->float conversion) introduces errors.
Only GLushort depth buffers work for now...
18 år sedan