Brian Paul
523f5cfeb5
Add a lot of const qualifiers for const-correctness.
...
New comments, misc clean-ups.
2006-11-16 22:31:34 +00:00
Brian Paul
1f0c86ee35
reindent
2006-11-16 21:58:35 +00:00
Brian Paul
01a5a9afd8
remove unused imesa local var to silence warnings
2006-11-16 21:40:54 +00:00
Brian Paul
3dedeaa055
Initial implementation work for CAL, RET, and BRA instructions for fragment
...
programs.
2006-11-16 21:28:35 +00:00
Brian Paul
fa941e4267
disable yesterday's _mesa_add_named_constant() change for now
2006-11-16 20:59:11 +00:00
Brian Paul
cba90c17ad
fix bug 9046
2006-11-16 20:58:26 +00:00
Patrice Mandin
9021df2d2a
nv10 state copy/pasted from nv30 state
2006-11-16 19:50:56 +00:00
Brian Paul
f7436f4c8a
regenerate from gl.h
2006-11-16 16:13:55 +00:00
Brian Paul
bb69d3af36
remove obsolete GL_MESA_trace stuff
2006-11-16 16:13:43 +00:00
Brian Paul
7438a78cf4
use LONGSTRING to silence warning
2006-11-16 16:12:10 +00:00
Brian Paul
ebe4c893f8
fix glDrawPixels(GL_COLOR_INDEX, GL_BITMAP) bug 9044
2006-11-16 14:44:23 +00:00
Keith Whitwell
b979479721
Make sure vbo's are mapped before accessing their contents in
...
api_arrayelt.c. Reported by Haihao Xiang.
2006-11-16 02:33:38 +00:00
Brian Paul
82eeb62a31
reindent, clean-up
2006-11-16 00:58:44 +00:00
Brian Paul
0c6723aee5
Add a size parameter to _mesa_add_unnamed_constant() and
...
_mesa_add_named_constant() to indicate vector size (1, 2, 3 or 4).
Always 4 for now...
2006-11-15 23:38:02 +00:00
Brian Paul
699a33ea77
Add new _mesa_lookup_parameter_constant() to search for a GLfloat4 constant
...
in a parameter list.
Use it in _mesa_add_named_constant() and _mesa_add_unnamed_constant() to
avoid duplication of identical constants.
2006-11-15 23:19:52 +00:00
Brian Paul
408e01b939
reindent, add some comments
2006-11-15 21:52:20 +00:00
Brian Paul
4a12160e8f
reindent
2006-11-15 21:41:24 +00:00
Brian Paul
adbbf94fa4
indent, comments
2006-11-15 21:39:57 +00:00
Brian Paul
2d376a61f0
s/int/GLboolean/
2006-11-15 21:39:32 +00:00
Brian Paul
82a9ba92b4
improved error mesages
2006-11-15 21:38:26 +00:00
Brian Paul
7c279f4dd7
fix casts to silence warnings
2006-11-15 21:35:06 +00:00
Brian Paul
11a54c38f7
#define LONGSTRING __extension__ in imports.h and use it to silence gcc
...
warnings about long string literals.
2006-11-15 19:54:25 +00:00
Brian Paul
12e710c850
Comments for operations.
2006-11-15 18:56:48 +00:00
Jerome Glisse
8f6a50a49c
Remove use of GetBufferSize (depreciated).
2006-11-15 17:45:05 +00:00
Brian Paul
222930461f
more bug fixes
2006-11-15 14:59:05 +00:00
Keith Whitwell
6cc5a82206
Make sure RENDER_FINISH is called on the zero pixel case. Reported by
...
Haihao Xiang.
2006-11-14 14:22:43 +00:00
Ian Romanick
efa91b9a8f
Enable GLX_SGI_make_current_read for tdfx.
...
Implement GLX_SGI_make_current_read for tdfx. Remove annoying debug
printf in tdfxSwapBuffers. Updated a comment in drirenderbuffer.h to
note that the tdfx driver uses a flag that was previously only used by
s3v.
This code was tested with glxgears, wincopy, and manywin.
2006-11-14 00:10:34 +00:00
Ian Romanick
0b69e4837e
Clean-up compiler warnings.
2006-11-13 23:34:35 +00:00
Ian Romanick
37ce9b30e9
Implement GL_ARB_occlusion_query.
...
Based on the old code that implemented GL_HP_occlusion_test, implement
GL_ARB_occlusion_query. This code passes progs/demo/arbocclude.
2006-11-13 22:54:43 +00:00
Ian Romanick
ce526de6ff
tdfxDDWriteDepthPixels can be called with mask == NULL.
...
Via depth_test_pixels (swrast/s_depth.c), tdfxDDWriteDepthPixels can
be called with mask == NULL. Test for this condition in the places
where mask might be dereference. This matches the behavior of several
other functions in this file with a 'const GLubyte mask[]' parameter.
2006-11-13 22:51:11 +00:00
Ian Romanick
038bd400e2
Major clean-up of tdfxDDGetString.
2006-11-13 21:53:04 +00:00
Ian Romanick
7fbe6a5c51
Eliminate use of deprecated GetBufferSize interface.
2006-11-13 21:21:40 +00:00
Ian Romanick
e7ad10587a
Fix "3D driver claims to not support visual ..." warnings.
...
In 16-bit color modes the 3D driver was erroneously creating fbconfigs
with 16-bits of accumulation alpha. Since the 2D driver always
generates modes with zero bits of alpha, the lists of fbconfigs did
not match and warnings were generated by libGL.
2006-11-13 20:54:51 +00:00
Ben Skeggs
47695f0689
Fix segfault in nouveauCalcViewport
2006-11-13 16:01:03 +00:00
Jeremy Kolb
d5d00cf8c9
Add include guard.
2006-11-12 18:18:02 +00:00
Ben Skeggs
2af374716f
Some more nouveau_screen.c setup, not sure how correct it is yet though..
2006-11-12 08:38:44 +00:00
Ben Skeggs
b8e05366e1
We need nmesa->driFd and friends setup before we call nouveauFifoInit
2006-11-12 02:06:30 +00:00
Ben Skeggs
6464787bfd
Dont call exit() from the DRI driver, with AIGLX this is particularly nasty
2006-11-12 02:05:40 +00:00
Ben Skeggs
d037c84c33
fix typo
2006-11-11 20:00:29 +00:00
Stephane Marchesin
f65a4b8a8d
Some nouveau_screen work for darktama
2006-11-11 18:25:00 +00:00
Jeremy Kolb
4f61fd18b2
Fill in nv30PointSize and nv30Viewport.
2006-11-11 16:48:14 +00:00
Stephane Marchesin
994ea9556f
Fix the texture init function name
2006-11-11 12:01:48 +00:00
Stephane Marchesin
0850289d8c
Add the GL_LIGHING enable
2006-11-11 11:25:08 +00:00
Stephane Marchesin
f82bc9110b
Some work on nv30 state, heavily based on jkolb's work
2006-11-11 00:00:45 +00:00
Ian Romanick
466d4a1dd0
Added information about added GLX_SGI_make_current_read support
2006-11-10 21:11:39 +00:00
Ian Romanick
ded5517bd5
Bump driver date.
2006-11-10 21:06:23 +00:00
Ian Romanick
5c38472152
Refactor savageXMesaSet{Back,Front}ClipRects.
...
Refactor savageXMesaSetBackClipRects and savageXMesaSetFrontClipRects
into a single new routine called savageXMesaSetClipRects. This allows
a few cleanups in the code.
2006-11-10 18:57:30 +00:00
Ian Romanick
6e2c952537
Enable GLX_SGI_make_current_read.
...
Eliminate use of deprecated GetBufferSize interface. Keep framebuffer
state associated with the read-drawable and the draw-drawable up to
date.
Tested with progs/demos/wincopy.
2006-11-10 18:47:22 +00:00
Brian Paul
0a3a1c6ae9
fix -noprefix option for Solaris (bug 7722)
2006-11-10 12:47:56 +00:00
Dave Airlie
2862316309
Fix up texture compression at least Get and TexImage, not too sure about
...
how to fix SubTexImage with compressed textures
2006-11-10 00:32:35 +00:00