Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mesa: rename functions to follow Mesa conventions | Brian Paul | 2011-03-19 | 1 | -35/+29 |
| | |||||
* | mesa: 80-column wrapping | Brian Paul | 2011-03-19 | 1 | -2/+4 |
| | |||||
* | mesa: call FLUSH_VERTICES() before deleting shaders, buffers, query objects | Brian Paul | 2011-03-11 | 1 | -0/+1 |
| | | | | | | | | Need to flush rendering (or at least indicate that the rug might be getting pulled out from underneath us) when a shader, buffer object or query object is about to be deleted. Also, this helps to tell the VBO module to unmap its current vertex buffer. | ||||
* | mesa: initialize DummyBufferObject's mutex | Brian Paul | 2011-03-07 | 1 | -0/+1 |
| | | | | | | The mutex's fields were all zeros. That's OK on Linux, but not Windows. NOTE: This is a candidate for the 7.10 branch. | ||||
* | mesa: move PBO-related functions into a new file | Brian Paul | 2011-02-28 | 1 | -242/+0 |
| | |||||
* | mesa: add/update VERBOSE_API logging | Brian Paul | 2011-02-08 | 1 | -0/+13 |
| | |||||
* | mesa: Directly include mfeatures.h in files that perform feature tests. | Vinson Lee | 2011-01-07 | 1 | -0/+1 |
| | |||||
* | mesa: Include mtypes.h in files that use gl_context struct. | Vinson Lee | 2011-01-05 | 1 | -0/+1 |
| | | | | | | Directly include mtypes.h if a file uses a gl_context struct. This allows future removal of headers that are not strictly necessary but indirectly include mtypes.h for a file. | ||||
* | mesa: fix glDeleteBuffers() regression | Brian Paul | 2010-11-11 | 1 | -2/+2 |
| | | | | | | | | This fixes a regression (failed assertion) from commit c552f273f559968dfd770367e25329baccbcd0c4 which was hit if glDeleteBuffers() was called on a buffer that was never bound. NOTE: this is a candidate for the 7.9 branch. | ||||
* | mesa: make glIsBuffer() return false for never bound buffers | Brian Paul | 2010-11-11 | 1 | -14/+18 |
| | | | | | | | Use a dummy buffer object as we do for frame/renderbuffer objects. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31514 Note: this is a candidate for the 7.9 branch. | ||||
* | mesa: no-op glBufferSubData() on size==0 | Brian Paul | 2010-11-09 | 1 | -0/+3 |
| | | | | | | Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31439 NOTE: this is a candidate for the 7.9 branch | ||||
* | Drop GLcontext typedef and use struct gl_context instead | Kristian Høgsberg | 2010-10-13 | 1 | -35/+35 |
| | |||||
* | mesa: Force GL_ARB_copy_buffer to always be enabled | Ian Romanick | 2010-09-27 | 1 | -8/+2 |
| | | | | As per discussions at XDS. | ||||
* | mesa: fix some printf warnings with casts | Brian Paul | 2010-09-02 | 1 | -4/+4 |
| | |||||
* | mesa: Fix many printf-like warnings. | Eric Anholt | 2010-09-01 | 1 | -9/+9 |
| | | | | | | | | Most of these are just typecasting to long to match the arg type. I don't really care too much about getting a GLsizei or whatever appropriate type in. However, there were a number of real bugs, like missing arguments or passing floats to integer format specifiers. My favorite: printflike("%s, argument") is missing an argument. | ||||
* | mesa: return retval in _mesa_RenderObjectUnpurgeable() | Brian Paul | 2010-07-16 | 1 | -1/+1 |
| | | | | | | Found by Vinson with static analysis. NOTE: This is a candidate for the 7.8 branch. | ||||
* | mesa: fix _mesa_Texture/Render/BufferObjectUnpurgeable() return values | Brian Paul | 2010-07-14 | 1 | -3/+3 |
| | | | | | | | Fixes piglit object_purgeable-api-pbo, object_purgeable-api-vbo and object_purgeable-api-texture failures with swrast. NOTE: This is a candidate for the 7.8 branch. | ||||
* | mesa: add new query/buffer targets for transform feedback | Brian Paul | 2010-03-30 | 1 | -0/+7 |
| | |||||
* | mesa: Add missing features. | Chia-I Wu | 2010-03-30 | 1 | -1/+1 |
| | | | | | | | Add features tested in the code but missing from mfeatures.h. This also fixes some tests of features. They should be tested with "#if", not "#ifdef". | ||||
* | mesa: remove return, do as the comment says | Brian Paul | 2010-03-22 | 1 | -1/+0 |
| | |||||
* | mesa: added new GL3 buffer object queries | Brian Paul | 2010-03-20 | 1 | -15/+53 |
| | | | | And clean up the error checking code. | ||||
* | Always return VOLATILE for ObjectPurgeable(VOLATILE) | Chris Wilson | 2010-03-05 | 1 | -4/+16 |
| | | | | | | | | | | | | Fixes fdo bug 26128. The spec mandates that VOLATILE is returned from ObjectPurgeable(VOLATILE) irrespective of the actual status of the object upon completion of marking it purgeable. Conform to the spec, even though it seems wrong. Signed-off-by: Chris Wilson <[email protected]> | ||||
* | mesa: whitespace fixes, 80-column wrapping, etc. | Brian Paul | 2010-03-05 | 1 | -84/+102 |
| | |||||
* | APPLE_object_purgeable: core | Chris Wilson | 2010-03-05 | 1 | -0/+356 |
| | | | | Signed-off-by: Chris Wilson <[email protected]> | ||||
* | Replace the _mesa_*printf() wrappers with the plain libc versions | Kristian Høgsberg | 2010-02-19 | 1 | -4/+4 |
| | |||||
* | Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions | Kristian Høgsberg | 2010-02-19 | 1 | -2/+2 |
| | |||||
* | mesa: replace _mesa_bzero() with memset() | Brian Paul | 2010-02-19 | 1 | -1/+1 |
| | |||||
* | Remove _mesa_memcpy in favor of plain memcpy. | Kenneth Graunke | 2010-02-19 | 1 | -4/+4 |
| | | | | This may break the SUNOS4 build, but it's no longer relevant. | ||||
* | mesa: Enable true refcounting for NullBufferObj. | Michal Krol | 2010-02-09 | 1 | -0/+11 |
| | | | | | | | | This object can be shared with another context, so we cannot just delete it when the owning context is being destroyed. Ensuring that buffer objects are properly refcounted guarantees NullBufferObj is destroyed when all references to it are removed. | ||||
* | mesa: Protect buffer objects reference counting with a mutex. | Michal Krol | 2010-02-09 | 1 | -4/+6 |
| | |||||
* | mesa: added _mesa_GetBufferParameteri64v() | Brian Paul | 2010-01-02 | 1 | -0/+42 |
| | | | | This is a new function in GL 3.2. No dispatch for this function yet. | ||||
* | mesa: code refactoring to eliminate a switch stmt in bind_buffer_object() | Brian Paul | 2009-10-27 | 1 | -66/+45 |
| | |||||
* | mesa: fix more buffer object error messages | Brian Paul | 2009-09-22 | 1 | -3/+3 |
| | |||||
* | mesa: combined PBO validate/map helpers | Brian Paul | 2009-09-03 | 1 | -0/+82 |
| | |||||
* | mesa: consolidate PBO map/unmap helpers | Brian Paul | 2009-09-03 | 1 | -67/+32 |
| | | | | | | | Instead of _mesa_map_readpix_pbo() use _mesa_map_pbo_source(). Instead of _mesa_map_drawpix_pbo() and _mesa_map_bitmap_pbo() use _mesa_map_pbo_dest(). | ||||
* | mesa: change ctx->Driver.BufferData() to return GLboolean for success/failure | Brian Paul | 2009-09-03 | 1 | -8/+18 |
| | | | | | Return GL_FALSE if we failed to allocate the buffer. Then raise GL_OUT_OF_MEMORY in core Mesa. | ||||
* | mesa: set additional fields in _mesa_buffer_map_range() | Brian Paul | 2009-08-31 | 1 | -3/+5 |
| | |||||
* | mesa: set Length/Offset fields in _mesa_buffer_map() | Brian Paul | 2009-08-31 | 1 | -0/+2 |
| | |||||
* | mesa: additional assertions for ctx->Driver.UnmapBuffer() | Brian Paul | 2009-08-31 | 1 | -4/+7 |
| | | | | | The Pointer, Offset and Lenght fields should be cleared by the driver function since ctx->Driver.Unmap() may be called from VBO code, etc. | ||||
* | mesa: new assertions, comments about buffer mapping | Brian Paul | 2009-08-31 | 1 | -12/+29 |
| | | | | | | | Since ctx->Driver.MapBuffer() and ctx->Driver.MapBufferRange() may be called from other places in Mesa (such as VBO) it's important that the driver callbacks set all the buffer object fields properly (Pointer, Offset, Length, etc). Add assertions to make sure that the driver does that. | ||||
* | mesa: use _mesa_is_bufferobj() | Brian Paul | 2009-08-12 | 1 | -17/+17 |
| | |||||
* | mesa: use _mesa_bufferobj_mapped() | Brian Paul | 2009-08-07 | 1 | -15/+15 |
| | |||||
* | mesa: make buffer object-related driver fallback functions static | Brian Paul | 2009-06-19 | 1 | -10/+36 |
| | | | | Plug them in via _mesa_init_buffer_object_functions(). | ||||
* | Merge branch 'arb_map_buffer_range' | Brian Paul | 2009-06-15 | 1 | -10/+225 |
|\ | | | | | | | | | | | | | Conflicts: docs/relnotes-7.6.html src/mesa/main/mtypes.h | ||||
| * | mesa: implement GL_ARB_map_buffer_range | Brian Paul | 2009-06-08 | 1 | -10/+225 |
| | | | | | | | | | | | | | | | | | | | | Only enabled for software drivers at this point. Note that the gl_buffer_object::Access enum field has been replaced by a gl_buffer_object::AccessFlags bitfield. The new field is a mask of the GL_MAP_x_BIT flags which is a superset of the old GL_READ_ONLY, GL_WRITE_ONLY and GL_READ_WRITE modes. When we query GL_BUFFER_ACCESS_ARB we translate the bitfield into the conventional enum values. | ||||
* | | mesa: use _mesa_reference_buffer_object() in a few places | Brian Paul | 2009-06-12 | 1 | -5/+9 |
| | | |||||
* | | mesa: added a simple bounds checker to glMap/UnmapBuffer() (disabled) | Brian Paul | 2009-06-09 | 1 | -0/+35 |
|/ | |||||
* | mesa: added buffer object debug code (disabled) | Brian Paul | 2009-06-03 | 1 | -0/+36 |
| | |||||
* | mesa: fix error test mistake in _mesa_CopyBufferSubData() | Brian Paul | 2009-06-02 | 1 | -1/+1 |
| | |||||
* | mesa: _mesa_CopyBufferSubData() function, and driver fall-back | Brian Paul | 2009-06-02 | 1 | -3/+142 |
| |