Alan Hourihane [Thu, 2 Dec 2004 13:29:40 +0000 (13:29 +0000)]
Fix some warnings
Ian Romanick [Thu, 2 Dec 2004 00:01:12 +0000 (00:01 +0000)]
Updated the schema. Added comments explaining some of the non-obvious
attributes. Modified a couple handcode functions to use the count_scale
attribute instead.
Ian Romanick [Wed, 1 Dec 2004 23:53:43 +0000 (23:53 +0000)]
Corrected a problem with the sizes of the MAP[12]_* enums.
Ian Romanick [Wed, 1 Dec 2004 21:25:52 +0000 (21:25 +0000)]
Added a couple missing always_array annotations and a couple trival
enum-only extensions.
Ian Romanick [Wed, 1 Dec 2004 20:20:13 +0000 (20:20 +0000)]
Prevent possible divide-by-zero error.
Ian Romanick [Wed, 1 Dec 2004 09:41:14 +0000 (09:41 +0000)]
Refactor ExtractDir and OpenDriver to be a bit more clear.
Ian Romanick [Wed, 1 Dec 2004 09:11:04 +0000 (09:11 +0000)]
Use indirect_size.c and indirect_size.h generated by using
src/mesa/glapi/glX_proto_send.py with the '-m size_c' and '-m size_h'
options.
Ian Romanick [Wed, 1 Dec 2004 09:06:34 +0000 (09:06 +0000)]
Slightly tweak the format of the size prototypes.
Ian Romanick [Wed, 1 Dec 2004 08:49:41 +0000 (08:49 +0000)]
Use the indirect_init.c generate by using src/mesa/glapi/glX_proto_send.py
with the '-m init_c' option.
Ian Romanick [Wed, 1 Dec 2004 08:47:35 +0000 (08:47 +0000)]
Make the transition to script-genereated GLX code easier.
Convert GL 1.4 function names to EXT_blend_func_separate names.
Ian Romanick [Wed, 1 Dec 2004 08:42:31 +0000 (08:42 +0000)]
Make the transition to script-genereated GLX code easier.
Convert GL 1.4 / ARB_point_parameter function names to EXT_point_parameter /
NV_point_sprite names.
Ian Romanick [Wed, 1 Dec 2004 08:35:37 +0000 (08:35 +0000)]
Python script to generate various bits of client-side GLX protocol code.
Ian Romanick [Wed, 1 Dec 2004 08:31:15 +0000 (08:31 +0000)]
Make the transition to script-genereated GLX code easier.
Move "handcoded" ARB_window_pos / MESA_window_pos functions to their own
file. Modify the ARB_window_pos functions to use the MESA_window_pos names.
Ian Romanick [Wed, 1 Dec 2004 08:22:44 +0000 (08:22 +0000)]
Make the transition to script-genereated GLX code easier.
Move "handcoded" ARB_transpose_matrix functions to their own file. From
here on out, such handcoded functions should go in a file named
indirect_FOO.c, where "FOO" is some logical name for the functionality
(e.g., part of the extension name, etc.).
Ian Romanick [Wed, 1 Dec 2004 08:15:01 +0000 (08:15 +0000)]
Make the transition to script-genereated GLX code easier.
Move EXT_vertex_array wrapper functions from indirect_init.c to vertarr.c.
Fix problems with EXT_multi_draw_arrays function names.
Ian Romanick [Wed, 1 Dec 2004 08:02:50 +0000 (08:02 +0000)]
Make the transition to script-genereated GLX code easier.
Eliminate the need for indirect_wrap.h and NEED_GL_FUNCS_WRAPPED.
Basically, this means prepending __indirect_ to all the definitions and
calls of GL functions that don't already have it.
Ian Romanick [Wed, 1 Dec 2004 07:34:25 +0000 (07:34 +0000)]
Make the transition to script-genereated GLX code easier.
Convert GL_ARB_texture_compression related functions to use the extension
version of the names instead of the GL 1.3 versions.
Ian Romanick [Wed, 1 Dec 2004 00:29:48 +0000 (00:29 +0000)]
Added the ability to get the size of a parameter as a string. Changed the
meaning of "variable length array" to include variables that are "counted"
instead of just ones that use an enum to map to a count. Added glParameter
to the glItemFactory.
Ian Romanick [Wed, 1 Dec 2004 00:25:46 +0000 (00:25 +0000)]
Added enums for GL_OES_read_format.
Ian Romanick [Wed, 1 Dec 2004 00:20:22 +0000 (00:20 +0000)]
Add trivial support ARB_texture_rectangle and OES_read_format.
Ian Romanick [Wed, 1 Dec 2004 00:18:01 +0000 (00:18 +0000)]
Missed GL_OES_read_format_bit in last commit.
Ian Romanick [Tue, 30 Nov 2004 23:29:51 +0000 (23:29 +0000)]
Since we know the problem with HP_occlusion_test is / was on the server-side,
re-enable the extension on the client-side.
Ian Romanick [Tue, 30 Nov 2004 23:27:33 +0000 (23:27 +0000)]
PrioritizeTextures, GetClipPlane, and WindowPos3fMESA don't need to be
handcoded, but Enable and Disable do. Corrected some minor problems in the
PixelMap functions and some ARB_vertex_program functions. Added size data
for the enums that can be passed to the Map[12][fd] functions. Added the
enums for EXT_pixel_buffer_objects.
Keith Whitwell [Tue, 30 Nov 2004 19:15:06 +0000 (19:15 +0000)]
EXT_422_pixels test
Brian Paul [Mon, 29 Nov 2004 17:31:03 +0000 (17:31 +0000)]
no need to include stddef.h anymore
Brian Paul [Mon, 29 Nov 2004 17:30:21 +0000 (17:30 +0000)]
silence a warning
Brian Paul [Mon, 29 Nov 2004 17:26:19 +0000 (17:26 +0000)]
added __glXFindDRIScreen to glXGetProcAddress (bug
1068879)
Brian Paul [Mon, 29 Nov 2004 17:23:12 +0000 (17:23 +0000)]
fixed OSF/1 shared lib problem (bug
1065260)
Brian Paul [Mon, 29 Nov 2004 14:41:46 +0000 (14:41 +0000)]
update from Jouk
Brian Paul [Sun, 28 Nov 2004 18:07:33 +0000 (18:07 +0000)]
fix missing width/height error
Brian Paul [Sat, 27 Nov 2004 22:47:59 +0000 (22:47 +0000)]
Remove _mesa_ResizeBuffersMESA() call from _mesa_set_viewport().
Now, the driver's Viewport routine should call _mesa_ResizeBuffersMESA()
if necessary.
Cleaned up code related to GLframebuffer width/height initialization.
Set initial viewport/scissor params in _mesa_make_current2(), instead of
in the drivers' MakeCurrent functions.
Brian Paul [Sat, 27 Nov 2004 22:44:35 +0000 (22:44 +0000)]
new comments and assertions
Brian Paul [Sat, 27 Nov 2004 21:20:37 +0000 (21:20 +0000)]
Remove the redundant width, height fields in xmesa_buffer struct. Just use
the values in the contained GLframebuffer.
Removed some other unneeded code.
Brian Paul [Sat, 27 Nov 2004 20:21:25 +0000 (20:21 +0000)]
remove _glapi_add_entrypoint() calls, they're already in context.c
Brian Paul [Sat, 27 Nov 2004 20:14:03 +0000 (20:14 +0000)]
add a few functions in add_newer_entrypoints()
Brian Paul [Sat, 27 Nov 2004 20:07:08 +0000 (20:07 +0000)]
Change the dispatch offsets for the VertexAttrib*NV functions so they don't
alias with the corresponding ARB functions.
GL_ARB_vertex_shader (and OpenGL 2.0's) VertexAttrib functions don't alias
with conventional vertex attributes, as GL_NV_vertex_program does.
So, the ARB and NV version of VertexAttrib need to be distinct.
Brian Paul [Sat, 27 Nov 2004 19:57:46 +0000 (19:57 +0000)]
silence warnings
Brian Paul [Sat, 27 Nov 2004 19:42:16 +0000 (19:42 +0000)]
misc updates
Brian Paul [Sat, 27 Nov 2004 17:32:03 +0000 (17:32 +0000)]
Set symbol visibility to 'default', if supported by gcc.
Brian Paul [Sat, 27 Nov 2004 17:30:41 +0000 (17:30 +0000)]
use new PUBLIC macro for symbol export
Brian Paul [Sat, 27 Nov 2004 16:57:06 +0000 (16:57 +0000)]
don't need glut_fbc.c
Brian Paul [Sat, 27 Nov 2004 16:49:52 +0000 (16:49 +0000)]
new GetOverlayInfo() function to reduce code and silence warnings
Brian Paul [Sat, 27 Nov 2004 16:24:39 +0000 (16:24 +0000)]
Have OSMesaGetProcAddress() return new OSMESAproc typedef.
Brian Paul [Sat, 27 Nov 2004 05:05:32 +0000 (05:05 +0000)]
clean up code related to dispatch table initialization
Brian Paul [Sat, 27 Nov 2004 04:58:39 +0000 (04:58 +0000)]
clean up 'depend' commands
Brian Paul [Sat, 27 Nov 2004 04:54:48 +0000 (04:54 +0000)]
typedef GLUTproc, return it from glutGetProcAddress()
Brian Paul [Sat, 27 Nov 2004 04:50:34 +0000 (04:50 +0000)]
remove -Wmissing-prototypes from g++ flags, per gcc 3.4
Brian Paul [Sat, 27 Nov 2004 04:37:25 +0000 (04:37 +0000)]
use @ to silence some unneeded output
Brian Paul [Sat, 27 Nov 2004 04:02:32 +0000 (04:02 +0000)]
make get_static_proc_address() return a _glapi_proc
Brian Paul [Sat, 27 Nov 2004 03:51:25 +0000 (03:51 +0000)]
use _glapi_proc
Brian Paul [Sat, 27 Nov 2004 03:51:11 +0000 (03:51 +0000)]
Use new _glapi_proc typedef instead of void * for function pointers.
Misc clean-ups in glapi.c
Brian Paul [Sat, 27 Nov 2004 03:47:14 +0000 (03:47 +0000)]
fix typo, update version/date
Brian Paul [Sat, 27 Nov 2004 03:29:39 +0000 (03:29 +0000)]
remove the GLAPI/GLAPIENTRY defines - they're already in gl.h
Brian Paul [Sat, 27 Nov 2004 03:21:43 +0000 (03:21 +0000)]
removed a bunch of #define cruft, in case anyone still uses this code
Brian Paul [Sat, 27 Nov 2004 03:14:57 +0000 (03:14 +0000)]
Removed GLCALLBACK stuff - apparently never used anywhere.
Removed GLWINAPI stuff - only used (unnecessarily?) in enums.c
Brian Paul [Fri, 26 Nov 2004 16:23:22 +0000 (16:23 +0000)]
added X11 and OSMESA source to ALL_SOURCES, updated etags command
Brian Paul [Fri, 26 Nov 2004 13:43:17 +0000 (13:43 +0000)]
(GLint*) casts in glGetIntegerv calls
Brian Paul [Fri, 26 Nov 2004 13:34:45 +0000 (13:34 +0000)]
update some type names
Brian Paul [Thu, 25 Nov 2004 23:26:16 +0000 (23:26 +0000)]
Use a generic function typedef instead of void * to avoid gcc 3.4 warnings.
Brian Paul [Thu, 25 Nov 2004 23:25:33 +0000 (23:25 +0000)]
Use __GLXextFuncPtr type instead of void * for generic functions to
avoid gcc 3.4 compiler warnings.
Remove the unused/obsolete GLX_render_texture stuff.
Brian Paul [Thu, 25 Nov 2004 23:23:40 +0000 (23:23 +0000)]
Some new comments, clean-up formatting, etc.
Brian Paul [Thu, 25 Nov 2004 23:22:56 +0000 (23:22 +0000)]
Started some assorted clean-ups in #defines, typedefs, etc.
Next: move all the Windows/WGL stuff into the drivers/windows/ directory.
Brian Paul [Thu, 25 Nov 2004 23:20:07 +0000 (23:20 +0000)]
minor APIENTRY clean-ups
Keith Whitwell [Thu, 25 Nov 2004 14:05:05 +0000 (14:05 +0000)]
Update expected DRM version to 2.0.0
Ian Romanick [Wed, 24 Nov 2004 18:55:45 +0000 (18:55 +0000)]
Added support for several additional enum-only extensions:
ARB_texture_rectangle, EXT_texture_env_dot3, EXT_texture_mirror_clamp,
ATI_texture_mirror_once, IBM_texture_mirrored_repeat,
NV_packed_depth_stencil, and NV_texture_rectangle.
Ian Romanick [Wed, 24 Nov 2004 18:13:43 +0000 (18:13 +0000)]
Added information about numerous enums to aid the development of automatic
code generation for GLX protocol. This includes adding support for several
additional enum-only extensions: EXT_filter_anisotropic, NV_expand_normal
NV_fog_distance, NV_texture_env_combine4, SGIS_generate_mipmap,
SGIX_clipmap, SGIX_depth_texture, SGIX_fog_offset, SGIX_shadow,
SGIX_shadow_ambient, SGIX_texture_coordinate_clamp, SGIX_texture_lod_bias,
and SGIX_texture_scale_bias.
Brian Paul [Tue, 23 Nov 2004 23:29:42 +0000 (23:29 +0000)]
update _mesa_store_teximageXd() comments and minor code clean-up
Roland Scheidegger [Tue, 23 Nov 2004 18:49:18 +0000 (18:49 +0000)]
revert enabling of hw quads for swtcl. It lead to problems with quad_strips, since they'll get reduced to quads sometimes if hw quads are enabled. But this needs more thought, since it looks like clipped primitives will always be emitted as polys, so the reduced primitives for triangles, quads, quads_strips, polys all need to be the same, otherwise get lockups with for instance the olympic test. Render templates would probably need to be changed for this to work.
Ian Romanick [Tue, 23 Nov 2004 00:19:51 +0000 (00:19 +0000)]
Set the "ignore" flag for any functions that the open-source libGL doesn't
already support GLX protocol for.
Brian Paul [Mon, 22 Nov 2004 20:01:25 +0000 (20:01 +0000)]
Don't allow queries/etc of buffer object 0 - it's invisible to users.
Misc clean-ups.
Brian Paul [Mon, 22 Nov 2004 19:58:59 +0000 (19:58 +0000)]
added GL_RED/GREEN/BLUE to is_color_format()
Brian Paul [Mon, 22 Nov 2004 19:39:16 +0000 (19:39 +0000)]
silence warning, minor clean-up
Brian Paul [Mon, 22 Nov 2004 19:27:40 +0000 (19:27 +0000)]
applied SPARC patch (freedesktop bug 1898)
Brian Paul [Mon, 22 Nov 2004 19:11:01 +0000 (19:11 +0000)]
include <X11/Xthreads.h> instead of "Xthreads.h"
Brian Paul [Mon, 22 Nov 2004 17:49:15 +0000 (17:49 +0000)]
misc updates
Daniel Borca [Mon, 22 Nov 2004 08:46:53 +0000 (08:46 +0000)]
handle ENABLE_BIT for EXT_stencil_two_side
Brian Paul [Mon, 15 Nov 2004 16:54:14 +0000 (16:54 +0000)]
fix APP_LIB_DEPS (bug
1065260)
Adam Jackson [Mon, 15 Nov 2004 15:31:32 +0000 (15:31 +0000)]
Sync with Xorg head: mingw build fixes from Alexander Gottwald.
Daniel Borca [Mon, 15 Nov 2004 10:54:57 +0000 (10:54 +0000)]
moved windoze specific code outside drivers/glide/
Daniel Borca [Mon, 15 Nov 2004 08:06:55 +0000 (08:06 +0000)]
work around a bug in gcc 3.3.3 (which duplicates ASM block)
Daniel Borca [Mon, 15 Nov 2004 08:05:59 +0000 (08:05 +0000)]
fix _mesa_image_address2d invocation
Daniel Borca [Mon, 15 Nov 2004 08:04:33 +0000 (08:04 +0000)]
use float constants
Daniel Borca [Mon, 15 Nov 2004 08:03:22 +0000 (08:03 +0000)]
use parentheses to avoid warning
Daniel Borca [Mon, 15 Nov 2004 08:02:24 +0000 (08:02 +0000)]
the win32 interface will be moving under windows/
Daniel Borca [Mon, 15 Nov 2004 08:01:20 +0000 (08:01 +0000)]
emphasize on the contents of Glide SDK
Roland Scheidegger [Fri, 12 Nov 2004 18:34:35 +0000 (18:34 +0000)]
enable hw quad primitive for swtcl
Roland Scheidegger [Fri, 12 Nov 2004 18:29:51 +0000 (18:29 +0000)]
add LOCK_HARDWARE/UNLOCK_HARDWARE to radeonClear so state gets updated which hopefully fixes lockups (?) (from r200 driver)
Roland Scheidegger [Fri, 12 Nov 2004 18:27:14 +0000 (18:27 +0000)]
(from r200 driver) If an application cleared before any state had been emitted, that clear would
happen before any state had been set, causing a hang later on. Fix this by
calling radeonFlush instead of FIREVERTICES (which checks if any state has been
emitted but not flushed, before calling Flush) in radeonClear. While here, add
some more debugging info which was useful, and remove an unnecessary
save/restore in BackUpAndEmit.
Roland Scheidegger [Fri, 12 Nov 2004 18:00:44 +0000 (18:00 +0000)]
fix quads to use GL_QUADS instead of GL_TRIANGLES as primitive
Daniel Borca [Fri, 12 Nov 2004 15:00:30 +0000 (15:00 +0000)]
small note regarding SSE under pure DOS
Daniel Borca [Fri, 12 Nov 2004 14:58:26 +0000 (14:58 +0000)]
added a few sanity checks
made coding style a bit more consistent
Daniel Borca [Fri, 12 Nov 2004 10:23:10 +0000 (10:23 +0000)]
added DD_TRI_TWOSTENCIL to ease EXT_stencil_two_side in device drivers
Daniel Borca [Fri, 12 Nov 2004 10:11:04 +0000 (10:11 +0000)]
wip hack for EXT_stencil_two_side
Daniel Borca [Fri, 12 Nov 2004 09:56:33 +0000 (09:56 +0000)]
pop(stencil) for EXT_stencil_two_side
Adam Jackson [Fri, 12 Nov 2004 04:20:15 +0000 (04:20 +0000)]
brown paper bag, r100 can't do hardware quads.
Adam Jackson [Fri, 12 Nov 2004 04:13:27 +0000 (04:13 +0000)]
make render_quads_verts call EMIT_PRIM with the arguments in the right order,
and enable hardware quads on r200 and radeon. samples/prim renders quads
correctly now.
Brian Paul [Wed, 10 Nov 2004 23:16:22 +0000 (23:16 +0000)]
allow specifying image file on command line
Brian Paul [Wed, 10 Nov 2004 15:46:52 +0000 (15:46 +0000)]
GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpacking
and ignored for 1D and 2D images.
Need to pass in image dimensions (1,2,3) to the _mesa_image_address() function.
This change gets propogated to some other routines.
Also added new _mesa_image_address[123]d() convenience functions.
Brian Paul [Wed, 10 Nov 2004 15:25:37 +0000 (15:25 +0000)]
added shaderobjects.c
Roland Scheidegger [Wed, 10 Nov 2004 01:49:01 +0000 (01:49 +0000)]
add some chip ids