Vladimir Dergachev
99edafd4e8
Implement rendering of (flat color) QUAD primitives as an experiment.
2004-12-27 17:18:48 +00:00
Ian Romanick
83fcf49647
Fixed two problems with the handling of GLX protocol replies. The logic
...
for determining when extra data needed to be read after a reply (to ensure
4-byte alignment) and the logic to determine whether or not to read reply
data after the SingleReply packet were both slightly wrong.
2004-12-27 08:29:54 +00:00
Vladimir Dergachev
3cbc2bd833
Expose primitive types being rendered, in preparation to implement fixed pipeline primitive drawing.
...
Note: these are only visible when export LIBGL_DEBUG=verbose is specified.
2004-12-26 21:42:14 +00:00
Vladimir Dergachev
1b2a655521
Update with most recent version.
2004-12-26 19:32:21 +00:00
Adam Jackson
46a35b2284
Get trident building and -Werror clean.
...
- Added Makefile
- Deleted references to old headers
- Added prototypes all over the place
- Lots of type updates (drmHandle -> drm_handle_t etc.)
- Added __driCreateNewScreen(), deleted __driCreateScreen()
- Fixed context creation to match other drivers
- Fixed various bitfield names
- Bumped driver date
Still nowhere close to usable, the DDX isn't DRI-aware and there's no DRM.
2004-12-24 03:04:14 +00:00
Felix Kuehling
1c86c7ad9c
Simplified and optimized _savage_texnorm_stage.
2004-12-23 20:26:59 +00:00
Keith Whitwell
3deaf21745
Remove the VIA_PERFORMANCE code. A step towards moving the driver
...
back to using the shared template files.
2004-12-23 18:26:40 +00:00
Keith Whitwell
9876730f7a
Chop out more dead code.
...
Get the drawXoff adjustment working a bit better.
Seems to pass the glean orthoPos tests.
2004-12-23 18:16:22 +00:00
Keith Whitwell
15da29b5e7
Fix merge error.
2004-12-22 19:31:10 +00:00
Keith Whitwell
7db50bb3a8
Remove dead code.
...
Fix 24/8 depth/stencil visuals.
2004-12-22 19:30:02 +00:00
Felix Kuehling
922bfd70ff
Enabled hardware rendering of 1D textures. No need for a software fallback.
2004-12-22 16:12:59 +00:00
Felix Kuehling
80dd3c7917
- Fake projective textures on a single texture unit. A fallback is only
...
needed if a second texture unit is enabled.
- Also worked around an application bug in Chromium B.S.U.: it sends 3D
texture coordinates while only a 2D texture is enabled. This used to
trigger a PTEX fallback. Now the 3rd coordinate is just ignored.
- Fixed the _savage_texnorm_stage to never normalize homogenous texture
coordinates.
2004-12-22 00:21:32 +00:00
Keith Whitwell
8bdaa927eb
Remove debug code which referenced an old global variable.
2004-12-21 23:07:13 +00:00
Ian Romanick
990dec7ea0
Used GCC's __builtin_expect when available. Change the way code is
...
generated for commands that can use RenderLarge packets. Tweak the code for
__glXFlushRenderBuffer slightly.
2004-12-21 23:06:02 +00:00
Keith Whitwell
302c5694c6
Push a number of global variables into the viaContext struct.
...
Remove the bogus 'current_vmesa' pointer.
2004-12-21 22:42:00 +00:00
Ian Romanick
1d27084043
Added some comments and fixed typeos. Slightly refactored the way
...
function parameters are iterated. There are no changes in the generated
code.
2004-12-21 21:26:36 +00:00
Daniel Borca
b756990b84
t' was not initialized (use texture' instead?)
2004-12-21 15:45:41 +00:00
Brian Paul
3ec0631e95
fix bug in _mesa_IsTexture()
2004-12-21 15:13:41 +00:00
Keith Whitwell
50694eeff9
Note that state is dirty on contended lock. Allows two applications
...
to run together correctly, though scheduling between them still isn't
great.
2004-12-21 13:23:10 +00:00
Keith Whitwell
3955313e7c
Add missing swap-control calculations.
...
Remove debug printf.
2004-12-21 12:35:04 +00:00
Keith Whitwell
314f8e4d9d
Add vsync swapbuffers. This waits on the irq so gears run in this mode
...
will have a very low cpu utilization (and also a very low framerate).
Fix up the pageflipping code. This works now but is totally oblivious
to the X server (ie. it works but it's broken). Turned off by a #define.
2004-12-21 11:57:03 +00:00
Daniel Borca
91a04617c4
added GL_EXT_stencil_two_side (yes, it works)
2004-12-21 08:21:52 +00:00
Daniel Borca
d7b9d6046d
missing `or' in preprocessor conditional
2004-12-21 08:05:43 +00:00
Keith Whitwell
16db15718d
Add a -fullscreen option
2004-12-20 14:48:19 +00:00
Keith Whitwell
14bc684990
Remove #ifdef DEBUG's in code, but still allow compiler to remove debug
...
code if DEBUG not defined.
2004-12-20 12:52:21 +00:00
Daniel Borca
b51600716e
put back clipmask code; it proved to be a MinGW/gcc 3.3.x error in t_vb_cliptmp.h(47), where it would still send clipped vertices to the hw... oh, dear...
2004-12-20 08:24:10 +00:00
Daniel Borca
6bb1be010e
use float constants.
...
fixed a small debug error.
2004-12-20 08:20:39 +00:00
Daniel Borca
7799294459
removed ifdef'ed out code (to whom it may concern: it can be found in dri/tdfx driver)
2004-12-20 08:19:28 +00:00
Daniel Borca
16d4166d14
removed detritus (ncc).
2004-12-20 08:18:19 +00:00
Daniel Borca
7b50d773d3
comment reorg.
...
removed detritus (ncc).
2004-12-20 08:17:36 +00:00
Daniel Borca
ad149e3e65
made some functions static.
2004-12-20 08:16:24 +00:00
Daniel Borca
9e821269fc
comment reorg.
...
made some functions static.
hide vp behind an envvar.
removed unnecessary multitex constraint for napalm hw.
2004-12-20 08:15:50 +00:00
Daniel Borca
6a7b4690e3
allow greater swappendingcount for older hw (v1/v2)
2004-12-20 08:12:09 +00:00
Daniel Borca
00b7aba567
misc cleanup
2004-12-20 08:09:25 +00:00
Daniel Borca
0d7da6c3e0
allow ARB vp/fp query program errors
2004-12-20 08:08:15 +00:00
Daniel Borca
2982dce27e
really protect against npot compressed textures (logbase2 never returns -1).
2004-12-20 08:03:01 +00:00
Ian Romanick
0d84c68313
Use GLX protocol code generated by glX_proto_send.py.
2004-12-20 04:53:00 +00:00
Ian Romanick
46be433c47
No GLX protocol for GL_ATI_fragment_shader.
2004-12-20 04:47:46 +00:00
Vladimir Dergachev
55fb41ade8
Fix cut and paste error (reported by Jerome Glisse)
2004-12-19 15:39:40 +00:00
Dave Airlie
7f752fed99
Implement software ATI_fragment_shader
...
no error detection, slow, may not be 100% correct but a good start
2004-12-19 03:06:59 +00:00
Brian Paul
a803b0c891
Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().
2004-12-18 22:03:07 +00:00
Brian Paul
feac302567
added GL_ARB_pixel_buffer_object extension string
2004-12-18 16:19:08 +00:00
Brian Paul
2a5afe3ab8
Added PRINT instruction for GL_NV_fragment_program.
2004-12-18 16:18:00 +00:00
Thomas Hellström
6cec977773
Unichrome DRI driver:
...
Fix for proplem where polygons partly outside the drawing window would get
one vertex clamped to the opposite window side. This bug could also cause
a hardlock. (Bugzilla #2066 , Yann Vernier)
2004-12-18 12:16:12 +00:00
Felix Kuehling
3d04879801
Made debugging output controllable via environment variable
...
SAVAGE_DEBUG. Added fallback debugs. Added no_rast option to disable
hardware rasterization (everything as software fallback).
2004-12-17 15:55:17 +00:00
Brian Paul
538541e300
VMS update
2004-12-17 14:48:00 +00:00
Daniel Borca
cf95169542
fxRasterPrimitive wasn't always receiving the reduced primitive
2004-12-17 10:40:32 +00:00
Daniel Borca
02978f1092
fxRasterPrimitive wasn't always receiving the reduced primitive
2004-12-17 08:08:37 +00:00
Felix Kuehling
0d39c4ebc9
Added a TNL pipeline stage that normalizes texture coordinates as a
...
workaround for bad Savage hardware interpolation of big texture
coordinates.
2004-12-17 00:01:15 +00:00
Adam Jackson
c403bcb8a7
Import s3virge and trident drivers. Not functional yet; no Makefile, no DRI-aware DDX.
2004-12-16 19:26:23 +00:00