summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* mesa: minor whitespace fixesBrian Paul2011-03-244-7/+7
|
* mesa: new MESA_EXTENSION_MAX_YEAR env varBrian Paul2011-03-241-3/+17
| | | | | | | If set to year X, only report extensions up to that year. This is a work-around for games that try to copy the extensions string to a fixed size buffer and overflow. If a game was released in year X, setting MESA_EXTENSION_MAX_YEAR to that year will likely fix the problem.
* mesa: More glGet* fixes.José Fonseca2011-03-231-4/+4
| | | | | | glGet(GL_NORMAL_ARRAY) giving potentially wrong results. Most of glGet(GL_XXX_ARRAY_BUFFER_BINDING) giving totally bogus results.
* mesa: remove unused _MESA_NEW_NEED_NORMALSBrian Paul2011-03-231-3/+0
|
* mesa: remove _MESA_NEW_TRANSFER_STATEBrian Paul2011-03-234-10/+6
|
* mesa: Fix typo glGet*v(GL_TEXTURE_COORD_ARRAY_*).José Fonseca2011-03-221-3/+3
|
* mesa: 80-column wrapping and comment updatesBrian Paul2011-03-191-19/+20
|
* mesa: 80-column wrapping, update commentBrian Paul2011-03-191-7/+12
|
* mesa: consolidate enable/disable code for GL_TEXTURE_GEN_S/T/R/QBrian Paul2011-03-191-67/+9
|
* mesa: consolidate clip plane update codeBrian Paul2011-03-193-25/+21
|
* mesa: 80-column wrappingBrian Paul2011-03-191-2/+2
|
* mesa: replace macro with functionBrian Paul2011-03-191-8/+13
|
* mesa: 80-column wrappingBrian Paul2011-03-191-1/+2
|
* mesa: rename functions to follow Mesa conventionsBrian Paul2011-03-191-35/+29
|
* mesa: 80-column wrappingBrian Paul2011-03-191-2/+4
|
* mesa: minor improvements in glTexEnvfv()Brian Paul2011-03-171-16/+17
|
* mesa: only report up to 50 _mesa_problem() callsBrian Paul2011-03-171-5/+11
| | | | | | http://bugs.freedesktop.org/show_bug.cgi?id=35200 reports a disk partition getting filled because of warning messages. Stop emitting after 50.
* mesa: Remove the CompileShader driver hook; it's just a no-op.Kenneth Graunke2011-03-172-10/+0
|
* mesa: use _mesa_get_current_tex_unit() helper in BindTexture()Brian Paul2011-03-161-2/+2
|
* mesa: remove unneeded local var in BindTexture()Brian Paul2011-03-161-3/+3
|
* mesa: clean up the glBindTexture early out code a bitBrian Paul2011-03-161-10/+12
|
* mesa: Sort extensions in extension string by year.José Fonseca2011-03-161-216/+278
| | | | | The years were obtained automatically by scraping the first year from the spec text file. They are approximate.
* mesa: Use typecast in BITFIELD64_BIT macro.José Fonseca2011-03-161-5/+1
| | | | | | | | | Unsigned long is 32bit on several platforms (e.g., Windows), yielding 1UL << 32 to be zero. Note that BITFIELD64_BIT result is often assigned to variables of type GLbitfield, instead of GLbitfield64. That's probably wrong and should be addressed in a later change.
* mesa: use 1UL for 64-bit unsigned constant for C++Brian Paul2011-03-151-0/+4
| | | | This fixes C++ warnings where BITFIELD64_BIT() is used.
* mesa: add display list support for NV_texture_barrierMarek Olšák2011-03-151-0/+22
|
* mesa: regenerate glapi filesMarek Olšák2011-03-153-1995/+2013
| | | | | Be sure to type "make clean" after this commit, otherwise your binaries will segfault.
* mesa: add NV_texture_barrierMarek Olšák2011-03-156-0/+109
|
* mesa: rename _mesa_texstore_a8 -> _mesa_texstore_unorm8Marek Olšák2011-03-141-6/+6
| | | | It's a generic function capable of storing A8, L8, I8, R8.
* mesa: fix up assertion in _mesa_source_buffer_existsMarek Olšák2011-03-141-0/+2
| | | | | | | | | | This was probably missed when implementing luminance and luminance alpha render targets. _mesa_get_format_bits checks for both GL_*_BITS and GL_TEXTURE_*_SIZE. This fixes: main/framebuffer.c:892: _mesa_source_buffer_exists: Assertion `....' failed.
* Revert "mesa: Convert fixed function fragment program generator to GLSL IR."Eric Anholt2011-03-123-667/+782
| | | | | This reverts commit 7cb87dffce2c7a37f960f3a865cf92fd193dd8c5. There were regressions (Bug #35244) and more review has been requested.
* Revert "mesa: Track a computed _CurrentFragmentProgram for current ↵Eric Anholt2011-03-122-10/+4
| | | | | | gl_shader_program" This reverts commit b4452c3baad6e0379eeb7f22f2e51d13999e1323.
* mesa: Track a computed _CurrentFragmentProgram for current gl_shader_programEric Anholt2011-03-112-4/+10
| | | | | | | This is like how we track FragmentProgram._Current for the computed ARB fragment program for fixed function texenv, but this gives direct access to the gl_shader_program for drivers to codegen from, skipping ARB_fp.
* mesa: Convert fixed function fragment program generator to GLSL IR.Eric Anholt2011-03-113-782/+667
| | | | | | | | This is a step towards providing a direct route for drivers accepting GLSL IR for codegen. Perhaps more importantly, it runs the fixed function fragment program through the GLSL IR optimization. Having seen how easy it is to make ugly fixed function texenv code that can do unnecessary work, this may improve real applicatinos.
* mesa: Add gl_MESAFogParamsOptimized for our special pre-computed fog params.Eric Anholt2011-03-111-0/+5
| | | | | | | It would be nice if we handled optimized uniform math like this in some generic way, since people often end up doing uniform expressions in shaders, but for now keep this hard-coded like it was in the texenvprogram code.
* mesa: Add a builtin uniform for the ATI_envmap_bumpmap rotation matrix.Eric Anholt2011-03-111-0/+11
| | | | | | | For fixed function fragment processing in GLSL IR, we want to be able to reference this state value. gl_* not explicitly permitted is reserved, so using this variable name internally shouldn't be any issue.
* mesa: Move texenvprogram.c to ff_fragment_shader.cpp.Eric Anholt2011-03-111-4/+9
| | | | | This file is about to change to generating a shader program instead of a fragment program.
* mesa: Don't try to remove an internal shader_program from the hash.Eric Anholt2011-03-111-2/+4
| | | | It fails on assertions if the key isn't actually present.
* mesa: move location of some geometry program limitsBrian Paul2011-03-114-25/+28
| | | | | | | The gl_program_constants struct is for limits that are applicable to any/all shader stages. Move the geometry shader-only fields into the gl_constants struct. Remove redundant MaxGeometryUniformComponents field too.
* mesa: replace NEED_SECONDARY_COLOR(), RGBA_LOGICOP_ENABLED() with inlinesBrian Paul2011-03-113-27/+42
| | | | and rename them.
* mesa: call FLUSH_VERTICES() before deleting shaders, buffers, query objectsBrian Paul2011-03-113-0/+5
| | | | | | | | 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: add ATI_texture_compression_3dcMarek Olšák2011-03-087-0/+30
| | | | | | | LUMINANCE_ALPHA_LATC2 = LUMINANCE_ALPHA_3DC, so this is easy. Note that there is no specification for 3DC, just a few white papers from ATI.
* mesa: add EXT_texture_compression_latcMarek Olšák2011-03-0813-7/+234
| | | | | | | | | | | | | | | | | The encoding/decoding algorithms are shared with RGTC. Thanks to some magic with the base format, the RGTC texstore functions work for LATC too. swrast passes the related piglit tests besides two things: - The alpha channel is wrong (it's always 1), however the incorrect alpha channel makes some other tests fail too, so I guess it's unrelated to LATC. - Signed LATC fetches aren't correct yet (signed values are clamped to [0,1]), however RGTC has the same problem. Further testing (with other of my patches) shows that hardware drivers and softpipe work. BTW, ETQW uses this extension.
* mesa: return after invalidating renderbufferMarek Olšák2011-03-071-0/+1
|
* mesa: invalidate framebuffer if internal format of renderbuffer is changedMarek Olšák2011-03-072-6/+31
| | | | RenderTexture doesn't have to be called in invalidate_rb, I guess.
* mesa: initialize DummyBufferObject's mutexBrian Paul2011-03-071-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: remove stray _mesa_finish() call in _mesa_CopyPixels()Brian Paul2011-03-071-2/+0
| | | | Leftover debug code from 6364d75008b4fa580c1cb47c59ba1cf3e0caa6cd.
* mesa: added gl_program_constants::MaxAddressOffsetBrian Paul2011-03-022-0/+2
| | | | See https://bugs.freedesktop.org/show_bug.cgi?id=29418
* Revert "mesa: reduce calls to _mesa_test_framebuffer_completeness()"Brian Paul2011-03-021-1/+1
| | | | | | | This reverts commit 1f9a0a4e6e5566c36c781add5f1e62af3efdfb58. This caused trouble with Lightsmark w/ i965 driver and fbo/fbo-blit-d24s8 (see bug 34894). It's probably something simple but no time to debug now.
* rgtc: remove GL types from this file.Dave Airlie2011-03-021-10/+10
| | | | | | I'd like to share this file with gallium u_format stuff. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: move the texel fetch into common unsigned/signed code.Dave Airlie2011-03-022-65/+41
| | | | | | This function can be done in the include file also. Signed-off-by: Dave Airlie <[email protected]>