summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* [texenvprogram] Fix refcounting-related memory leak.Nicolai Haehnle2008-06-021-1/+2
| | | | | | | | All newly created programs have RefCount == 1, but the fragment program cache added an additional reference in cache_item, with the result being that none of the programs were ever freed. Solve the problem by not creating the additional reference in cache_item.
* Use the GLuint64EXT type defined by GL_EXT_timer_queryBrian Paul2008-05-291-11/+6
| | | | Removes some compiler #ifdef stuff.
* set version string to 7.1 rc1Brian Paul2008-05-271-1/+1
|
* Fix program refcounting assertion failure during context tear-downBrian Paul2008-05-191-6/+8
| | | | | | | | 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 tables.
* Updated GLSL uniform/sampler handling from gallium-0.1 branchBrian Paul2008-05-142-3/+12
| | | | | | | | | | Previously, the shader linker combined the uniforms used by the vertex and fragment shaders into a combined set of uniforms. This made the implementation of glUniform*() simple, but was rather inefficient otherwise. Now each shader gets its own set of uniforms (no more modelview matrix showing up in the fragment shader uniforms, for example). cherry-picked by hand from gallium-0.1 branch
* Revert "mesa/intel: map/unmap texture objects around mipmap generation ↵Dave Airlie2008-05-091-6/+0
| | | | | | | | function." This reverts commit c50ffc4cb89b67ae59208eb72cdb664c846ba987. I'll fix this using the mipmap hooks I just picked from gallium-0.1
* Remove unused texunit parameter to ctx->Driver.GenerateMipmap()Brian2008-05-095-29/+10
| | | | (cherry picked from commit c3395f4473c8fdf75d04c0dd72e687bc8d8127a7)
* Added ctx->Driver.GenerateMipmap() driver hookDave Airlie2008-05-093-25/+32
| | | | | | | | (cherry picked from commit 4c2f3dbca940f289e67248682b84a3516d5a3031) Conflicts: src/mesa/drivers/common/driverfuncs.c
* mesa/intel: map/unmap texture objects around mipmap generation function.Dave Airlie2008-05-091-0/+6
| | | | | This at least stops the compiz brain explosion we were seeing, I do wonder though if we should somehow be calling intel_generate_mipmap somehow.
* fix refcounting bugs in tnl/tex program cachesBrian Paul2008-05-072-33/+38
|
* implement full reference counting for vertex/fragment programsBrian2008-05-063-21/+37
| | | | | Use _mesa_reference_vert/fragprog() wherever we assign program pointers. Fixes a memory corruption bug found with glean/api2 test.
* Add support for ATI_separate_stencil in display lists.Michal Wajdeczko2008-05-061-0/+33
|
* fix conversion of GLfloat display list IDsBrian Paul2008-05-011-21/+24
| | | | | | Use floor() to convert to int (per Mark Kildard and the SI). Also, change translate_id() to return a signed integer since we may be offsetting from GL_LIST_BASE.
* Add support for GL_REPLACE_EXT texture env mode.Brian Paul2008-04-301-1/+6
| | | | | | 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.
* mesa: adjust glBitmap coords by a small epsilonBrian Paul2008-04-291-2/+3
| | | | | | | | 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. Cherry picked from gallium-0.1 branch
* drop stray includes of glapiGeorge Sapountzis2008-04-231-1/+0
|
* glcore: drop outdated sources files intented for xorgGeorge Sapountzis2008-04-231-138/+0
|
* glcore: build from mesaGeorge Sapountzis2008-04-231-5/+0
|
* only use __x86_64__, not __amd64__ (bug 15503)Brian Paul2008-04-141-1/+1
|
* commentsBrian Paul2008-04-111-2/+7
|
* fix mistakenly set ATIFragmentShader._Enabled bit (bug 15269)Roland Scheidegger2008-04-011-1/+1
|
* mesa: Free all shader program data before deleting allXiang, Haihao2008-03-311-0/+16
| | | | shader/shader program objects to avoid memory access error.
* Revert "mesa: separate shader program object from shader object." (bug#15244)Xiang, Haihao2008-03-312-17/+9
| | | | This reverts commit 3ffd11f71d021f672b9bc15b3c39c155a0e2fecb.
* fix texture/renderbuffer mix-up in test_attachment_completeness()Brian2008-03-281-1/+1
|
* implement glGet/BindAttribLocationARB() for display listsBrian2008-03-251-0/+26
| | | | More such shader functions are needed...
* add GL_READ_FRAMEBUFFER_BINDING_EXT case, regenerate get.c fileBrian2008-03-242-0/+65
|
* delete default programs with ctx->Driver.DeleteProgram()Brian2008-03-221-2/+2
|
* [win32] Use native aligned memory allocation functions.Michal Wajdeczko2008-03-211-0/+18
|
* Refactor PBO validate/map code.Brian2008-03-213-76/+74
| | | | We always need to do PBO validation, so do that in core Mesa before calling driver routine.
* include varray.h to silence warningBrian2008-03-211-1/+1
|
* add a number of PBO validate/map/unmap functionsBrian2008-03-212-4/+222
| | | | Helper functions for (some) drivers, including swrast.
* Fix some PBO breakage.Brian2008-03-212-11/+6
| | | | | In _mesa_Bitmap, can't early return if bitmap ptr is NULL, it may be an offset into a PBO. Similarly for _mesa_GetTexImage.
* fix IEEE_ONE definition for ICC compiler (bug 15134)Brian2008-03-191-3/+3
|
* Fix compat implementation of ffs() to return 1-based bit numbers.Andrzej Trznadel2008-03-171-0/+1
|
* mesa: avoid to unlock an unlocked array in _mesa_PopClientAttribXiang, Haihao2008-03-171-1/+1
|
* mesa: Follow GL spec to draw DEPTH_COMPONENT pixels whenXiang, Haihao2008-03-171-2/+1
| | | | there's no depth buffer. Fix bug #11580
* Set normalized flag for GLubyte arrays in _mesa_VertexAttribPointerNV()Markus Amsler2008-03-091-1/+2
|
* init vertex weight attrib to (1,0,0,0)Markus Amsler2008-03-091-1/+1
|
* fix __builtin_expect() definition test for IBM XLC (sf bug 1909832)Brian2008-03-091-1/+1
|
* replace // comment with /* */ (bug 14916)Brian2008-03-091-1/+1
|
* i965: use _Current pointer instead of Current pointer.Xiang, Haihao2008-02-291-1/+2
| | | | fix double free issue(bug#14710). It also corrects glsl/bitmap demo behavior.
* mesa: separate shader program object from shader object.Xiang, Haihao2008-02-282-9/+17
| | | | | | | | | Currently a callback delete_shader_cb is used for deleting shader and shader program objects. Mesa detaches all attached shaders in _mesa_free_shader_program_data when deleting shader program objects. However it is likely that these shaders have been freed in _mesa_free_shader, which will result in unexpected behaviour. This fix uses a single callback for shader program objects and deletes shader program objects before shader objects.
* Change GetCompressedTexImage in dd_function_table to not take const pointers.Kristian Høgsberg2008-02-253-6/+6
| | | | | They're changed by the intel driver implementation and thus not const. Fixes compilation warning.
* Fix glBindTexture crash (bug 14514)Brian2008-02-151-1/+3
|
* Trivial SELinux awareness. Enable with --enable-selinux.Adam Jackson2008-02-151-3/+19
| | | | | Avoids AVC warnings when allocating executable memory by first checking if the current process has permission to do so.
* fix bug with generated fragment programs if vertex shader is activeRoland Scheidegger2008-02-151-2/+2
| | | | | | | When generating a fragment program from fixed function, checking texUnit->_ReallyEnabled is not sufficient, need texUnit->Enabled too since the former also represents texture enables from an active vertex shader.
* _mesa_swizzle_ubyt_image: Don't use single swizzle_copy callXiang, Haihao2008-02-131-0/+1
| | | | if components don't match. fix #13508
* Allow first != 0 in mesa CVA handling, and add more error checking.Eric Anholt2008-02-043-9/+27
|
* mesa: re-define NEED_SECONDARY_COLOR. fix #14310.Xiang, Haihao2008-02-021-0/+2
|
* check if fb->Delete is null (bugs 13507,14293)Brian2008-01-301-1/+6
|