Commit graph

201327 commits

Author SHA1 Message Date
Oliver McFadden
9ed32f4251 r300: Renamed "dt" to "attribptr" in the t_vir0 function. 2007-05-25 23:50:36 +00:00
Oliver McFadden
b9c0a00ed0 r300: Specify the type in the t_vir0 function. 2007-05-25 23:42:03 +00:00
Oliver McFadden
9b727e117e r300: Cleaned up t_vir0 and t_vir1 slightly. 2007-05-25 23:02:57 +00:00
Oliver McFadden
f78ddc69a0 r300: Use C style comments in r300_emit.c. 2007-05-25 22:01:20 +00:00
Oliver McFadden
67ac9bf822 r300: Removed a (disabled and unneeded) assertion.
The r300EmitVec functions don't touch the buf member so the assertion isn't
needed here.
2007-05-25 21:54:45 +00:00
Brian
d46fa8bbef INLINE goes before the function's return type 2007-05-25 15:53:42 -06:00
Oliver McFadden
31a86804ae r300: Improved the r300EmitVec debugging information. 2007-05-25 21:49:53 +00:00
Brian
00d5334899 Add some comments to explain things, code clarifications.
Also, add quad.facing field for front/back facing.  See comments for details.
2007-05-25 15:45:21 -06:00
Oliver McFadden
b042703935 r300: Use #if 0 for disabled code. 2007-05-25 21:43:24 +00:00
Oliver McFadden
93206f7815 r300: Added a TODO note and some tiny cleanups to r300_emit.c. 2007-05-25 21:38:49 +00:00
Dave Airlie
9f39692e21 add glxtokens.h to xmesa_xf86.h as discussed on mailing list 2007-05-26 15:58:56 +10:00
Brian
e734369565 remove #include "GL/glxtokens.h" 2007-05-25 08:58:15 -06:00
Oliver McFadden
8a6a5dc660 r300: Use GL_TRUE rather than 1 for the GLboolean type. 2007-05-25 13:59:15 +00:00
Oliver McFadden
00a9e4eb8c r300: Removed unused vpucount macro from r300_state.c. 2007-05-25 13:23:11 +00:00
Brian
cbe4dbef8e use GLubyte for stencil ref/mask/clear 2007-05-24 22:16:26 -06:00
Eric Anholt
b9323aa2cb Replace the flags/hint arguments to bo_alloc{,_static} with a location mask.
Now, allocations only take locations, rather than a variety of unused flags.
The only interesting flag before was the no_move/no_evict pair for scanout
and similar buffers, which the DRI drivers don't use.  That will be readded
when we get to using this code for display buffer allocation, by adding a
pin/unpin call (dynamic pinning/unpinning may be useful for VT switching and
root window resizing).

This commit changes one instance of DRM_BO_FLAG_MEM_LOCAL with
DRM_BO_FLAG_MEM_TT, which appeared to have been unintentional.
2007-05-24 16:55:06 -07:00
Eric Anholt
fd9d27e068 Merge branch 'master' into i915-unification
Conflicts:

	src/mesa/drivers/dri/i915tex/i830_texstate.c
	src/mesa/drivers/dri/i915tex/i915_texstate.c
2007-05-24 16:46:54 -07:00
Brian
008fb50174 Stencil state. 2007-05-24 17:37:36 -06:00
Brian
e4b037051e fix logic for calling _swrast_update_deferred_texture() 2007-05-24 17:07:48 -06:00
Brian
2248829b99 added st_atom_blend.c, st_atom_scissor.c 2007-05-24 16:50:45 -06:00
Brian
6debc8078a Implement blend state 2007-05-24 16:50:22 -06:00
Brian
7234550cf7 #ifndef SP_DEFINES_H protection, copyright 2007-05-24 16:49:27 -06:00
Brian
9267341bd0 scissor depends on glScissor() and framebuffer size 2007-05-24 16:48:38 -06:00
Brian
3bf0fd6090 add scissor state 2007-05-24 14:37:00 -06:00
Brian
711af67fe4 scissor state 2007-05-24 14:36:48 -06:00
Brian
f889ad21da define, use SP_MAX_CLIP_PLANES 2007-05-24 14:36:02 -06:00
Keith Whitwell
b1dc66b7bd Add the vf module.
This is a cleaned up version of the code in tnl/t_vertex*.
2007-05-24 11:37:08 +01:00
Keith Whitwell
b939adfa15 Use the x11 driver as a test harness for the softpipe/state_tracker code.
This has some limitations as we currently require a mapped framebuffer,
so it only really works with double-buffered ximage rgba8888 windows.
2007-05-24 10:44:53 +01:00
Keith Whitwell
8e4a95a93d First version of the softpipe rasterizer.
This will flesh out to hopefully acheive 3 things:
	- New software rasterizer for mesa
	- New driver model for mesa & dri with much smaller drivers
	- The basis for the cell driver.

It's got a long way to go yet, but will at least run trivial/tri.c.
2007-05-24 10:41:34 +01:00
Keith Whitwell
572dc0864e Modifications to run with softpipe test harness
RGB->RGBA
double buffer by default.
2007-05-24 10:38:57 +01:00
Brian
98d2a4a244 doxygen-ize some comments 2007-05-23 16:58:01 -06:00
Brian
f116aed1ed restore GL_TEXTURE_LOD_BIAS in _mesa_PopAttrib(), bug 11049 2007-05-23 16:51:30 -06:00
Brian
e5ed09e60e incr/decr 1D/2DArray texture refcounts like other targets 2007-05-23 16:51:30 -06:00
Oliver McFadden
f2e99e6a58 r300: Call the r300Fogfv function directly within r300_state.c.
This required moving the r300Enable function but there are no actual changes.
2007-05-23 21:38:46 +00:00
Brian
a700832214 Fix problem w/ two-sided lighting and fragment programs (depth-peel regression) 2007-05-23 15:34:50 -06:00
Oliver McFadden
491618b33d r300: Use switch statements in r300ResetHwState, etc. 2007-05-23 21:12:11 +00:00
Oliver McFadden
f1441bbd18 r300: Minor indenting corrections in the texture format table. 2007-05-23 18:48:05 +00:00
Oliver McFadden
ba8d3fb136 r300: Use a single texture format table; reduces duplication. 2007-05-23 18:37:55 +00:00
Oliver McFadden
9b9a1602f9 r300: Corrected the RGB888 texture format entry.
I think this is correct, assuming no endian issues. See commmit
59a08923f5.
2007-05-23 17:56:47 +00:00
Oliver McFadden
bb3558e651 r300: Removed the R300_RS_INTERP_[0-9]_UNKNOWN (magic) defines.
Supposedly you need to set these values for the interpolaters to work, but they
seem to work fine without these values.
2007-05-23 17:44:14 +00:00
Brian
d062b6cd26 Fix point attentuation problem (bug 11042)
ctx->Point._Attentuation was computed in wrong place and the VB->Eye coord Z
array wasn't indexed correctly in run_point_stage().
2007-05-23 08:58:08 -06:00
Brian
a194bc3a85 Replace initInitState() with _mesa_init_driver_state(). 2007-05-22 16:56:02 -06:00
Brian
a99114a69f added _mesa_init_driver_state() to replace duplicated code in intel drivers 2007-05-22 16:54:25 -06:00
Brian
3a2ffadb7c include swrast_setup/swrast_setup.h to silence warning 2007-05-22 16:50:05 -06:00
Brian
0425548961 don't treat FRAG_BIT_WPOS as a generic attribute (fixes depth peel regression) 2007-05-22 10:07:49 -06:00
Michel Dänzer
e0885b84a0 i915tex: Implement SetTexOffset hook.
Only build tested for I830 generation.
2007-05-22 14:08:11 +02:00
Michel Dänzer
59a08923f5 r300: Implement SetTexOffset hook. 2007-05-22 14:08:11 +02:00
Michel Dänzer
043d219b6d Add interfaces for overriding texture images with driver specific 'offsets'.
To be used by AIGLX for GLX_EXT_texture_from_pixmap without several
additional data copies.
2007-05-22 14:08:10 +02:00
Michel Dänzer
24d965fab5 Fix xserver build after recent XMesa changes.
Only build tested.
2007-05-22 13:56:30 +02:00
Brian
9e3e3883fa get rid of GenTexturesLock, used ctx->Shared->Mutex 2007-05-21 22:10:06 -06:00