summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* i965: Drop GLSL ABS code, which is translated away in brw_wm_fp.Eric Anholt2009-08-121-20/+0
|
* i965: Drop code for emitting OPCODE_SUB, since brw_wm_fp.c makes it an ADD.Eric Anholt2009-08-121-21/+0
|
* i965: Store the dispatch width in the WM compile struct.Eric Anholt2009-08-122-0/+3
| | | | I'll be using this in merging brw_wm_emit.c and brw_wm_glsl.c
* i965: Handle scalar result swizzling in shared GLSL/non-GLSL code.Eric Anholt2009-08-125-69/+103
| | | | | This is preparation for merging of brw_wm_glsl.c and brw_wm_emit.c, and glsl.c doesn't swizzle channel results around.
* i965: Flag ARL-using programs as requiring brw_wm_glsl.cEric Anholt2009-08-121-0/+1
| | | | This doesn't fix the glean testcase, but I guess it provides hope.
* i965: Remove some unused WM opcode args.Eric Anholt2009-08-121-6/+4
|
* i965: Avoid re-uploading the index buffer when we don't need to.Eric Anholt2009-08-125-16/+55
| | | | No performance difference proven at 95% confidence with my GLSL demo (n=10).
* r600: fix warningAlex Deucher2009-08-122-3/+3
|
* r600: state cleanupsAlex Deucher2009-08-124-52/+40
|
* r600: clean up Create/DestroyContextAlex Deucher2009-08-123-15/+6
|
* r200: Prevent TexGenMatrix from leaking when destroying r200 context.Pauli Nieminen2009-08-122-5/+17
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* vbo: fix incorrect pointerBrian Paul2009-08-121-1/+1
|
* glsl: add gl_Vertex, gl_Normal, etc to list of active attributesBrian Paul2009-08-121-0/+19
| | | | | | 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.
* glsl: move predefined shader input/output info/code to slang_builtin.cBrian Paul2009-08-124-103/+199
| | | | | This is a more logical place for this code. Also add some functions for querying vertex shader input names, types, etc.
* vbo: Avoid extra validation of DrawElements.Eric Anholt2009-08-1217-117/+156
| | | | | | | | | | | | | 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.
* radeon: Minor warnings cleanup.Eric Anholt2009-08-125-7/+16
|
* i965: Use _MaxElement instead of index-calculated min/max for VBO bounds.Eric Anholt2009-08-121-2/+3
|
* radeon: Add protection against recursive DRM locking.Pauli Nieminen2009-08-124-3/+64
| | | | | | | | | | 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.
* r600: A shader is bound that exports Z as a float into Red channelCooper Yuan2009-08-122-0/+4
|
* mesa: handle glDrawPixels images which are larger than max rect texture sizeBrian Paul2009-08-111-3/+47
|
* mesa: added _mesa_meta_draw_pixels()Brian Paul2009-08-112-1/+188
|
* mesa: added META_FOG and optimize some meta_begin/end() codeBrian Paul2009-08-112-28/+36
|
* r600: use the drm ioctls for swap and texture uploadAlex Deucher2009-08-112-31/+27
| | | | NOTE: THIS REQUIRES AN UPDATED DRM!
* mesa/glapi: regenerated files from gl_API.xmlBrian Paul2009-08-111-15/+59
|
* mesa: remove _mesa_set_vp_override() from _mesa_Bitmap()Brian Paul2009-08-111-12/+4
| | | | | | | This reverts part of commit 2c9812e3d346eb07180da520909b142e8afc1c59. The calls to _mesa_set_vp_override() were causing extra state validation and caused the gallium state tracker's bitmap cache to get flushed on every call.
* r600: update num of interp if posizition is usedCooper Yuan2009-08-111-8/+10
|
* intel: use new _mesa_meta_copy_pixels() functionBrian Paul2009-08-101-165/+2
| | | | glCopyPixels() no longer hits a software fallback when zooming, blending, etc.
* mesa: save/restore texture matrix in meta codeBrian Paul2009-08-101-1/+20
| | | | Also, save/restore viewport and texture state in _mesa_meta_copy_pixels()
* mesa: for meta blit, check max texture size, use glCopyTexSubImage2D() when ↵Brian Paul2009-08-101-2/+27
| | | | possible
* mesa: initial meta implementation of glCopyPixels()Brian Paul2009-08-102-0/+166
|
* mesa: remove debug flush callBrian Paul2009-08-101-2/+0
|
* intel: add missing \n to fprintf()Brian Paul2009-08-101-1/+1
|
* intel: use new _mesa_meta_blit_framebuffer() functionBrian Paul2009-08-102-69/+7
| | | | | The previous version of framebuffer blit was a quick hack. The new meta version works pretty well.
* mesa: new driver meta-ops moduleBrian Paul2009-08-103-1/+883
| | | | | | | | | | | | | | | | | Implement glClear() in terms of quad rendering, implement glBlitFramebuffer() in terms of glCopyTexImage2D + textured quad, etc. There have been several places in the drivers where we've implemented meta rendering similar to this. This is an effort to do it in a more portable and more efficient form. The _mesa_meta_begin/end() functions act like glPush/PopAttrib() but are lighter-weight. Plus, _mesa_meta_begin() resets GL state back to default values (texturing off, identity vertex transform, etc) so the meta drawing functions don't have to worry about it. For now only _mesa_mesa_blit_framebuffer() and _mesa_meta_clear() are implemented. glDrawPixels() and glCopyPixels() would be the next candidates.
* mesa: added GLcontext::Meta field for meta rendering stateBrian Paul2009-08-101-0/+3
|
* radeon_fbo: switch short to byte for 565Dave Airlie2009-08-101-1/+1
|
* radeon: fix cut-n-paste in alphabits in fbo codeDave Airlie2009-08-101-1/+1
|
* r600: looks like a typoDave Airlie2009-08-091-1/+1
|
* r600: load per-pixel position into PS in order to use fragment.position.Cooper Yuan2009-08-091-0/+27
| | | | | This patch can fix /progs/fp/tri-depth, tri-depth2, tri-depthwrite, tri-depthwrite2 and point-position.
* mesa: update framebuffer status as needed in _mesa_source/dest_buffer_exists()Brian Paul2009-08-081-4/+8
|
* mesa: simplify glPushAttrib() list building codeBrian Paul2009-08-081-106/+40
|
* mesa: remove old, prototype codeBrian Paul2009-08-081-65/+0
|
* swrast: replace GLenum, GLint with GLbitfield for buffer varsBrian Paul2009-08-081-3/+3
|
* mesa: use _mesa_bufferobj_mapped()Brian Paul2009-08-081-1/+1
|
* Revert "i965: Disable texture tiling by default."Eric Anholt2009-08-071-1/+5
| | | | | | | This reverts commit b8e638d4895d2d342306bb6443a455f73903ce20. Now that the known hangs and misrendering issues are fixed, I'm ready to start encouraging it by default again.
* intel: Align region height as required for tiled regions.Eric Anholt2009-08-071-0/+5
| | | | | | | Otherwise, we would address beyond the end of our buffers. Fixes reliable GPU segfault with texture_tiling=true and oglconform shadow.c. Bug #22406.
* i965: Add a note justifying domain choice for the SF VP.Eric Anholt2009-08-071-0/+3
|
* intel: Add some more safety asserts in the blit code.Eric Anholt2009-08-071-0/+3
|
* i965: Replace the subroutine-skipping jump in VS with a NOP if it's a NOP.Eric Anholt2009-08-071-1/+5
| | | | | This showed a 1.9% (+/-.3%, n=3) improvement in OA performance with high geometry settings.
* radeon: correct fix for tiling with the legacy buildAlex Deucher2009-08-072-6/+6
|