summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-06-096-39/+54
|\ | | | | | | | | | | | | | | | | Conflicts: Makefile src/mesa/main/version.h src/mesa/shader/slang/slang_preprocess.c src/mesa/state_tracker/st_cb_bufferobjects.c
| * mesa/st: fix tracking of mapped buffer rangesKeith Whitwell2009-06-091-1/+1
| | | | | | | | | | In st_bufferobj_map_range(), set obj->Offset consistently with its usage elsewhere.
| * glsl: Expand nested preprocessor macros.Brian Paul2009-06-091-1/+14
| | | | | | | | (cherry picked from master, commit ef8caec29ae73bb2bbeb48f0578d839ef29348cd)
| * st/mesa: fix incorrect bufObj Length assignment, remove unneeded assertionBrian Paul2009-06-081-2/+1
| |
| * glsl: Fix preprocessor define argument parsing for dead sections.Brian Paul2009-06-081-4/+4
| | | | | | | | (cherry picked from master, commit 19a54d9f1055c366fd77026dd67007a8d5921f58)
| * st/mesa: remove invalid assertionBrian Paul2009-06-081-3/+0
| | | | | | | | | | | | It's legal for ARB_vertex_program programs to not write to result.position. The results are undefined in that case. This assertion was causing us to abort/exit though.
| * mesa: Use matching signedness for the counter as upper bound.José Fonseca2009-06-081-1/+1
| |
| * mesa: Allocate tokens from the heap.José Fonseca2009-06-081-18/+22
| | | | | | | | | | | | | | | | | | | | | | The recent increase ST_MAX_SHADER_TOKENS to 8K causes stack overflows on windows. Failure to allocate is not being propagated to the caller. This is not a regression since the previous _mesa_malloc result wasn't being checked as well. Unfortunately it is not easy to fix, as the callers of these functions do not have failure propagation mechanism either, and so on. So leaving a just fixme note for now.
| * mesa: better error message for invalid texture unit indexBrian Paul2009-06-081-1/+4
| |
| * mesa: bump MAX_PROGRAM_ENV_PARAMS from 128 to 256Brian Paul2009-06-081-2/+2
| | | | | | | | Also, MAX_NV_VERTEX_PROGRAM_PARAMS should be 96, not 128 (or 256).
| * mesa/vbo: drop all references to vbo on destroyKeith Whitwell2009-06-081-8/+21
| | | | | | | | | | | | We were adding references to the input arrays, but failing to drop them on destruction. This could lead to a 64kb buffer being leaked each context destruction.
| * mesa: EXT_vertex_array_bgra fixesBrian Paul2009-06-081-3/+24
| | | | | | | | | | | | | | | | | | | | 1) Pass the correct format when calling update_array in _mesa_VertexAttribPointerARB. 2) glVertexAttribPointerNV accepts GL_BGRA format too. 3) raise INVALID_VALUE error when format is BGRA and normalized is false in glVertexAttribPointerARB (cherry picked from commit 4adb190a162c5ed0684a8616331344caadba4010)
| * mesa: bump version to 7.5-rc3mesa_7_5_rc3Brian Paul2009-06-051-1/+1
| |
| * osmesa: Allow building standalone in all three channel widthsDan Nicholson2009-06-041-27/+9
| | | | | | | | | | | | | | | | | | | | autoconf had been designating the 8 bit libOSMesa as the default standalone osmesa, but the Makefile expected it to be linked to libGL. Fix up the osmesa Makefile so that it allows any of the combinations of standalone and channel width to be built. Fixes bug #21980. (cherry picked from commit 7441dcd90b01df8351026af8bbb50e11bb86071a)
* | glsl: Fix symbol replacement handling in preprocessor.Michal Krol2009-06-101-13/+15
| |
* | i915: Add an option for testing the effect of early Z in classic mode.Eric Anholt2009-06-095-1/+17
| | | | | | | | | | | | The early Z stuff is supposed to be unsafe without some more work in the enable/disable path (in particular, how do we want to get it disabled on the way out to the X Server?), but at the moment is 6% in OA.
* | intel: Remove an unneeded hunk that slipped in with texture tiling.Eric Anholt2009-06-091-5/+0
| | | | | | | | intel_miptree_pitch_align does this later on.
* | intel: Base tri clearing depth on Y tiling, not IS_I965().Eric Anholt2009-06-091-4/+5
| | | | | | | | | | Y tiling is why the 965 check was there, but I wanted to experiment with Y on pre-965 as well.
* | intel: Fix intel_region_unmap to do unmap, not map.Eric Anholt2009-06-091-1/+1
| | | | | | | | Thanks to Shuang He for catching this.
* | i965: added intelFlush() call in intel_get_tex_image()Brian Paul2009-06-091-0/+6
| | | | | | | | Fixes the render-to-texture test in progs/tests/getteximage.c
* | intel: use GLboolean, not int, for compressed parameterBrian Paul2009-06-091-8/+9
| |
* | intel: make a bunch of glTexImage-related functions staticBrian Paul2009-06-096-149/+66
| |
* | intel: whitespace clean-upsBrian Paul2009-06-092-14/+5
| |
* | vbo: more glDrawElements debug code (disabled)Brian Paul2009-06-091-3/+74
| |
* | mesa: added a simple bounds checker to glMap/UnmapBuffer() (disabled)Brian Paul2009-06-091-0/+35
| |
* | intel: remove extra \n from warning stringBrian Paul2009-06-091-1/+1
| |
* | mesa: reorder fields, update comments for gl_buffer_objectBrian Paul2009-06-091-8/+11
| |
* | glsl: Expand nested preprocessor macros.Michal Krol2009-06-091-1/+14
| |
* | glsl: Fix preprocessor define argument parsing for dead sections.Michal Krol2009-06-081-4/+4
| |
* | glsl: preprocessor debug code (disabled)Brian Paul2009-06-081-0/+5
| |
* | mesa: new MESA_EXTENSION_OVERRIDE env varBrian Paul2009-06-081-11/+101
| | | | | | | | | | | | | | | | | | | | Can be used to enable/disable extensions as reported by glGetString(GL_EXTENSIONS). If a name is preceeded by '-' it's disabled. Otherwise, the named extension is enabled. Intended for debug/test purposes.
* | mesa: EXT_vertex_array_bgra fixesMaciej Cencora2009-06-081-3/+24
| | | | | | | | | | | | | | | | 1) Pass the correct format when calling update_array in _mesa_VertexAttribPointerARB. 2) glVertexAttribPointerNV accepts GL_BGRA format too. 3) raise INVALID_VALUE error when format is BGRA and normalized is false in glVertexAttribPointerARB
* | osmesa: Allow building standalone in all three channel widthsDan Nicholson2009-06-041-27/+9
| | | | | | | | | | | | | | | | | | autoconf had been designating the 8 bit libOSMesa as the default standalone osmesa, but the Makefile expected it to be linked to libGL. Fix up the osmesa Makefile so that it allows any of the combinations of standalone and channel width to be built. Fixes bug #21980.
* | mesa: call _mesa_ funcs, not gl funcs for debuggingBrian Paul2009-06-041-15/+18
| |
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-044-7/+23
|\| | | | | | | | | | | Conflicts: src/mesa/main/context.c
| * st/mesa: increase ST_MAX_SHADER_TOKENS to 8kBrian Paul2009-06-041-1/+1
| |
| * mesa: release VBO and PBO references upon context destructionBrian Paul2009-06-021-0/+10
| |
| * mesa: add #define FEATURE_ARB_pixel_buffer_objectBrian Paul2009-06-021-0/+1
| |
| * intel: Clip to window after calling Driver.TexImage2DIan Romanick2009-06-021-9/+8
| | | | | | | | | | | | | | | | | | | | This prevents the width / height from being clipped to the window size before the texture is allocated. This matches intelCopyTexImage1D. This should fix bug #21227 Signed-off-by: Ian Romanick <[email protected]> (cherry picked from commit 129f311673c99eb912d659023e50bc5f0ef53249)
| * mesa/st: restore flush to copy_texsubimage (was previously finish)Keith Whitwell2009-06-011-0/+3
| | | | | | | | Need a flush here even though the original finish was overkill.
| * st/gl: Fix mip gen for compressed texturesJakob Bornecrantz2009-06-011-6/+8
| |
* | intel: Add support for tiled textures.Eric Anholt2009-06-0413-44/+120
| | | | | | | | | | | | | | | | | | | | This is about a 30% performance win in OA with high settings on my GM45, and experiments with 915GM indicate that it'll be around a 20% win there. Currently, 915-class hardware is seriously hurt by the fact that we use fence regs to control the tiling even for 3D instructions that could live without them, so we spend a bunch of time waiting on previous rendering in order to pull fences off. Thus, the texture_tiling driconf option defaults off there for now.
* | i915: Don't rely on fence regs when we don't have to.Eric Anholt2009-06-048-62/+55
| | | | | | | | | | We're on the way to telling the kernel about when we need fence regs on our objects or not, and this will cut the number of places needing them.
* | i915: Remove some long-dead i830 code.Eric Anholt2009-06-041-20/+0
| |
* | swrast: always do span clipping in _swrast_write_rgba_span()Brian Paul2009-06-031-14/+4
| | | | | | | | | | | | | | | | It's possible for mis-behaving vertex programs to produce vertex data with very large/NaN values. This doesn't get handled reliably by the clipper code so we may try to rasterize triangles that extend beyond the viewport/window. Always clip spans to avoid invalid memory accesses later.
* | vbo: minor reformattingBrian Paul2009-06-031-16/+23
| |
* | vbo: move/refactor debug codeBrian Paul2009-06-031-38/+49
| |
* | vbo: added debug code to check array data validity (disabled)Brian Paul2009-06-031-0/+156
| |
* | vbo: new debug/dump code (disabled)Brian Paul2009-06-031-0/+58
| |
* | mesa: added NaN checking code (disabled)Brian Paul2009-06-031-0/+14
| |