summaryrefslogtreecommitdiff
path: root/src/mesa/main
AgeCommit message (Collapse)Author
2008-05-19Fix program refcounting assertion failure during context tear-downBrian Paul
When purging the program hash table, the refcount _should_ be one since the program is referenced by the hash table. Need to explicitly set to zero before calling delete(). Also, purge high-level shader hash tables before low-level program hash tabl cherry-picked from master
2008-05-18alias ProgramEnvParameter4xyARB and ProgramParameter4xyNV (bug #12935)Brian Paul
these should be the same functions (as per spec). cherry-picked from master (86a4810b09097714942bf2b889e6c62357bba931)
2008-05-06mesa: free shader program data before deleting shader objects.Brian
Picked from master. Fixes mem corruption seen when glean/api2 test exits.
2008-05-06gallium: implement full reference counting for vertex/fragment programsBrian
Use _mesa_reference_vert/fragprog() wherever we assign program pointers. Fixes a memory corruption bug found with glean/api2 test. Another memory bug involving shaders yet to be fixed...
2008-05-06mesa: comments, whitespaceBrian
2008-05-05fix _mesa_ffs for alternative compilersAlan Hourihane
2008-05-01Fix build problem with MSVCAlan Hourihane
2008-04-30Add support for GL_REPLACE_EXT texture env mode.Brian Paul
GL_REPLACE_EXT comes from the ancient GL_EXT_texture extension. Found an old demo that actually uses it. The values of the GL_REPLACE and GL_REPLACE_EXT tokens is different, unfortunately.
2008-04-29mesa: added _mesa_scale_and_bias_depth_uint()Brian Paul
2008-04-25gallium: fix typo s/_mesa_unmap_drapix_pbo/_mesa_unmap_drawpix_pbo/Brian Paul
2008-04-24mesa: adjust glBitmap coords by a small epsilonBrian Paul
Fixes problem with bitmaps jumping around by one pixel depending on window size. The rasterpos is often X.9999 instead of X+1. Run progs/redbook/drawf and resize window to check.
2008-04-04mesa: no longer combine vertex/fragment shader parameters/uniformsBrian
GLSL Vertex and fragment shaders now have independent parameter buffers. A new gl_uniform_list is used to keep track of program uniforms and where each uniform is located in each shader's parameter buffer. This makes better use of the space in each buffer and simplifies shader linking.
2008-04-04Alias glStencilOpSeparateATI with glStencilOpSeparate.Brian
2008-04-04Finish up ATI_separate_stencilBrian
Add entrypoints to glapi XML file and regenerate files. Implement glStencilOpSeparateATI(). Consolidate some code in stencil.c
2008-04-04add missing _mesa_StencilFuncSeparateATI functionRoland Scheidegger
2008-03-28mesa: fix texture/renderbuffer mix-up in test_attachment_completeness()Brian Paul
2008-03-22delete default programs with ctx->Driver.DeleteProgram()Brian
2008-03-21Refactor PBO validate/map code.Brian
We always need to do PBO validation, so do that in core Mesa before calling driv er routine. cherry-picked from Mesa/master.
2008-03-21add a number of PBO validate/map/unmap functionsBrian Paul
Helper functions for (some) drivers, including swrast. cherry-picked from Mesa/master
2008-03-21Fix some PBO breakage.Brian
In _mesa_Bitmap, can't early return if bitmap ptr is NULL, it may be an offset into a PBO. Similarly for _mesa_GetTexImage.
2008-03-14mesa: clamp point size in vertex program when computing attenuated sizeBrian Paul
2008-03-10fix Height2/Depth2 init problem when using texture bordersBrian
2008-02-25Remove files of unsupported build systems.José Fonseca
2008-02-11gallium: take pitch/stride into account in mipmap generationBrian
2008-02-11code refactoring, new next_mipmap_level_size() functionBrian
2008-02-11added _mesa_tex_target_to_face()Brian
2008-02-11refactor code, export _mesa_generate_mipmap_level()Brian
2008-02-11move _mesa_format_to_type_and_comps() to texformat.cBrian
2008-02-11reorder cases in do_row()Brian
2008-02-11re-indent do_row()Brian
2008-02-11checkpoint- consolidation in do_row()Brian
2008-02-11checkpoint- remove dependencies on gl_texture_format to make code re-usable ↵Brian
by state tracker
2008-02-08Remove unused texunit parameter to ctx->Driver.GenerateMipmap()Brian
2008-02-06Added ctx->Driver.GenerateMipmap() driver hookBrian
2008-01-18use PROGRAM_CONSTANT instead of PROGRAM_STATE_VAR when generating ↵Brian
immediates/literals
2008-01-01fix mem leak (free key)Brian
2008-01-01free Default1D/2DArray objectsBrian
2007-12-14set SamplerUnit[] entry in load_texture() just to be safeBrian
2007-12-14set program->SamplersUsed bit when using a texture instructionBrian
2007-12-11prefix some #includesBrian
2007-12-11Rework gallium and mesa queries a little.Keith Whitwell
Add a 'CheckQuery()' driver callback to mesa to check query completion. Make pipe_query an opaque type. Rework softpipe queries, support overlapping occlusion queries.
2007-12-05Fix endianness bug in _mesa_texstore_argb8888()Brian
On big-endian, storing in _mesa_texformat_argb8888 format produced wrong results. Also, clean-up nearby code to match.
2007-11-08in check_end_texture_render(), test for presence of a renderbuffer and texobjBrian
2007-11-05Determine GL extensions/limits by making pipe queries.Brian
The state tracker calls pipe->get_param() to determine the GL limits and which OpenGL extensions are supported. This is an initial implementation that'll probably change...
2007-11-05no-op glCopyPixels if width or height is zeroBrian
2007-11-01disable the driverContext assertionsBrian
2007-10-31Update texenvprogram.c code to use prog_cache.c routines.Brian
2007-10-31more flags for MaintainTnlProgram case, update #includesBrian
2007-10-31Use ffvertex_prog.c code instead of t_vp_build.c code.Brian
2007-10-31Lift fixed function vertex program generation up from tnl module.Brian