Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Better caching for texenv programs. | Keith Whitwell | 2006-05-22 | 1 | -0/+2 |
| | | | | Initialize some values correctly. | ||||
* | use _mesa_compressed_texture_size() for GL_TEXTURE_COMPRESSED_IMAGE_SIZE query | Brian Paul | 2006-05-09 | 1 | -4/+12 |
| | |||||
* | Replace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]Units | Brian Paul | 2006-04-14 | 1 | -29/+114 |
| | | | | | | in various places. Note that ctx->Texture.CurrentUnit needs to be tested against Coord/Image limits when referenced, not just in glActiveTexture(). | ||||
* | Clean up the recent code related to texture_override(). Pass params in a | Brian Paul | 2006-03-24 | 1 | -45/+56 |
| | | | | | | | more logical order. Remove a mess of stray ^M chars. Fix a bug when checking if the texture object's format is GL_COLOR_INDEX or GL_DEPTH_COMPONENT. This fixes a segfault when GL_TEXTURE_BASE_LEVEL!=0. | ||||
* | GLSL fixes: | Michal Krol | 2006-03-21 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | - generate error on NULL pointers in glShaderSourceARB; - reinstall program object, if current, in glLinkProgramARB; - vertex and fragment shaders are optional in program object; - floor asm was wrongly computed for x86 back-end; - allow for (void) idiom in function prototypes; - all fixed-state uniforms are updated; - local variable initializers are working; - implement texture* and shadow* functions for vertex processor; - generate error if too many arguments in general constructor; - trim unused data in general constructor; - struct r-value field select was badly relocated; Changes: - add derived state gl_fog_attrib::_Scale; - add derived state gl_light::_CosCutoffNeg; | ||||
* | More GLSL code: | Michal Krol | 2006-03-14 | 1 | -63/+44 |
| | | | | | - add texture sampling support; - fix assembly codegen bugs; | ||||
* | Fix _mesa_copy_texture_state() so that we copy texture object bindings, | Brian Paul | 2006-02-24 | 1 | -12/+41 |
| | | | | | not the actual contents of texture objects. This makes glXCopyContext() work properly. | ||||
* | Enable texcoords when program object in use. | Michal Krol | 2006-02-15 | 1 | -2/+5 |
| | |||||
* | fix test for valid texunit in _mesa_ClientActiveTextureARB | Roland Scheidegger | 2006-02-01 | 1 | -1/+1 |
| | |||||
* | Removed the GL_SGIX/SGIS_pixel_texture extensions. Same thing can be | Brian Paul | 2005-12-14 | 1 | -132/+0 |
| | | | | done with fragment programs nowadays. | ||||
* | Move stuff common to vertex/fragment_program into the base class, including: | Brian Paul | 2005-11-12 | 1 | -1/+1 |
| | | | | | | Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program(). | ||||
* | Make _mesa_is_proxy_texture() non-static and use in a few more places. | Brian Paul | 2005-11-11 | 1 | -61/+24 |
| | | | | | Use COPY_4FV() where possible. Added some comments, clean-ups. | ||||
* | remove unneeded #includes | Brian Paul | 2005-11-05 | 1 | -3/+0 |
| | |||||
* | In gl_texture_image replace IntFormat with InternalFormat and Format with | Brian Paul | 2005-10-05 | 1 | -11/+12 |
| | | | | _BaseFormat to be consistant with gl_renderbuffer. | ||||
* | check for GL_DEPTH_STENCIL_EXT | Brian Paul | 2005-10-01 | 1 | -1/+2 |
| | |||||
* | Initial work for GL_EXT_packed_depth_stencil extension. | Brian Paul | 2005-09-28 | 1 | -0/+10 |
| | | | | glReadPixels done, glDrawPixels mostly done. | ||||
* | s/GL_DEPTH_BITS/GL_TEXTURE_DEPTH_SIZE_ARB/ in _mesa_GetTexLevelParameteriv() | Brian Paul | 2005-09-21 | 1 | -1/+1 |
| | |||||
* | Replace GLuint with GLbitfield where appropriate. Also replace GLuint | Brian Paul | 2005-09-15 | 1 | -5/+5 |
| | | | | with GLboolean in a few places. | ||||
* | check for either GL_ARB_depth_texture or GL_SGIX_depth_texture in a few places | Brian Paul | 2005-09-08 | 1 | -5/+3 |
| | |||||
* | In _mesa_TexEnvfv, do not accept values for GL_OPERAND2_ALPHA and ↵ | Roland Scheidegger | 2005-08-15 | 1 | -4/+24 |
| | | | | GL_OPERAND2_RGB which are only valid with ARB_texture_env_combine but not with EXT_texture_env_combine, when only EXT_texture_env_combine is supported. | ||||
* | Cache texenv programs to avoid repeated compilation (Ben Skeggs) | Keith Whitwell | 2005-07-11 | 1 | -0/+3 |
| | |||||
* | Add a set of predicate functions for testing matrices instead of directly | Brian Paul | 2005-06-30 | 1 | -5/+5 |
| | | | | | | testing the flags field. Move definition of all the MAT_FLAGs into the m_matrix.c file since they're now private. | ||||
* | clamp anisotropy against max value | Brian Paul | 2005-02-08 | 1 | -3/+5 |
| | |||||
* | fix tex env mode GL_BLEND for GL_INTENSITY texture formats | Roland Scheidegger | 2004-06-17 | 1 | -0/+2 |
| | |||||
* | fix some minor glitches in glGetTexParameter code | Brian Paul | 2004-06-11 | 1 | -7/+7 |
| | |||||
* | Don't call calculate_derived_texenv() from in _mesa_TexEnv(). | Brian Paul | 2004-05-10 | 1 | -32/+18 |
| | | | | Minor code rearranging. | ||||
* | Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragment | Brian Paul | 2004-04-23 | 1 | -2/+2 |
| | | | | | | | program is enabled AND the currently bound program is valid. Check _Enable instead of Enable to prevent things from blowing up when someone calls glEnable(GL_VERTEX_PROGRAM_ARB) without actually defining a program. | ||||
* | New glTexImage code. | Brian Paul | 2004-04-22 | 1 | -1/+65 |
| | | | | | | | | The gl_texture_format struct now has a StoreTexImageFunc that's called by glTex[Sub]Image[123]D to convert the user's texture data into the specific texture format layout. Now it's much easier to add new texture formats (like the 16/32-bit floating point formats). The texutil.[ch] and texutil_tmp.h files are obsolete. | ||||
* | fix minor glitch with GL_DEPTH_COMPONENT textures | Brian Paul | 2004-04-10 | 1 | -1/+4 |
| | |||||
* | paltex demo from recent texcombine changes. Minor clean-ups | Brian Paul | 2004-02-28 | 1 | -26/+24 |
| | |||||
* | Refactor "class" texture environments to be implemented in terms of | Ian Romanick | 2004-02-06 | 1 | -96/+291 |
| | | | | ARB_texture_env_combine state. | ||||
* | Don't set extra bits in FLUSH_VERTICES, fix several state bugs. | Keith Whitwell | 2004-01-23 | 1 | -1/+5 |
| | |||||
* | s/texUnit->Enabled/enableBits/ (Karl Rasche) | Brian Paul | 2003-11-30 | 1 | -5/+5 |
| | |||||
* | Added GLAPIENTRY decorations for all first level OpenGL API function entry | Kendall Bennett | 2003-10-21 | 1 | -32/+32 |
| | | | | | points so that the calling conventions will work correctly with the assembler stubs with the Open Watcom compiler. | ||||
* | Allow glTexImage1/2/3D to specify width/height/depth = 0. | Brian Paul | 2003-09-12 | 1 | -2/+2 |
| | | | | | This allows texture state to be resettable to default state. Not allowed according to the spec, but allowed by all other OpenGL libs. | ||||
* | Added support for EXT_texture_mirror_clamp and the single wrap mode | Ian Romanick | 2003-09-02 | 1 | -51/+33 |
| | | | | | that it addes to ATI_texture_mirror_once. This includes updating the texwrap test to exercise the new mode. | ||||
* | Move clamping of texture LOD bias to texture application time. | Brian Paul | 2003-08-28 | 1 | -5/+5 |
| | |||||
* | Added OpenGL 1.4's per-texture LOD bias. | Brian Paul | 2003-08-28 | 1 | -0/+20 |
| | |||||
* | Trivial changes to add support for GL_ARB_point_sprite, which is a | Ian Romanick | 2003-08-23 | 1 | -6/+9 |
| | | | | subset of GL_NV_point_sprite (which was already supported). | ||||
* | Restore more code lost during last big merge. | Brian Paul | 2003-07-22 | 1 | -2/+2 |
| | | | | Rename colortable-related functions. | ||||
* | Fix up some loose ends from the last big check-in. | Brian Paul | 2003-07-18 | 1 | -1/+1 |
| | |||||
* | Merge Jose's documentation and core Mesa changes from embedded branch | Keith Whitwell | 2003-07-17 | 1 | -2/+348 |
| | |||||
* | minor fixes in _mesa_TexGen[id]v() to silence valgrind | Brian Paul | 2003-07-07 | 1 | -6/+16 |
| | |||||
* | fix int/float conversion for GL_TEXTURE_PRIORITY in gl[Get]TexParameteri[v] | Brian Paul | 2003-07-03 | 1 | -3/+9 |
| | |||||
* | improve some error messages | Brian Paul | 2003-04-01 | 1 | -6/+6 |
| | |||||
* | better error messages (Leif Delgass) | Brian Paul | 2003-03-03 | 1 | -5/+7 |
| | |||||
* | test if active texture is really changed in _mesa_ActiveTexture() | Brian Paul | 2003-02-23 | 1 | -2/+5 |
| | |||||
* | added missing break (Leif Delgass) | Brian Paul | 2003-01-21 | 1 | -2/+3 |
| | |||||
* | GL_ATI_texture_env_combine3 extension | Brian Paul | 2003-01-21 | 1 | -115/+141 |
| | |||||
* | update CurrentStack in glActiveTexture if needed (bug 669080) | Brian Paul | 2003-01-16 | 1 | -1/+7 |
| |