Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mesa: move call to update_texture_compare_function() | Brian Paul | 2009-03-02 | 1 | -3/+1 |
| | | | | Another conditional can be avoided. | ||||
* | mesa: fix texture enable regression | Brian Paul | 2009-03-02 | 1 | -2/+3 |
| | | | | | | | Need to clear the _ReallyEnabled field before possibly continuing the loop. Also, set _Current pointer to NULL if the unit is no longer enabled. Fixes piglit lodbias regression | ||||
* | mesa: use _mesa_reference_texobj() when setting texUnit->Current pointer | Brian Paul | 2009-03-02 | 1 | -2/+1 |
| | | | | Fixes piglit copytexsubimage regression. | ||||
* | mesa: fixed computation of _EnabledCoordUnits | Brian Paul | 2009-03-02 | 1 | -8/+18 |
| | | | | | This field should not include vertex textures. It indicates the coord inputs for fragment / fixed-function processing. | ||||
* | mesa: move texture_override() code into calling loop | Brian Paul | 2009-03-02 | 1 | -30/+19 |
| | | | | We can avoid a few iterations this way. | ||||
* | mesa: move update_texture_compare_function() call out of loop | Brian Paul | 2009-03-02 | 1 | -1/+3 |
| | |||||
* | mesa: move _GenFlags = 0x0 to texgen loop | Brian Paul | 2009-02-28 | 1 | -1/+2 |
| | |||||
* | mesa: move a bunch of compiler-related stuff into new compiler.h header | Brian Paul | 2009-02-22 | 1 | -0/+1 |
| | | | | This trims down and cleans up imports.h and glheader.h quite a bit. | ||||
* | mesa: assorted clean-ups, var renaming, etc. | Brian Paul | 2009-02-22 | 1 | -59/+59 |
| | |||||
* | mesa: simplify texture combine state copying in _mesa_copy_texture_state() | Brian Paul | 2009-02-22 | 1 | -8/+1 |
| | | | | Just copy the whole struct. | ||||
* | mesa: remove redundant assertions (same asserts in context.c) | Brian Paul | 2009-02-22 | 1 | -3/+0 |
| | |||||
* | mesa: use enums for TEXTURE_x_INDEX values | Brian Paul | 2009-02-21 | 1 | -17/+3 |
| | | | | | Plus, put them in the order of highest to lowest priority to simplify the texture_override() loop. | ||||
* | mesa: use an array for current texture objects | Brian Paul | 2009-02-21 | 1 | -66/+37 |
| | | | | Use loops to consolidate lots of texture object code. | ||||
* | mesa: use an array for default texture objects | Brian Paul | 2009-02-21 | 1 | -15/+23 |
| | | | | | Replace Default1D/2D/3D/Cube/etc with DefaultTex[TEXTURE_x_INDEX]. The same should be done with the Current1D/2D/3D/etc pointers... | ||||
* | mesa: re-org texgen state | Brian Paul | 2009-02-21 | 1 | -39/+26 |
| | | | | New gl_texgen struct allows quite a bit of code reduction. | ||||
* | mesa: don't include m_xform.h where not needed | Brian Paul | 2009-02-12 | 1 | -1/+0 |
| | |||||
* | mesa: code refactoring: move texcombine code into update_tex_combine() | Brian Paul | 2009-02-07 | 1 | -75/+92 |
| | |||||
* | mesa: minor clean-ups, remove unneeded conditional | Brian Paul | 2009-02-07 | 1 | -5/+5 |
| | |||||
* | mesa: fix logic error in computing enableBits in update_texture_state() | Brian Paul | 2009-02-07 | 1 | -10/+12 |
| | | | | | | | If we had a vertex shader but no fragment shader (i.e. fixed function) we didn't get the right enabled texture targets. Fixes blank/white texture problem. | ||||
* | mesa: remove GL_SGIX_shadow, GL_SGIX_shadow_ambient and GL_SGIX_depth_texture | Brian Paul | 2009-01-28 | 1 | -10/+0 |
| | | | | Everyone should be using the newer/better ARB versions of these extensions. | ||||
* | mesa: update state setup/validation for GL_NV_texture_env_combine4 | Brian Paul | 2009-01-23 | 1 | -7/+18 |
| | |||||
* | mesa: add some debug assertions to detect null current texture object pointers | Brian Paul | 2009-01-21 | 1 | -0/+8 |
| | | | | See bug #17895. These assertions could be removed when this is resolved. | ||||
* | mesa: increase max texture image units and GLSL samplers to 16 | Brian Paul | 2008-12-31 | 1 | -6/+5 |
| | | | | | | | | | | | | | | | | The max texture coord units is still 8. All the fixed-function paths are still limited to 8 too. But GLSL shaders can use more samplers now. Note that some texcoord-related data structures are declared to be 16 elements in size rather than 8. This just simplifies the code in a few places; the extra elements aren't accessible to the user. These changes haven't been extensively tested yet, but sanity checking has been done. It should be possible to increase the max image units/samplers to 32 without doing anything special. Beyond that we'll need longer bitfields in a few places. | ||||
* | mesa: refactor: move various ENUM_TO_x macros into macros.h | Brian Paul | 2008-09-21 | 1 | -3/+0 |
| | |||||
* | mesa: refactor: move glTexParameter-related functions into new texparam.c file | Brian Paul | 2008-09-21 | 1 | -1000/+0 |
| | |||||
* | mesa: refactor: move glTexEnv-related functions into new texenv.c file | Brian Paul | 2008-09-21 | 1 | -823/+0 |
| | | | | (cherry picked from commit 7ecac78ab53016ae3db3dd601b187cb050037463) | ||||
* | mesa: refactor: move glTexGen-related functions into new texgen.c file | Brian Paul | 2008-09-21 | 1 | -568/+0 |
| | | | | (cherry picked from commit 27049189d6221fefe43eb55846efaa51742dcdf4) | ||||
* | mesa: refactor: move #define FEATURE flags into new mfeatures.h file | Keith Whitwell | 2008-09-21 | 1 | -3/+11 |
| | | | | | | | | | | | | | Also, check the FEATURE flags in many places. (cherry picked from commit 40d1a40f294f1ed2dacfad6f5498322fc08cc2d1) Conflicts: src/mesa/main/config.h src/mesa/main/context.c src/mesa/main/texobj.c src/mesa/main/texstate.c src/mesa/main/texstore.c | ||||
* | mesa: move fixed function vertex program builder from tnl to core mesa | Keith Whitwell | 2008-09-21 | 1 | -3/+0 |
| | | | | | | Also unify caching of fragment and vertex programs in shader/prog_cache.c` Brought across from gallium-0.2 | ||||
* | Flush vertices when updating texObj->GenerateMipmap state. | Eric Anholt | 2008-08-21 | 1 | -0/+1 |
| | | | | Caught by texturing/gen-teximage test in piglit. | ||||
* | Enable TexGen based on InputsRead when a fragment program is active | Nicolai Haehnle | 2008-07-04 | 1 | -10/+18 |
| | | | | | | | The old behaviour depended on which texture images the fragment program reads from, which seems to contradict the shader specifications. Note: Piglit's general/texgen test checks for this problem. | ||||
* | Add support for GL_REPLACE_EXT texture env mode. | Brian Paul | 2008-04-30 | 1 | -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. | ||||
* | For _mesa_share_state(), update the context's references to the new share ↵ | Brian | 2007-08-23 | 1 | -0/+24 |
| | | | | group's objects (Shane Blackett) | ||||
* | Replace Proxy1D/2D/etc with ProxyTex[] indexed by TEXTURE_x_INDEX. | Brian | 2007-08-16 | 1 | -54/+27 |
| | | | | Simplification in colortab.c too. | ||||
* | Bring over the texobj refcounting changes from mesa_7_0_branch | Brian | 2007-08-16 | 1 | -17/+29 |
| | |||||
* | Implement mutex/locking around texture object reference counting. | Brian | 2007-08-13 | 1 | -57/+32 |
| | | | | | | Use new _mesa_reference_texobj() function for referencing/unreferencing textures. Add new assertions/tests to try to detect invalid usage of deleted textures. | ||||
* | Rework _mesa_update_texture_compare_function() to only be called during | Brian | 2007-06-11 | 1 | -40/+42 |
| | | | | | | | state validation/update. Note that we're still temporarily skipping the test for an active fragment program. Need to fix shadow2D() ... | ||||
* | rename/clean-up _mesa_validate_texture_wrap_mode | Brian | 2007-06-11 | 1 | -12/+15 |
| | |||||
* | fix typo, added comment | Brian | 2007-06-11 | 1 | -2/+5 |
| | |||||
* | Replace texobj->Complete with texobj->_Complete since it's a derived field. | Brian | 2007-06-11 | 1 | -3/+3 |
| | |||||
* | Add support for GL_ARB_fragment_program_shadow. | Ian Romanick | 2007-06-07 | 1 | -0/+2 |
| | |||||
* | Fix ARB_fp spec conformance bug WRT shadow sampling. | Ian Romanick | 2007-06-07 | 1 | -0/+35 |
| | | | | | The ARB_fp (and other assembly-level fragment program specs) say that the depth comparison function is always GL_NONE in fragment program mode. | ||||
* | Initial implementation of MESA_texture_array | Ian Romanick | 2007-05-16 | 1 | -0/+46 |
| | | | | | Shadow sampling from texture arrays is still not implemented. Everything else should be there, though. | ||||
* | Refactor queries of GL_(SOURCE|OPERAND)[012]_(ALPHA|RGB). | Ian Romanick | 2007-05-10 | 1 | -136/+16 |
| | | | | | | | | | Most switch-statements that have cases for these enums already use code like: const GLuint idx = pname - GL_SOURCE0_RGB; ... texUnit->Combine.SourceRGB[idx] ... This patch just brings the remaining bits up to speed. | ||||
* | Enable texture sampling for vertex programs/shaders. | Brian | 2007-04-17 | 1 | -7/+18 |
| | | | | | | | This is a bit of a hack for now because the tnl module is using the swrast module to fetch texels. The texture fetch/filter code should probably be moved into the main/ module since it doesn't really depend upon other swrast code. | ||||
* | illegal to set GL_TEXTURE_MAX_LEVEL w/ GL_TEXTURE_RECTANGLE_ARB | Brian | 2007-04-14 | 1 | -4/+8 |
| | |||||
* | properly compute ctx->Texture._EnabledCoordUnits | Brian | 2007-03-13 | 1 | -12/+8 |
| | |||||
* | move TexturesUsed[] into gl_program since vertex programs/shaders can use ↵ | Brian | 2007-01-04 | 1 | -1/+1 |
| | | | | textures nowadays | ||||
* | simplify update_texture_state() a bit, compute _EnabledCoordUnits for shaders | Brian | 2007-01-04 | 1 | -16/+25 |
| | |||||
* | update_texture_state() updated for new shaders | Brian | 2007-01-04 | 1 | -29/+10 |
| |