summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* mesa: rename gl_sync_object::Status to StatusFlagBrian Paul2009-09-032-6/+6
| | | | | There's a symbol collision with X11/Xlib.h #define Status int in the Mesa xlib code. This seems the simpliest way to work around this.
* Don't dereference function pointers in calls.Ian Romanick2009-09-031-7/+7
| | | | | | I'm apparently alone in prefering this calling convention, so I'll be a team player. :p Based on review comments by Brian Paul and Eric Anholt.
* Whitespace and include file clean-up.Ian Romanick2009-09-031-14/+0
| | | | Based on review comments by Brian Paul.
* Use MIN2 instead of open-coded versionIan Romanick2009-09-031-1/+2
| | | | Based on review comments by Brian Paul.
* ARB sync: Fix delete behavior and context destruction behaviorIan Romanick2009-09-034-24/+103
| | | | | | | I believe this resolves the outstanding issues WRT sync object deletetion. I have also added a large comment at the top of syncobj.c describing the expected memory management behavior. I'm still a little uncertain about the locking on ctx->Shared.
* Add dummy list node type 'struct simple_node'Ian Romanick2009-09-031-0/+5
|
* ARB sync: Add support for GL_ARB_sync to swrastIan Romanick2009-09-0310-0/+530
| | | | | This isn't quite right yet. The delete behavior and the context clean-up needs some work.
* ARB sync: Regenerate files from previous commitIan Romanick2009-09-031-3093/+3137
|
* ARB sync: Add infrastructure for glGetInteger64vIan Romanick2009-09-036-1/+1862
|
* mesa: fix typos in separable filter functionsBrian Paul2009-09-031-4/+4
|
* mesa: compute tex env program key size based on nr_enabled_unitsBrian Paul2009-09-031-8/+18
| | | | | | | When no textures are enabled, the key size is 4 bytes. If unit[0] is enabled, the key size is 16 bytes. Inspired by a patch from Chris Wilson.
* mesa: use new combined PBO validate/map helpers in convolution/filter funcsBrian Paul2009-09-031-66/+23
|
* mesa: use new combined PBO validate/map helpersBrian Paul2009-09-034-126/+43
|
* mesa: combined PBO validate/map helpersBrian Paul2009-09-032-0/+98
|
* mesa: use new _mesa_map_pbo_source/dest() functions in more placesBrian Paul2009-09-035-354/+192
| | | | | This trims down the code a bit. The next step would be to combine the validate and map operations into one helper...
* mesa: consolidate PBO map/unmap helpersBrian Paul2009-09-032-85/+41
| | | | | | | Instead of _mesa_map_readpix_pbo() use _mesa_map_pbo_source(). Instead of _mesa_map_drawpix_pbo() and _mesa_map_bitmap_pbo() use _mesa_map_pbo_dest().
* mesa: change ctx->Driver.BufferData() to return GLboolean for success/failureBrian Paul2009-09-032-11/+21
| | | | | Return GL_FALSE if we failed to allocate the buffer. Then raise GL_OUT_OF_MEMORY in core Mesa.
* Revert "mesa: fix the non-GNU C bit-field case"Brian Paul2009-09-021-2/+2
| | | | | | This reverts commit 4b08e7498230eac30eea1721f33994b30999acd4. Don't know what I was thinking there.
* mesa: fix the non-GNU C bit-field caseBrian Paul2009-09-021-2/+2
|
* mesa: silence gcc bit-field warningGary Wong2009-09-021-2/+2
|
* mesa: replace 8 with NUM_UNITSBrian Paul2009-09-021-1/+4
|
* mesa: remove accidentally committed printfBrian Paul2009-09-021-1/+0
|
* mesa: added #ifdef __GNUC__ around GLubyte bitfield usageBrian Paul2009-09-021-0/+5
| | | | | | | | | It would be nice if there were a #pragma or something to disable the warnings: main/texenvprogram.c:87: warning: type of bit-field ‘Source’ is a GCC extension main/texenvprogram.c:88: warning: type of bit-field ‘Operand’ is a GCC extension but there doesn't appear to be a way to do that.
* mesa: Compact state key for TexEnv program cacheChris Wilson2009-09-021-3/+5
| | | | | | By rearranging the bitfields within the key we can reduce the size of the key from 644 to 196 bytes, reducing the cost of both the hashing and equality tests.
* mesa: Make MultiDrawElements submit multiple primitives at once.Eric Anholt2009-09-018-33/+38
| | | | | | | | | Previously, MultiDrawElements just called DrawElements a bunch of times. By sending several primitives down the pipeline at once, we avoid a bunch of validation. On my GL demo, this improves fps by 2.5% (+/- .41%) and reduces CPU usage by 70.5% (+/- 2.9%) (n=3). Reviewed by: Ian Romanick <[email protected]>
* mesa: skip bitmap drawing code if width==0 or height==0Brian Paul2009-09-011-19/+22
|
* mesa: new _mesa_expand_bitmap() functionBrian Paul2009-09-012-0/+92
|
* mesa: remove redundant assignmentsBrian Paul2009-09-011-8/+1
|
* mesa: more clean-upsBrian Paul2009-09-011-24/+31
|
* mesa: change conditional to match the previous oneBrian Paul2009-09-011-1/+1
|
* mesa: updated #includesBrian Paul2009-09-011-2/+1
|
* mesa: remove unused texenv_fragment_program::ctx fieldBrian Paul2009-09-011-2/+0
|
* mesa: remove unused ureg::abs fieldBrian Paul2009-09-011-5/+2
|
* mesa: remove unused ureg:negateabs fieldBrian Paul2009-09-011-4/+1
|
* mesa: more comments, clean-upsBrian Paul2009-09-011-10/+10
|
* mesa: simplify translate_tex_src_bit()Brian Paul2009-09-011-20/+3
|
* mesa: minor code clean-ups, commentsBrian Paul2009-09-011-24/+34
|
* mesa: replace 8 with MAX_TEXTURE_UNITSBrian Paul2009-09-011-1/+1
|
* mesa: added _mesa_is_stencil_format()Brian Paul2009-08-312-0/+19
|
* mesa: added const qualifiers, move local varBrian Paul2009-08-311-7/+8
|
* mesa: fix saturation logic in emit_texenv()Brian Paul2009-08-311-1/+7
| | | | | | We need to clamp/saturate after each texenv stage, not just the last one. Fixes glean texEnv failure for softpipe (and probably other fragment program- based drivers).
* mesa: set additional fields in _mesa_buffer_map_range()Brian Paul2009-08-311-3/+5
|
* mesa: set Length/Offset fields in _mesa_buffer_map()Brian Paul2009-08-311-0/+2
|
* mesa: additional assertions for ctx->Driver.UnmapBuffer()Brian Paul2009-08-311-4/+7
| | | | | The Pointer, Offset and Lenght fields should be cleared by the driver function since ctx->Driver.Unmap() may be called from VBO code, etc.
* mesa: new assertions, comments about buffer mappingBrian Paul2009-08-311-12/+29
| | | | | | | Since ctx->Driver.MapBuffer() and ctx->Driver.MapBufferRange() may be called from other places in Mesa (such as VBO) it's important that the driver callbacks set all the buffer object fields properly (Pointer, Offset, Length, etc). Add assertions to make sure that the driver does that.
* ARB prog: Change handling of program parameter limitsIan Romanick2009-08-262-27/+51
| | | | | | | | | | | | | | | | | Several changes are made to program parameter limits. Several of the non-NATIVE limits are set higher. All of the NATIVE limits are set to zero in the core Mesa code. Each driver must set the actual value in its context creation routine. If the NATIVE value remains zero, this indicates that hardware shaders may not be supported. Each of the preceeding changes matches the bahavior of Apple's shader assembler, so it seems safe. Finally, we limit the value of MaxEnvParams to be no greater than MaxNativeAttribs. At least one case has been found where an application does the wrong thing if MaxNativeAttribs < MaxEnvParams. See also bugzilla #23490.
* mesa: validate shader before drawing (for debugging, disabled)Brian Paul2009-08-251-0/+10
|
* mesa: use gl_texture_index type for gl_program::SamplerTargetsBrian Paul2009-08-251-1/+1
|
* mesa: add GL_DEPTH_STENCIL to glCopyPixels error checkBrian Paul2009-08-201-1/+8
| | | | | Plus, add a comment about 'type' error checking. See bug 19087.
* Merge branch 'mesa_7_5_branch'Brian Paul2009-08-181-0/+2
|\