summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* for VERTEX_ATTRIB_WEIGHT, use break, not returnBrian Paul2006-09-061-1/+2
|
* Hack for Warcraft (bug 8060): allow 'vertex.weight' to be referenced inBrian Paul2006-09-051-0/+10
| | | | | vertex program, even though it's not really supported. Results will be undefined, but Warcraft doesn't actually use the attribute.
* fix typo in enable_parser_extensions(): s/point_parameters/vertex_blend/Brian Paul2006-09-051-1/+1
|
* Consolidate common case of _mesa_set_program_error() followed by _mesa_error()Brian Paul2006-09-051-248/+172
| | | | | | in new program_error() function. Add const qualifiers in many places. Reorder some debug code to prevent referencing free'd memory.
* Dynamically allocate instruction store for tnl programs according toKeith Whitwell2006-09-051-15/+21
| | | | requirements.
* Fixes for calculating point attenuationKeith Whitwell2006-09-041-9/+14
|
* Don't export NV_vertex_program as it's not supported, it confusesKeith Whitwell2006-09-041-3/+0
| | | | | glean, and we no longer need to export it to keep Mesa happy as we did at one time.
* Managed to make a commit that can't build... Sorry again...Rune Petersen2006-09-041-0/+1
|
* get rid of GL_BOOLEAN definition (bug 8113)Brian Paul2006-09-041-5/+1
|
* fog state atom contains (only) fog params necessary for tcl. Must not be ↵Roland Scheidegger2006-09-041-2/+2
| | | | emitted if vertex progs are enabled as it overlaps vertex param #94.
* add missing change to skip low impact RAST fallback...Rune Petersen2006-09-031-14/+17
| | | | Sorry.
* fix the presumably broken check for the allow_large_textures and vblank_mode ↵Roland Scheidegger2006-09-013-3/+3
| | | | options (same as bug 8042).
* make sure vertex programs are only enabled on the hw when they are really ↵Roland Scheidegger2006-09-012-9/+11
| | | | enabled, not just when a program enables vertex progs (could still be not enabled due to some error). Otherwise the hw potentially would try to execute a not valid (not set up at all) vertex program, likely leading to lockups. Hopefully fixes #8060.
* Catch a few more cases of using a message reg as an instruction sourceKeith Whitwell2006-09-011-17/+37
| | | | arg.
* fix a couple of cases where a message reg is used as an instruction source.Keith Whitwell2006-09-012-6/+26
|
* Add API description for GLX_SGI_swap_control.Ian Romanick2006-08-311-0/+7
|
* Fix problems with vertex program protocolIan Romanick2006-08-312-65/+65
| | | | | | | | | | | There were two sets of bugs in the vertex program (ARB and NV) protocol. First, several of the ARB functions were missing the 'doubles_in_order="true"' annotation. Second, after the ARB decided that glVertexAttrib*ARB functions must not alias fixed-function state for GLSL, Nvidia re-assigned GLX protocol opcodes for glVertexAttrib*NV (circa Septeber 2004). For some reason gl_API.xml was never updated to reflect this, and the updated version of the GL_NV_vertex_program spec never made into the registry.
* re-apply shader fix.Rune Petersen2006-08-311-1/+1
| | | | appears to have been reverted by mistake.
* When using the old technique to set up the front buffer mapping, thereKeith Whitwell2006-08-311-1/+1
| | | | | is no need to add front.offset to sPriv->pFB, it seems. Fixes several glean issues and frontbuffer rendering generally.
* Give the user posibility to choose speed over correctness.Rune Petersen2006-08-313-2/+18
| | | | | | It does 2 things: 1) Allows you to disable S3TC, wine-games sometimes need S3TC enabled. 2) Disable fallbacks that usually have low impact.
* check if ext->name is null before strcmp()Brian Paul2006-08-311-1/+1
|
* do not abort with not supported vertex prog output configuration, fallback ↵Roland Scheidegger2006-08-311-3/+19
| | | | instead
* Handle API and dispatch table changes that removed a bunch of extension ↵Karl Schultz2006-08-302-114/+50
| | | | entry points.
* Check that we don't try to reference more than one target of a texture unit.texmem_0_2_20060912Brian Paul2006-08-301-1/+17
| | | | | For example, referencing both "texture[0], 2D" and "texture[0], CUBE" in one program is an error.
* s/0/VERT_RESULT_HPOS/Brian Paul2006-08-301-1/+1
|
* Add missing parenthesis so that glXSwapIntervalSGI protocol isIan Romanick2006-08-301-1/+1
| | | | correctly generated.
* Add missing vec4 instructions to the interpreter.Michal Krol2006-08-303-30/+176
| | | | Other cosmetic changes.
* Use XAddExtension() to register an XCloseDisplay() callback function.Brian Paul2006-08-304-5/+103
| | | | | | When the callback is called, free all Mesa's private visual and buffer data structures which are tied to the display. Fixes problems reported by Kitware.
* init a local var to silence warningBrian Paul2006-08-301-3/+3
|
* Minor r200 vertex program cleanups. Remove disabled leftovers from r300 ↵Roland Scheidegger2006-08-302-62/+24
| | | | vertex program code. Fix authors. Correct slightly wrong check to determine if ran out of temps. Simplify check to determine if ran out of max instructions. Correctly report used native temps. Always kick off program translation when ProgramStringNotify is called (otherwise the reported native resources used queried might be wrong).
* fix initialization of native resource usage of vertex/fragment programsRoland Scheidegger2006-08-301-0/+10
|
* fix typo causing a segfault when a vertex program uses more than 96 parametersRoland Scheidegger2006-08-301-1/+1
|
* Move call to _swrast_update_rasterflags() since it depends on theBrian Paul2006-08-291-3/+3
| | | | | results of _swrast_update_fog_state(). Fixes bug where first frame of progs/samples/fog.c does not show fog.
* _mesa_debug() should be a no-op when not compiled with DEBUG defined.Brian Paul2006-08-291-1/+4
|
* remove assertion that referenced &glSetFenceNV for debug testBrian Paul2006-08-291-1/+0
|
* replace abort with _mesa_problem()Brian Paul2006-08-291-1/+2
|
* Deprecate GL_EXT_vertex_weighting.Ian Romanick2006-08-2910-1910/+1740
| | | | | | Nvidia no longer supports this extension, and they no longer export its entry points from their libGL. There's no reason for us to keep dragging it around either.
* More static dispatch function removal.Ian Romanick2006-08-296-583/+725
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make functions for the following extensions available only via glXGetProcAddress. In cases where there are other aliases to the same functions (e.g., between GL_EXT_histogram and GL_ARB_imaging), the alias functions may still be statically exported. - GL_ATI_blend_equation_separate - GL_EXT_blend_equation_separate - GL_EXT_convolution - GL_EXT_color_sub_table - GL_EXT_cull_vertex - GL_EXT_depth_bounds_test - GL_EXT_framebuffer_blit - GL_EXT_histogram - GL_EXT_multisample - GL_EXT_stencil_two_side - GL_EXT_timer_query - GL_IBM_multimode_draw_arrays - GL_INGR_blend_func_separate - GL_NV_fence - GL_SGI_color_table - GL_SGIS_multisample - GL_SGIS_pixel_texture - GL_SGIS_point_parameters - GL_SGIX_pixel_texture
* Clean up GLX function exports.Ian Romanick2006-08-295-246/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make functions for the following extensions only accessable via glXGetProcAddress: - GLX_EXT_texture_from_pixmap - GLX_MESA_copy_sub_buffer - GLX_MESA_release_buffers - GLX_MESA_swap_control - GLX_MESA_swap_frame_usage - GLX_OML_sync_control - GLX_SGI_make_current_read - GLX_SGI_swap_control - GLX_SGI_video_sync - GLX_SGIX_swap_barrier - GLX_SGIX_swap_group Removed all remnants of the following extensions: - GLX_MESA_set_3dfx_mode - GLX_SGI_cushion - GLX_SGIX_dmbuffer - GLX_SGIX_video_resize - GLX_SGIX_video_source - GLX_SUN_get_transparent_index -
* Check mesa_vp->Base.NumInstructions == 0 instead of mesa_vp->Base.String toBrian Paul2006-08-282-2/+2
| | | | determine if we actually have a program. See "[r300] TCL fallback with Quake3".
* Add two new gl_function methods. dispatch_name returns the name ofIan Romanick2006-08-286-220/+208
| | | | | | | | | | | | | the true static dispatch name (either the glFooBar name or the gl_dispatch_stub_XXX name). static_name returns the name of the static function for a specific alias of a GL function. Adding (and using) these two functions corrects some problems in the generated code related to functions with multiple aliases where some of the aliases have true static dispatch functions and some don't. I have verified that everything under progs, except xdemos/xdemo, correctly link. I did this by doing 'make linux-dri-x86-64 PROGRAM_DIRS="demos redbook samples xdemos tests"'.
* Add dependencies for all API XML files.Ian Romanick2006-08-281-2/+6
|
* remove unused varBrian Paul2006-08-281-1/+0
|
* fix the check for force_s3tc_enable (bug 8042)Brian Paul2006-08-281-1/+1
|
* close #6318Aapo Tahkola2006-08-271-7/+4
|
* The colormap code is now simpler, 15bpp works where it did not before.Sean D'Epagnier2006-08-272-45/+32
| | | | | | The input is fixed so that delete reports '\b' and backspace 127 The vt switching works both right and left.
* Explicitly store the names for each function that should have a staticIan Romanick2006-08-266-30/+41
| | | | | | entry point generated. This allows us to do things like generate a static entry point for glPointParameterfvARB but not for glPointParameterfvSGIS.
* Fix bug 8010 - locking issues.Alan Hourihane2006-08-261-4/+2
|
* fix #8008Aapo Tahkola2006-08-261-8/+4
|
* include texobj.h to silence warningBrian Paul2006-08-251-0/+1
|