Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-08-13 | tgsi: use REALLOC for growing token pool | Keith Whitwell | |
2009-08-13 | util: silence warnings for third REALLOC argument | Keith Whitwell | |
Our fallback realloc path requires an old_size argument, but the posix varient doesn't need this. Add some code to avoid gcc unused variable warnings for this extra argument. | |||
2009-08-13 | util: remove unneeded includes | Keith Whitwell | |
2009-08-13 | util: convert u_simple_shaders to use tgsi_ureg | Keith Whitwell | |
Much nicer now. | |||
2009-08-13 | tgsi: add tgsi_ureg, a simplified tgsi shader builder | Keith Whitwell | |
This is modelled on the nice & easy-to-use facilities we had for building shaders in mesa, eg. in texenvprogram.c and friends. Key points include pass-by-value register structs that can be manipulated in a functional style, eg: negate(swizzle(reg, X,X,X,X)) and per-opcode instruction functions, eg: emit_MOV( p, writemask(dst, 0x1), negate(src)); and similar. Additionally, the interface allows mixed emit of instructions and decls, which are sorted out internally to obey TGSI ordering. Immediates may be emitted at any time and are scanned against existing immediates to try and reduce redundancy. Not all TGSI functionality is accessible through this interface, but most or all of what mesa uses should be. | |||
2009-08-13 | i965: fix cube map on IGDNG | Xiang, Haihao | |
2009-08-12 | glsl: remove duplicate frag input entry | Brian Paul | |
2009-08-12 | Merge branch 'new-frag-attribs' | Brian Paul | |
This branch introduces new FRAG_ATTRIB_FACE and FRAG_ATTRIB_PNTC fragment program inputs for GLSL gl_FrontFacing and gl_PointCoord. Before, these attributes were packed with the FOG attribute. That made things complicated elsewhere. | |||
2009-08-12 | progs/glsl: change uniform_info::type field to use GLSL vector types | Brian Paul | |
2009-08-12 | demos: call SetUniformValues() | Brian Paul | |
2009-08-12 | mesa: const qualifiers | Brian Paul | |
2009-08-12 | vbo: use _mesa_is_bufferobj() | Brian Paul | |
2009-08-12 | demos: rename InitUniforms() to SetUniformValues() | Brian Paul | |
And call new PrintUniforms() in demos. | |||
2009-08-12 | progs/util: added more shader utility functions | Brian Paul | |
2009-08-12 | mesa: use _mesa_is_bufferobj() | Brian Paul | |
2009-08-12 | mesa: use _mesa_is_bufferobj() | Brian Paul | |
2009-08-12 | mesa: new _mesa_is_bufferobj() function | Brian Paul | |
Tests if the given buffer object is a user-created, non-default buffer object. Use this instead of testing bufferobj->Name != 0. | |||
2009-08-12 | i965: Make the cube mapping RCP use a writemask. | Eric Anholt | |
Fixes cube mapping since the scalar changes. | |||
2009-08-12 | i965: Allocate destination registers for GLSL TEX instructions contiguously. | Eric Anholt | |
This matches brw_wm_pass*.c behavior, and fixes the norsetto shadow demo. Bug #19489 | |||
2009-08-12 | i965: drop dead scalar handling in GLSL. | Eric Anholt | |
2009-08-12 | i965: Correct brw_wm_nr_args for WM_DELTAXY and WM_PIXELXY. | Eric Anholt | |
2009-08-12 | i965: Drop GLSL ABS code, which is translated away in brw_wm_fp. | Eric Anholt | |
2009-08-12 | i965: Drop code for emitting OPCODE_SUB, since brw_wm_fp.c makes it an ADD. | Eric Anholt | |
2009-08-12 | i965: Store the dispatch width in the WM compile struct. | Eric Anholt | |
I'll be using this in merging brw_wm_emit.c and brw_wm_glsl.c | |||
2009-08-12 | i965: Handle scalar result swizzling in shared GLSL/non-GLSL code. | Eric Anholt | |
This is preparation for merging of brw_wm_glsl.c and brw_wm_emit.c, and glsl.c doesn't swizzle channel results around. | |||
2009-08-12 | i965: Flag ARL-using programs as requiring brw_wm_glsl.c | Eric Anholt | |
This doesn't fix the glean testcase, but I guess it provides hope. | |||
2009-08-12 | i965: Remove some unused WM opcode args. | Eric Anholt | |
2009-08-12 | i965: Avoid re-uploading the index buffer when we don't need to. | Eric Anholt | |
No performance difference proven at 95% confidence with my GLSL demo (n=10). | |||
2009-08-12 | r600: fix warning | Alex Deucher | |
2009-08-12 | r600: state cleanups | Alex Deucher | |
2009-08-12 | r600: clean up Create/DestroyContext | Alex Deucher | |
2009-08-12 | r200: Prevent TexGenMatrix from leaking when destroying r200 context. | Pauli Nieminen | |
Signed-off-by: Pauli Nieminen <suokkos@gmail.com> | |||
2009-08-12 | vbo: fix incorrect pointer | Brian Paul | |
2009-08-12 | glsl: add gl_Vertex, gl_Normal, etc to list of active attributes | Brian Paul | |
If a vertex shader uses gl_Vertex, gl_Normal, etc, we need to include them when the user queries the list of active attributes. Before this we were just including the user-defined attributes. | |||
2009-08-12 | glsl: move predefined shader input/output info/code to slang_builtin.c | Brian Paul | |
This is a more logical place for this code. Also add some functions for querying vertex shader input names, types, etc. | |||
2009-08-12 | vbo: Avoid extra validation of DrawElements. | Eric Anholt | |
This saves mapping the index buffer to get a bounds on the indices that drivers just drop on the floor in the VBO case (cache win), saves a bonus walk of the indices in the CheckArrayBounds case, and other miscellaneous validation. On intel it's a particularly a large win (50-100% in my app) because even though we let the indices stay in both CPU and GPU caches, we still end up waiting for the GPU to be done with the buffer before reading from it. Drivers that want the min/max_index fields must now check index_bounds_valid and use vbo_get_minmax_index before using them. | |||
2009-08-12 | radeon: Minor warnings cleanup. | Eric Anholt | |
2009-08-12 | i965: Use _MaxElement instead of index-calculated min/max for VBO bounds. | Eric Anholt | |
2009-08-12 | radeon: Add protection against recursive DRM locking. | Pauli Nieminen | |
Reference counting protects DRM lock call from recursive locking that would cause hang. Code also adds optional debugging output for recursive call that is compiled only if NDEBUG is not defined. This code is not 100% thread safe because mesa doesn't include increment and test atomic operation. There is built-in gcc functions but they are only available from gcc 4.2. | |||
2009-08-12 | st/xorg: Acquire/drop DRM master in order to work with multiple servers. | Michel Dänzer | |
2009-08-12 | gallium/glx/xlib: main/ prefix on Mesa includes, remove -I$(TOP)/src/mesa/main/ | Brian Paul | |
2009-08-12 | gallium/glx/xlib: updated comments | Brian Paul | |
2009-08-12 | gallium/glx/xlib: delete fakeglx.h | Brian Paul | |
2009-08-12 | gallium/glx/xlib: rename fakeglx.c to glx_api.c | Brian Paul | |
2009-08-12 | gallium/glx/xlib: delete glxapi.h | Brian Paul | |
2009-08-12 | gallium/glx/xlib: rename fakeglx_fonts.c to glx_usefont.c | Brian Paul | |
2009-08-12 | gallium/glx/xlib: rename glxapi.c to glx_getproc.c | Brian Paul | |
2009-08-12 | gallium/glx/xlib: don't include fakeglx.h | Brian Paul | |
2009-08-12 | gallium/glx/xlib: overhaul and simplification of the Gallium Xlib-based GLX | Brian Paul | |
The old GLX dispatch table stuff isn't needed (same story for the Mesa/Xlib driver). The intention of that code was being able to switch on the fly between the real GLX library and the fake/Xlib-based emulation. That hasn't been used in a long time. Next up: some file renaming. | |||
2009-08-12 | r600: A shader is bound that exports Z as a float into Red channel | Cooper Yuan | |