aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* st/mesa: Use blend equation and function of first render target for all ↵Fabian Bieler2011-02-141-8/+11
| | | | | | | | | | | render targets if ARB_draw_buffers_blend is not supported If EXT_draw_buffers2 is supported but ARB_draw_buffers_blend isn't _mesa_BlendFuncSeparateEXT only sets up the blend equation and function for the first render target. This patch makes sure that update_blend doesn't try to use the data from other rendertargets in such cases. Signed-off-by: Brian Paul <[email protected]>
* r300g: implement pb_manager::is_buffer_busyMarek Olšák2011-02-141-22/+27
|
* pb_bufmgr_cache: add is_buffer_busy hook and use it instead of non-blocking mapMarek Olšák2011-02-142-7/+14
| | | | This is cleaner and implementing the hook is optional.
* gallium: notify drivers about possible changes in user buffer contentsMarek Olšák2011-02-1426-6/+182
| | | | Also implement the redefine_user_buffer hook in the drivers.
* st/mesa: set vertex arrays state only when necessaryMarek Olšák2011-02-141-182/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | The vertex arrays state should be set only when (_NEW_ARRAY | _NEW_PROGRAM) is dirty. This assumes user buffer content is mutable, which will be sorted out in the next commit. The following usage case should be much faster now: for (i = 0; i < 1000; i++) { glDrawElements(...); } Or even: for (i = 0; i < 1000; i++) { glSomeStateChangeOtherThanArraysOrProgram(...); glDrawElements(...); } The performance increase from this may be significant in some apps and negligible in others. It is especially noticable in the Torcs game (r300g): Before: 15.4 fps After: 20 fps Also less looping over attribs in st_draw_vbo yields slight speed-up in apps with lots of glDraw* calls.
* gallium: remove pipe_vertex_buffer::max_indexMarek Olšák2011-02-1426-50/+12
| | | | | This is redundant to pipe_draw_info::max_index and doesn't really fit in the optimizations I plan.
* gallium: always save and restore vertex buffers using cso_cacheMarek Olšák2011-02-1414-18/+92
|
* vbo: bind arrays only when necessaryMarek Olšák2011-02-143-0/+8
| | | | | We don't need to call bind_arrays in the vbo module if the states which the function depends on are not dirty.
* vbo: notify a driver that we change buffer offsets, strides, etc.Marek Olšák2011-02-142-0/+2
|
* r300g: Remove redundant initialization.Vinson Lee2011-02-141-1/+1
| | | | | Remove redundant initialization from commit 3b01b52bd78e3d2fc857feacebd815a5fae00c94 noticed by tstellar.
* r600g: add alignment cases for linear alignedAlex Deucher2011-02-141-0/+6
| | | | | | Matches the drm and ddx. Signed-off-by: Alex Deucher <[email protected]>
* draw: Don't define the last two mipmap levels in aa lines.José Fonseca2011-02-141-5/+11
| | | | | | Some hardware needs to make a seperate copy of all levels to obey max_lod, so simply do not define the last two levels instead of clamping.
* svga: Set the appropriate flags when creating sampler/surface views.José Fonseca2011-02-143-5/+18
|
* r300g: put indices in CS if there's just a few of them and are in user memoryMarek Olšák2011-02-141-3/+99
|
* r300g: cleanup the draw functionsMarek Olšák2011-02-142-76/+53
|
* r300g: do not create a user buffer struct for misaligned ushort indices fallbackMarek Olšák2011-02-143-12/+8
|
* r300g: fix fallback for misaligned ushort indices with num vertices >= 65535Marek Olšák2011-02-141-1/+5
|
* r300g: consolidate emission of common draw regsMarek Olšák2011-02-141-21/+23
|
* docs: Fix typo in GL3.txtSedat Dilek2011-02-141-1/+1
|
* r300g: Move declaration before code.Vinson Lee2011-02-141-3/+4
| | | | Fixes SCons build.
* r600g: do not destroy the original index buffer when translating indicesMarek Olšák2011-02-141-2/+2
| | | | Because we only translate a subrange of the buffer.
* r300g: emit 3D_LOAD_VBPNTR only when necessaryMarek Olšák2011-02-144-64/+33
| | | | | I thought I couldn't skip emitting this packet in some cases. Well it looks like I can.
* r300g: fix reference counting when translating indicesMarek Olšák2011-02-141-0/+3
|
* u_index_modify: map buffers with PIPE_TRANSFER_UNSYNCHRONIZEDMarek Olšák2011-02-141-3/+12
|
* r300g: remove the relocation after AARESOLVE_PITCHMarek Olšák2011-02-142-3/+1
|
* egl_dri2: add nouveau support.Dave Airlie2011-02-141-0/+8
| | | | | | | but really wtf? all these PCI IDs need to be ripped out of here, its totally unscalable and the drivers already have this info so could export it some better way. tested by Darxus on #wayland.
* nv50: fix query assertionMarcin Slusarz2011-02-131-1/+1
|
* r300g: correctly determine if a texture is blittable in texture_get_transferMarek Olšák2011-02-131-4/+5
|
* r300g: fixup the handle_compare functionMarek Olšák2011-02-131-2/+2
| | | | Accidentally negated in 685c3262b945a7f0e9f1f3a9409a12fdda08c828.
* r300g: when printing shader linker errors to stderr, report it's not a bugMarek Olšák2011-02-121-3/+6
|
* r300g: add debug options nozmask and nohiz which disable some hyper-z featuresMarek Olšák2011-02-123-0/+9
|
* r300g: typecast void* to unsigned correctlyMarek Olšák2011-02-121-2/+4
|
* dri: Remove the old metaops code which has been superceded by ../common/Eric Anholt2011-02-123-374/+1
|
* radeon: Remove setup of the old dri/ meta code, which is now unused.Eric Anholt2011-02-123-7/+1
|
* intel: Remove setup of the old dri/ meta code, which is now unused.Eric Anholt2011-02-122-7/+1
|
* update GL3.txt for GL_EXT_framebuffer_sRGB statusDave Airlie2011-02-121-1/+1
|
* r300/compiler: Don't erase sources when converting RGB->AlphaTom Stellard2011-02-111-6/+0
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=34030 NOTE: This is a candidate for the 7.10 branch.
* mesa: Optionally build a dricore support library (v3)Christopher James Halse Rogers2011-02-1112-32/+169
| | | | | | | | | | | | | | | | | This an adds --enable-shared-dricore option to configure. When enabled, DRI modules will link against a shared copy of the common mesa routines rather than statically linking these. This saves about 30MB on disc with a full complement of classic DRI drivers. v2: Only enable with a gcc-compatible compiler that handles rpath Handle DRI_CFLAGS without filter-out magic Build shared libraries with the full mklib voodoo Fix typos v3: Resolve conflicts with talloc removal patches Signed-off-by: Christopher James Halse Rogers <[email protected]>
* glx: Put null check before usenobled2011-02-111-2/+6
| | | | | | 'dpy' was being checked for null *after* it was already used once. Also add a null check for psc, and drop gc's redundant initialization.
* r300g: improve function radeon_bo_is_referenced_by_csMarek Olšák2011-02-125-18/+30
| | | | | This should prevent calling into radeon_get_reloc when there's only one context.
* u_vbuf_mgr: fix segfaultMarek Olšák2011-02-121-1/+1
| | | | | max_index could have been less than min_index, which later caused integer underflow followed by a segfault in memcpy.
* ir_to_mesa: Don't dereference a NULL pointer during copy propagationIan Romanick2011-02-111-0/+3
| | | | | | The ACP may already be NULL, so don't try to make it NULL again. This should fix bugzilla #34119.
* glcpp: regerated filesIan Romanick2011-02-112-181/+193
| | | | | These should have been committed right after fd1252ab, but they were missed. Soon, we'll never have to do this again...
* glsl: Regenerate files modified by previous commitsIan Romanick2011-02-113-1798/+1899
|
* glsl: Finish out the reduce/reduce error fixesIan Romanick2011-02-113-59/+109
| | | | | | | | | | | | | Track variables, functions, and types during parsing. Use this information in the lexer to return the currect "type" for identifiers. Change the handling of structure constructors. They will now show up in the AST as constructors (instead of plain function calls). Fixes piglit tests constructor-18.vert, constructor-19.vert, and constructor-20.vert. Also fixes bugzilla #29926. NOTE: This is a candidate for the 7.9 and 7.10 branches.
* glsl: Eliminate reduce/reduce conflicts in glsl grammarKeith Packard2011-02-111-21/+71
| | | | | | | | | This requires lexical disambiguation between variable and type identifiers (as most C compilers do). Signed-off-by: Keith Packard <[email protected]> NOTE: This is a candidate for the 7.9 and 7.10 branches.
* st/mesa: Fix surfaceless opengl with non-dummy contextsBenjamin Franzke2011-02-111-10/+5
| | | | | | | main/context.c:check_complatible() detecs an incomplete framebuffer using its pointer, so do not copy it. This should fix https://bugs.freedesktop.org/show_bug.cgi?id=34042
* svga: disable a debug_printf() callBrian Paul2011-02-111-5/+9
|
* svga: comments and debug codeBrian Paul2011-02-111-0/+10
|
* svga: more comments for need_pipeline fieldBrian Paul2011-02-111-1/+4
|