Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Free vertex program TnlData, if any. Fixes a mem leak. | Brian Paul | 2006-08-25 | 1 | -0/+7 |
| | |||||
* | clamp result.depth to [0,1] if written to | Brian Paul | 2006-08-25 | 1 | -1/+6 |
| | |||||
* | Remove XFree86 CVS keyword. | Brian Paul | 2006-08-25 | 4 | -6/+3 |
| | |||||
* | Rearrange glBindProgram() code to do all error checking before changing | Brian Paul | 2006-08-25 | 1 | -51/+43 |
| | | | | the binding. Prevent a potential dangling pointer error. SF Bug 1544507. | ||||
* | In _save_End(), set CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END if | Brian Paul | 2006-08-25 | 1 | -0/+3 |
| | | | | | we're in GL_COMPILE_AND_EXECUTE mode. This fixes bug 7984. | ||||
* | improved comments | Brian Paul | 2006-08-25 | 1 | -5/+18 |
| | |||||
* | Rename _mesa_append_modelview_code() to _mesa_insert_mvp_code(). | Brian Paul | 2006-08-25 | 2 | -23/+24 |
| | | | | | The four DP4 instructions are now inserted at the top of the program instead of appended to tail. | ||||
* | use _mesa_alloc_instructions() | Brian Paul | 2006-08-25 | 3 | -8/+5 |
| | |||||
* | added _mesa_alloc_instructions() utility function | Brian Paul | 2006-08-25 | 2 | -0/+16 |
| | |||||
* | Add missing enums for GL_SGI_color_table. | Ian Romanick | 2006-08-25 | 2 | -2559/+2624 |
| | |||||
* | update MAX_INSTRUCTIONS limit | Brian Paul | 2006-08-24 | 1 | -1/+4 |
| | |||||
* | According to GL_NV_fragment_program, max frag prog length is 1024 instructions. | Brian Paul | 2006-08-24 | 1 | -1/+1 |
| | | | | Updated MAX_NV_FRAGMENT_PROGRAM_INSTRUCTIONS to 1024. | ||||
* | Cg tries to bind NV fragment programs to the GL_FRAGMENT_PROGRAM_ARB target | Brian Paul | 2006-08-24 | 1 | -1/+22 |
| | | | | | | with glBindProgramARB(). I guess the GL_ARB_fragment_program specification allows that, but Mesa didn't. Relaxed the check with a new predicate function: compatible_program_targets(). | ||||
* | scalar sources such as 'time.x' weren't accepted by parser | Brian Paul | 2006-08-24 | 1 | -2/+16 |
| | |||||
* | Functions for vertex/fragment program transformations, optimizations, etc. | Brian Paul | 2006-08-24 | 3 | -0/+184 |
| | |||||
* | fix bad casts, carry over r200 fix to check for null program string in ↵ | Brian Paul | 2006-08-24 | 1 | -2/+5 |
| | | | | r300_translate_vertex_shader() | ||||
* | Check for NULL program string in r200_translate_vertex_program(). | Brian Paul | 2006-08-24 | 1 | -2/+18 |
| | | | | | Fixes bug reported by Chris Rankin. Added some new comments. | ||||
* | use _mesa_realloc_instructions() | Brian Paul | 2006-08-24 | 1 | -6/+6 |
| | |||||
* | Added _mesa_realloc_instructions() utility function. | Brian Paul | 2006-08-24 | 2 | -2/+38 |
| | | | | Fixed/updated comments for parameter list functions. | ||||
* | GL_EXT_paletted_texture functions should alias GL_SGI_color_table functions. | Ian Romanick | 2006-08-24 | 12 | -2005/+1835 |
| | | | | | | | | | | The functions for GL_EXT_paletted_texture that do not share GLX protocol with GL_ARB_imaging are supposed to alias the similar functions from GL_SGI_color_table. They didn't. This patch corrects this problem and enables GLX protocol for both extensions. Since this removes 3 entries from the dispatch table, this change creates a lot of changes in the generated files. | ||||
* | Add a new offset mode to the GL API XML. This mode, called "assign," | Ian Romanick | 2006-08-24 | 13 | -12941/+10134 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tells the scripts to assign an available offset to the function. The important changes are in src/mesa/glapi/gl_XML.py and src/mesa/glapi/*.xml. Since the DRI drivers only depend on functions required by the ABI (e.g., GL 1.2 + ARB_multitexture) having fixed offsets, all functions not in the ABI use "assign" mode. This has caused the offset of basically every function outside the ABI to change. I have verified that a libGL with this patch works with a DRI driver without the patch. Futher, several function were removed from the dispatch tables altogether. These are the functions for the following extensions: GL_SGIS_texture_filter4 GL_SGIS_texture4D GL_SGIS_detail_texture GL_SGIS_sharpen_texture GL_SGIX_sprite GL_SGIX_instruments GL_SGIX_framezoom GL_SGIX_tag_sample_buffer GL_SGIX_reference_plane GL_SGIX_flush_raster GL_SGIX_list_priority GL_SGIX_fragment_lighting GL_PGI_misc_hints GL_EXT_index_material GL_EXT_index_func GL_3DFX_tbuffer This removes 50 functions from the dispatch table. | ||||
* | fix fragment.position initialization bug | Brian Paul | 2006-08-24 | 1 | -4/+10 |
| | |||||
* | Check if mesa_vp->Base.Parameters is null before dereferencing (bug report | Brian Paul | 2006-08-24 | 1 | -3/+6 |
| | | | | | from Chris Rankin). Also, fix some bad casts. | ||||
* | Fix some problems with the generation of the size tables. Enable | Ian Romanick | 2006-08-24 | 1 | -7/+13 |
| | | | | generation of protocol tables for Render. | ||||
* | silence warning | Brian Paul | 2006-08-23 | 1 | -2/+1 |
| | |||||
* | Added _mesa_lookup_program() and _mesa_lookup_bufferobj() functions to avoid | Brian Paul | 2006-08-23 | 8 | -31/+48 |
| | | | | | | a lot of casting elsewhere. Use _mesa_lookup_texture() in tdfx driver, use _mesa_lookup_bufferobj() in r300 driver. | ||||
* | New script and API description file to enable generate of GLX protocol | Ian Romanick | 2006-08-23 | 4 | -3/+629 |
| | | | | decode tables in the server. | ||||
* | remove duplicate pieces of code. | Aapo Tahkola | 2006-08-22 | 2 | -41/+4 |
| | |||||
* | extend some DrawRangeElements cases to support rendering more than 65535 ↵ | Aapo Tahkola | 2006-08-22 | 3 | -6/+39 |
| | | | | verts in one blast. ut2k4 cases in other words ... | ||||
* | fix broken write-only depth setting. use early z where possible. | Aapo Tahkola | 2006-08-22 | 1 | -126/+117 |
| | |||||
* | Correct the name of the GL_NV_texture_expand_normal extension. | Ian Romanick | 2006-08-22 | 1 | -1/+1 |
| | |||||
* | The TLS dispatch functions for x86-64 are fixed-size, just like on | Ian Romanick | 2006-08-22 | 1 | -18/+22 |
| | | | | | | | | | | x86. This means that the position of each dispatch function can be calculated as (dispatch_offset * size_of_function) + glNewList. This allows us to not store the function pointers in glprocs_table_t. This same optimization has been done for quite some time on x86. We could probably also do this for some cases of the SPARC dispatch as well. | ||||
* | Add new attribute called static_dispatch to the <function> element. This | Ian Romanick | 2006-08-22 | 15 | -95/+223 |
| | | | | | | | | | | | | | | | | | | | boolean attribute, which defaults to true, determines whether or not a static dispatch function is available in libGL for applications to link against. Ideally, any new functions that are not part of the ABI should not have directly accessable dispatch functions. This forces applications to use glXGetProcAddress to access these functions. By doing this we can gracefully remove functions from libGL without breaking the linkage of applications. Note that the static dispatch functions are still generated. However, they are given names like gl_dispatch_stub_820 and are marked with the "hidden" linker attribute. All extension functions added since the previous Mesa release (6.5) have been marked as 'static_dispatch="false"'. | ||||
* | move ALL_SOURCES to sources file | Brian Paul | 2006-08-21 | 2 | -12/+11 |
| | |||||
* | remove FBDEV_DRIVER_OBJECTS assignment (in sources file) | Brian Paul | 2006-08-21 | 1 | -3/+3 |
| | |||||
* | More GLSL preprocessor code: | Michal Krol | 2006-08-21 | 5 | -43/+230 |
| | | | | | | | Rename slang_version.syn to slang_pp_version.syn. The #version directive understands version 120. Cosmetic changes in version preprocessor. Checks if requested version is supported by the compiler. | ||||
* | GLSL 1.20 constructors and operators. | Michal Krol | 2006-08-21 | 1 | -0/+1716 |
| | |||||
* | remove the now confusing option to manually enable software ARB_vp if drm is ↵ | Roland Scheidegger | 2006-08-19 | 2 | -4/+2 |
| | | | | not new enough on r200 | ||||
* | Removed ifeq from makefile, and corrected fbdev driver so it compiles | Sean D'Epagnier | 2006-08-19 | 1 | -9/+3 |
| | |||||
* | Fix-ups for linux-fbdev config. No longer build Xlib driver sources. | Brian Paul | 2006-08-18 | 2 | -3/+18 |
| | |||||
* | The driver now compiles correctly without any x headers or libraries installed | Sean D'Epagnier | 2006-08-18 | 2 | -46/+44 |
| | | | | | | | | | | The bitmap and stroke code can't be shared with glx anymore because of this. The model for the mini teapot is restored and I have tested it to work with linux-fbdev and linux-solo The driver recognizes 32bpp where there is no alpha (my radeon 7500) It also sets the correct number of cmap entrees (instead of 256 which can be an error) | ||||
* | Fix writemasks on texture arb fp instructions. | Alan Hourihane | 2006-08-18 | 11 | -38/+64 |
| | | | | Cleanup invarient state emission. | ||||
* | sort the FEATURE_ defines | Brian Paul | 2006-08-17 | 1 | -12/+14 |
| | |||||
* | added FEATURE_EXT_timer_query and tests | Brian Paul | 2006-08-17 | 3 | -3/+17 |
| | |||||
* | change #ifdef to #if | Brian Paul | 2006-08-17 | 1 | -1/+1 |
| | |||||
* | change tex memory allocation calls (debian bug 383209) | Brian Paul | 2006-08-16 | 1 | -2/+1 |
| | |||||
* | When available, which is most of the time, use posix_memalign to implement | Ian Romanick | 2006-08-16 | 1 | -3/+21 |
| | | | | _mesa_align_malloc and friends. | ||||
* | Enable support for GL_EXT_gpu_program_parameters for R300. | Ian Romanick | 2006-08-15 | 2 | -1/+3 |
| | |||||
* | Add support for GL_EXT_gpu_program_parameters. Any driver that enables | Ian Romanick | 2006-08-15 | 16 | -180/+529 |
| | | | | | either GL_ARB_vertex_program or GL_ARB_fragment_program should enable this extension as well. | ||||
* | Remove extraneous trailing semicolon. | Ian Romanick | 2006-08-15 | 1 | -1/+1 |
| |