summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* mesa: update new state for RasterPos like other operations.Xiang, Haihao2008-11-111-3/+3
| | | | This fixes a lighting issue when drawing a bitmap.
* mesa: new _mesa_is_pow_two() functionBrian2008-11-105-23/+33
|
* mesa: fix some misc breakage caused by editing auto-generated files rather ↵Brian Paul2008-11-101-4/+8
| | | | | | | | than the python generators Specifically: #include "glapitable.h" in src/mesa/main/glapi/dispatch.h Call _mesa_bsearch() in src/mesa/main/enums.c.
* GLX: fix out-of-bounds memory issue in indirect glAreTexturesResident()Brian Paul2008-11-101-4/+4
| | | | | | | | | | | | | | | | See bug 18445. When getting array results, __glXReadReply() always reads a multiple of four bytes. This can cause writing to invalid memory when 'n' is not a multiple of four. Special-case the glAreTexturesResident() functions now. To fix the bug, we use a temporary buffer that's a multiple of four bytes in length. NOTE: this commit also reverts part of commit 919ec22ecf72aa163e1b97d8c7381002131ed32c (glx/x11: Added some #ifdef GLX_DIRECT_RENDERING protection) which directly edited the indirect.c file rather than the python generator! I'm not repairing that issue at this time.
* mesa: use NRM3 in emit_normalize_vec3() when drivers are readyBrian2008-11-081-0/+5
|
* mesa: use _bfc0 instead of _col0 when building back face lighting.Xiang, Haihao2008-11-071-3/+2
|
* mesa: additional debug flags for glsl debug/disassemblyBrian Paul2008-11-012-30/+28
|
* mesa: fix a typo in the previous commitXiang, Haihao2008-10-311-1/+1
|
* mesa: fix an issue in _mesa_PointParameterfv().Xiang, Haihao2008-10-301-1/+1
|
* mesa: remove calls to _mesa_adjust_image_for_convolution(), use texImage fieldsBrian Paul2008-10-231-14/+6
| | | | The texImage->Width/Height fields will have the post-convolution width/height.
* mesa: move convolution image adjustment code for glCopyTexSubImage1/2/3D()Brian Paul2008-10-221-15/+21
| | | | Do it after initial error checking, after we know the texture's internal format.
* mesa: some re-org of glCopyTexSubImage1/2/3D() error checkingBrian Paul2008-10-221-33/+32
|
* mesa: in textore.c, only adjust image for convolution if image is a color formatBrian Paul2008-10-223-14/+20
| | | | | Makes things consistant with the code in teximage.c. We only want to apply convolution to color formats (not depth/index formats)
* mesa: fix error codes in _mesa_GetObjectParameterivARB(), bug 17861Brian Paul2008-10-161-15/+6
|
* mesa: fix asst. issues in _mesa_texstore_argb8888()Brian Paul2008-10-101-40/+10
| | | | | | | | If we shift bytes into the texel word (or use the PACK_COLOR_8888 macro), we don't have to worry about big vs. little endian. See comments about texel formats in texformat.h. Remove an unneeded/incorrect else-if clause that produced wrong results on big-endian systems.
* mesa: remove unneeded includesBrian Paul2008-10-102-2/+0
|
* mesa: fix error codes in _mesa_GetObjectParameterivARB(), bug 17861Brian Paul2008-10-101-1/+12
|
* mesa: rename macro params to emphasize that there's no particular color orderingBrian Paul2008-10-101-12/+12
|
* mesa: remove unneeded includesBrian Paul2008-10-102-2/+0
|
* mesa: Pass the context to query object delete cb to avoid null dereference.Eric Anholt2008-10-071-1/+1
|
* mesa: fix convolve/convolution mix-upsBrian2008-10-062-3/+3
|
* mesa: updated _mesa_delete_query() commentsBrian Paul2008-10-061-2/+1
|
* mesa: add missing GLcontext param to _mesa_delete_query().Brian Paul2008-10-062-2/+2
| | | | Fixes vtk crash and others.
* Unify ARB_depth_texture and SGIX_depth_textureIan Romanick2008-10-016-22/+16
| | | | | | | The ARB extension is a superset of the older SGIX extension. Any hardware that can support the SGIX version can also support the ARB version. In Mesa, any driver that supports one also supports the other. This unification just simplifies some bits of code.
* GLSL: Implement GL_OBJECT_TYPE_ARB queryIan Romanick2008-09-291-2/+10
| | | | | | | The GL_OBJECT_TYPE_ARB query is handled directly in _mesa_GetObjectParamterivARB because it is only supported in the extension version of the shanding language API. glGetProgramiv and glGetShaderiv should not accept this enum.
* mesa: asst updates for VMSJouk Jansen2008-09-291-1/+31
|
* mesa: drop calloc from _mesa_get_fixed_func_vertex_programShunichi Fuji2008-09-291-11/+7
| | | | Signed-off-by: Shunichi Fuji <[email protected]>
* mesa: remove invalid assertions that programs have parametersBrian Paul2008-09-261-6/+0
| | | | Fixes failure with demos/fplight.c
* mesa: fix param indexingBrad King2008-09-261-6/+6
|
* mesa: fix cast/conversion for optional codeBrian2008-09-252-5/+7
|
* mesa: fix typo (s/feadback/feedback/). Fixes broken selection/feedback.Brian Paul2008-09-251-2/+2
|
* mesa: fix float->int mapping for glGetIntegerv(GL_DEPTH_CLEAR_VALUE)Brian Paul2008-09-252-3/+3
|
* set SamplerUnit[] entry in load_texture() just to be safeBrian2008-09-241-0/+4
| | | | (cherry picked from commit fce4612f8a29ee1798c9326a431a139d856c7a04)
* use PROGRAM_CONSTANT instead of PROGRAM_STATE_VAR when generating ↵Brian2008-09-241-1/+1
| | | | | | immediates/literals (cherry picked from commit fdc8636bdc65deb0d95a62a51c8d9bca05bc6bb8)
* set program->SamplersUsed bit when using a texture instructionBrian2008-09-241-1/+4
|
* Remove ctx field from texenvprog_cacheBrian2008-09-241-4/+4
|
* include programopt.hBrian2008-09-241-0/+1
| | | | (cherry picked from commit 83fad68ec1989c719646a76f4cc5e0b3d23537ed)
* Disable vertex shader fog, compute fog in fragment shader.Brian2008-09-241-5/+11
|
* temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabledBrian2008-09-241-0/+1
| | | | (cherry picked from commit 63be96bdc7e9f388a5c49295bd7e150462fd003a)
* mesa: Apply MSVC portability fixes from Alan Hourihane.José Fonseca2008-09-2311-59/+17
|
* mesa: new gl_fragment_program fields indicating use of fog, front-facing, ↵Brian Paul2008-09-231-1/+4
| | | | | | point coord (cherry picked from commit d7a7b0a10dd355fbeb7a404091a42d4ab558c820)
* Added new _mesa_clip_copytexsubimage() function to do avoid clipping down in ↵Brian2008-09-233-7/+60
| | | | | | | the drivers. This should probably be pulled into main-line Mesa... (cherry picked from commit 324ecadbfdf9b944e059832f146451e4151dcb21)
* Remove incorrect test from mmAllocMem.Michel Dänzer2008-09-221-1/+1
| | | | | 0 is a perfectly valid alignment shift, see e.g. driTexturesGone() which was broken by this.
* mesa: allow for extra per-context initBrian Paul2008-09-213-4/+7
| | | | (cherry picked from commit 815cdcfbc0740c66b901361620c88d99541bdad2)
* mesa: texture crop rect stateBrian Paul2008-09-213-1/+35
| | | | (cherry picked from commit c01fbc7866d7cd5cf4263dffec6d9591470b4c23)
* mesa: set point stateBrian Paul2008-09-211-0/+4
| | | | (cherry picked from commit af3d9dba562813ffed71691bffd7faf6665c4487)
* mesa: fix some feature testsBrian Paul2008-09-212-6/+2
| | | | (cherry picked from commit 74b14fe6ddbece8bc662aac4d3b2b18d8d853486)
* mesa: fix some pixel transfer state tests for depth formatsBrian Paul2008-09-211-5/+9
| | | | (cherry picked from commit 966e199e409a1b52eef88e48997442250997f45e)
* mesa: Silence compiler warnings on Windows.Michal Krol2008-09-213-7/+7
|
* mesa: comments about vectors vs componentsBrian Paul2008-09-212-3/+3
|