summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: new cpuinfo.c file to init/query cpu info and extensionsBrian Paul2009-03-044-0/+158
|
* mesa: _mesa_get_x86_features() only needs to do its thing onceBrian Paul2009-03-041-0/+8
|
* mesa: Add x86/common_x86.c to libmesagallium.aJakob Bornecrantz2009-03-051-0/+1
| | | | Thanks to Brian for the refactor commit
* mesa: move sse.h and 3dnow.h #includesBrian Paul2009-03-043-44/+9
|
* mesa: remove unneeded x86.h headerBrian Paul2009-03-042-2/+0
|
* mesa: make _mesa_init_x86_transform_asm() staticBrian Paul2009-03-042-2/+2
|
* mesa: rename common_x86_macros.h -> x86_xform.hBrian Paul2009-03-045-6/+6
|
* mesa: rename x86.c -> x86_xform.cBrian Paul2009-03-043-2/+2
|
* mesa: refactor x86 codeBrian Paul2009-03-043-52/+77
| | | | | | Move _mesa_init_all_x86_transform_asm() into x86.c so that common_x86.c has no dependencies on the vertex transformation code. Plus some comments and clean-ups.
* mesa: Follow ARB_map_buffer_range more stricly.José Fonseca2009-03-043-12/+37
| | | | | Namelly, FlushMappedBufferRange takes a subrange relative to the original range.
* Merge commit 'origin/master' into gallium-map-rangeJosé Fonseca2009-03-042-1/+10
|\
| * vbo: second attempt - avoid getting buffer_ptr and buffer_map out of syncKeith Whitwell2009-03-042-1/+10
| |
| * mesa: Clear cache->trans after destroying the transfer.José Fonseca2009-03-041-0/+1
| |
| * Revert "vbo: avoid getting buffer_ptr and buffer_map out of sync"Keith Whitwell2009-03-042-8/+1
| | | | | | | | | | | | This fixed a minor bug but broke everything else. This reverts commit 579ef8ab1984d895867f547afa60b3bec4c4599a.
| * vbo: avoid getting buffer_ptr and buffer_map out of syncKeith Whitwell2009-03-042-1/+8
| |
* | mesa: Clear cache->trans after destroying the transfer.José Fonseca2009-03-041-0/+1
| |
* | Merge commit 'origin/master' into gallium-map-rangeJosé Fonseca2009-03-0423-86/+104
|\|
| * vbo: use FLUSH_UPDATE_CURRENT flag to indicate whether the vbo module is activeKeith Whitwell2009-03-041-6/+4
| | | | | | | | | | Add asserts for expected values on wakeup and flush. Remove cases where this flag is set or cleared except when waking up and flushing vbo module.
| * mesa: include mfeatures.hBrian Paul2009-03-041-0/+3
| | | | | | | | See bug 20319.
| * gallium: Remove some superfluous instances of #include "p_inlines.h".Michel Dänzer2009-03-046-6/+0
| |
| * gallium: Unify reference counting.Michel Dänzer2009-03-0415-62/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The core reference counting code is centralized in p_refcnt.h. This has some consequences related to struct pipe_buffer: * The screen member of struct pipe_buffer must be initialized, or pipe_buffer_reference() will crash trying to destroy a buffer with reference count 0. u_simple_screen takes care of this, but I may have missed some of the drivers not using it. * Except for rare exceptions deep in winsys code, buffers must always be allocated via pipe_buffer_create() or via screen->*buffer_create() rather than via winsys->*buffer_create().
| * mesa: include main/dd.h in t_vb_points.c and t_vp_build.cBrian Paul2009-03-032-0/+3
| | | | | | | | | | For some reason makedepend doesn't seem to find the dependency on this header in these two files. Directly including the header is a work-around.
| * gallium: remove old state tracker renderbuffer attachment assertionBrian Paul2009-03-031-2/+0
| | | | | | | | | | Not needed since renderbuffers are ref-counted. Fixes progs/demos/shadowtex.
| * xlib: code to force fixed function -> shader translation (for debug, disabled)Brian Paul2009-03-031-0/+8
| |
| * mesa: fix sw fallback state validation bugBrian Paul2009-03-031-10/+28
| | | | | | | | | | | | | | | | When a hw driver fell back to swrast, swrast wasn't always getting informed of program changes. When fixed function is translated into shaders, flags like _NEW_LIGHT, _NEW_TEXTURE, etc. should really signal _NEW_PROGRAM. In this case, swrast wasn't seeing _NEW_PROGRAM when new fragment shaders were generated.
* | mesa: Implement and use FlushMappedBufferRange.José Fonseca2009-03-042-2/+20
| |
* | mesa: Massage the interface to more closely resemble ARB_map_buffer_rangeJosé Fonseca2009-03-032-7/+9
|/
* Merge commit 'origin/gallium-0.1'Keith Whitwell2009-03-039-63/+238
|\ | | | | | | | | | | | | | | | | | | Conflicts: scons/gallium.py src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/include/pipe/p_defines.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_exec_draw.c
| * vbo: missing line from previous commitKeith Whitwell2009-03-031-1/+1
| |
| * mesa/st: implement MapBufferRange callbackKeith Whitwell2009-03-031-1/+34
| | | | | | | | Using PIPE_BUFFER_USAGE_DONTBLOCK.
| * vbo: use MapBufferRange where availableKeith Whitwell2009-03-035-57/+154
| | | | | | | | | | | | Previously would have to allocate a new VBO after firing a draw command as subsequent call to Map() on old VBO might block if the driver had submitted the commands to hardware.
| * mesa: add MapBufferRange driver callbacksKeith Whitwell2009-03-031-0/+26
| | | | | | | | | | | | Will be needed in coming GL extensions (GL_map_buffer_range, GL 3.0). Will be used by the vbo module to avoid reallocating vbo's at each draw primitive call.
| * mesa: Add BeginVertices driver callKeith Whitwell2009-03-035-3/+25
| | | | | | | | | | Provides notification to the VBO modules prior to the first immediate call. Pairs with FlushVertices()
| * glsl: make minimum struct size = 2, not 1Brian Paul2009-01-091-1/+8
| | | | | | | | | | | | | | | | | | 1-component structs such as "struct foo { float x; }" could get placed at any position within a register. This caused some trouble computing the field offset which assumed all struct objects were placed at R.x. It would be unusual to hit this case in normal shaders. (cherry picked from master, commit ca03e881a8d8fa3e36a601238559c20311373633)
| * glsl: fix typo in the vec2 += operator functionBrian Paul2009-01-082-2/+2
| |
| * glsl: fix broken +=, -=, *=, /= operatorsBrian Paul2009-01-082-737/+786
| | | | | | | | | | | | | | These functions need to return the final computed value. Now expressions such as a = (b += c) work properly. Also, no need to use __asm intrinsics in these functions. The resulting code is the same when using ordinary arithmetic operators and is more legible.
| * mesa: Add _mesa_snprintf.José Fonseca2009-01-075-7/+22
| | | | | | | | On Windows snprintf is renamed as _snprintf.
| * add GL_READ_FRAMEBUFFER_BINDING_EXT case, regenerate get.c fileBrian Paul2009-01-062-0/+17
| | | | | | | | | | | | | | | | (cherry picked from commit 816fbeaa813e5cdca314a39677c74c8dc700d35a) Conflicts: src/mesa/main/get.c
| * mesa: fix GL_DEPTH_CLEAR_VALUE castingBrian Paul2009-01-062-4/+4
| |
| * mesa: fix cast/conversion for optional codeBrian2009-01-062-4/+6
| | | | | | | | (cherry picked from commit 1e3a44fab068f00378613456036716d0c3772969)
| * mesa: fix float->int mapping for glGetIntegerv(GL_DEPTH_CLEAR_VALUE)Brian Paul2009-01-062-3/+3
| | | | | | | | | | | | | | | | (cherry picked from commit 8124faf89d638285d8e9aa93adc3ca7f4ee729f3) Conflicts: src/mesa/main/get.c
| * mesa: pass ctx to link_uniform_vars() to fix build errorBrian Paul2009-01-061-3/+4
| |
| * mesa: Move var declaration to top of scope.José Fonseca2009-01-061-1/+1
| |
| * wgl: Do not provide DllMain inside the state tracker.José Fonseca2009-01-065-24/+19
| | | | | | | | | | | | MS CRT libraries already provide a default DllMain entrypoint, and MS Linker will complain if it finds the same symbol in two different libraries. Therefore the DllMain has to be in (each) winsys.
| * wgl: Ensure public symbols get the proper DLL linkage attributes.José Fonseca2009-01-0613-36/+52
| |
| * mesa: Ensure gl* symbols are marked as dllexport on windows.José Fonseca2009-01-061-0/+6
| |
| * mesa: Use explicit casts when precision is lost.José Fonseca2009-01-061-2/+2
| | | | | | | | Silences MSVC.
| * mesa: fix a GLSL swizzled writemask bugBrian Paul2009-01-061-2/+18
| | | | | | | | | | | | | | | | | | | | | | This fixes cases such as: vec4 v4; vec2 v2; v4.xz.yx = v2; The last line now correctly compiles into MOV TEMP[1].xz, TEMP[0].yyxw; Helps to fix the Humus Domino demo. See bug 19189. (cherry picked from commit 9736d8f03364068c9ca786f88a4c2881d98d5768)
| * mesa: fix warning about possibly undefined var in GLSL compilerBrian Paul2009-01-061-6/+4
| | | | | | | | (cherry picked from commit 724ed5b84bc2491da244d091de889d5b35503b5d)
| * mesa: fix another "out of samplers" problemBrian Paul2009-01-063-18/+50
| | | | | | | | | | | | | | | | | | | | | | | | Now only the samplers that are actually used by texture() functions are saved in the uniform variable list. Before, we could run out of samplers if too many were declared while only some of them were actually used. (cherry picked from commit 1fad6ccb756ae33ca3115f59c99ca8abbeb0321e) Conflicts: src/mesa/shader/slang/slang_link.c