summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* 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]>
* rgtc: fix issues with compressor and signed types.Dave Airlie2011-03-022-10/+23
| | | | | | | | | | With signed types we weren't hitting this test however the comment stating this doesn't happen often doesn't apply when using signed types since an all 0 block is quite common which isn't abs min or max. this fixes the limits correctly again also. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: don't try to access off the end of the block.Dave Airlie2011-03-021-2/+2
| | | | | | | | if the values are all in the last dword, the high bits can be 0, This fixes a valgrind warning I saw when playing with mipmaps. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: move to using ubyte for fetch instead of chan + fix limitDave Airlie2011-03-021-13/+13
| | | | | | My previous fix to the byte max was incorrect. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: fix fetch function limits for signed typesDave Airlie2011-03-021-2/+2
|
* rgtc: fixup mipmap generationDave Airlie2011-03-021-2/+7
| | | | this allows swrast to pass mipmap generation for these formats.
* swrast/rgtc: fix rendering issues introduced when fix constantsDave Airlie2011-03-021-1/+1
| | | | The max value was wrong and this showed up in the piglit tests.
* rgtc: shared the compressor code between signed/unsignedDave Airlie2011-03-012-696/+403
| | | | | | | | No idea why I didn't do it like this the first time, but share the code like other portions of mesa do using _tmp.h suffix and some #defines for the types. Signed-off-by: Dave Airlie <[email protected]>
* mesa: move PBO-related functions into a new fileBrian Paul2011-02-2813-390/+472
|
* mesa: always generate error in glColorTableParameter[fi]v()Brian Paul2011-02-281-23/+6
| | | | These were only used by GL_SGI_texture_color_table, which is gone now.
* mesa: remove GL_SGI_texture_color_table supportBrian Paul2011-02-288-149/+1
| | | | | | It was only implemented in the swrast driver and probably not used by any applications. A modern app would use a dependent/chained texture lookup in the fragment shader.
* mesa: consolidate framebuffer target lookup codeBrian Paul2011-02-281-89/+33
|
* mesa: remove some old do-nothing codeBrian Paul2011-02-281-3/+0
|
* mesa: reduce calls to _mesa_test_framebuffer_completeness()Brian Paul2011-02-281-1/+1
| | | | | when updating/validating framebuffer state. The _Status field is set to zero when we need to recompute _Status. Otherwise, it's up to date.
* mesa: reduce calls to _mesa_test_framebuffer_completeness()Brian Paul2011-02-281-2/+6
| | | | | | when doing glCopyTex[Sub]Image() and checking the source buffer's completeness. We only need to determine FBO completeness when the status is indeterminate.
* mesa: s/mesaFormat/attFormat/Brian Paul2011-02-281-4/+4
|