aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [965] Move to using shared texture management code.Eric Anholt2007-12-1616-1134/+49
| | | | | | This removes the delayed texture upload optimization from 965, in exchange for bringing us closer to PBO support. It also disables SGIS_generate_mipmap, which didn't seem to be working before anyway, according to the lodbias demo.
* [intel] Whitespace and comment changes to bring intel_mipmap_tree.c closer.Eric Anholt2007-12-152-67/+73
|
* [intel] Merge intel_buffer_objects to shared.Eric Anholt2007-12-156-308/+32
| | | | | 965 gains fixed TTM typing of the buffer object buffers and unused PBO functions, and 915 gains buffer size == 0 fixes from 965.
* [965] Use shared intel_regions.c.Eric Anholt2007-12-159-478/+29
| | | | | This adds (so far) unused PBO functions, and holding the lock while writing to regions (which may be shared static screen regions).
* [intel] Fix uninitialized data in screen-region buffer objects.Eric Anholt2007-12-141-0/+2
|
* [intel] Remove excessive validation debugging.Eric Anholt2007-12-141-1/+0
|
* [intel] Initialize debug flag for dri_bufmgrsEric Anholt2007-12-142-0/+3
|
* [intel] Remove useless intel_region_idle.Eric Anholt2007-12-144-27/+0
| | | | | The idling it was trying to ensure was covered by the intel_miptree_image_map()->intel_region_map() that immediately followed it.
* [intel] warnings cleanupEric Anholt2007-12-146-29/+4
|
* fix polygon cull regressionBrian2007-12-141-7/+3
|
* Build rain demo (Gonzo <[email protected]>)Brian2007-12-142-1/+11
|
* [intel] Remove the relocation buffer lists and just cache one per buffer.Eric Anholt2007-12-141-279/+174
| | | | | | | | | | Each buffer object now has a relocation buffer pointer, which contains the relocations for the buffer if there are any. At the point where we have to create a new type of relocation entry, we can change the code over to allowing multiple relocation lists, but trying to anticipate what that'll look like now just increases complexity. This is a 30% performance improvement on 965.
* [965] Replace the state cache suballocator with direct dri_bufmgr use.Eric Anholt2007-12-1426-831/+965
| | | | | | | | | | | | | | | | | | | | | | | The user-space suballocator that was used avoided relocation computations by using the general and surface state base registers and allocating those types of buffers out of pools built on top of single buffer objects. It also avoided calls into the buffer manager for these small state allocations, since only one buffer object was being used. However, the buffer allocation cost appears to be low, and with relocation caching, computing relocations for buffers is essentially free. Additionally, implementing the suballocator required a don't-fence-subdata flag to disable waiting on buffer maps so that writing new data didn't block on rendering using old data, and careful handling when mapping to update old data (which we need to do for unavoidable relocations with FBOs). More importantly, when the suballocator filled, it had no replacement algorithm and just threw out all of the contents and forced them to be recomputed, which is a significant cost. This is the first step, which just changes the buffer type, but doesn't yet improve the hash table to not result in full recompute on overflow. Because the buffers are all allocated out of the general buffer allocator, we can no longer use the general/surface state bases to avoid relocations, and they are set to 0 instead.
* [intel] Remove broken mutex protection from dri_bufmgrs.Eric Anholt2007-12-132-120/+57
| | | | | Now that the dri_bufmgr is stored in the context rather than the screen, all access to one is single-threaded anyway.
* [intel] Enable INTEL_DEBUG=bufmgr output in TTM mode as well as classic.Eric Anholt2007-12-136-59/+36
|
* [intel] assert that buffers are not mapped at last unreference.Eric Anholt2007-12-131-0/+1
| | | | | bufmgr_fake doesn't care about it, but with ttm we would end up with the buffer remaining referenced until application exit.
* [intel] Assert against conflicting relocation emits in bufmgr_fake.cEric Anholt2007-12-121-0/+12
|
* [965] Bug #13600: Fix assertion failure with SRGB textures.Eric Anholt2007-12-121-0/+21
| | | | | I broke this with cherry-pick resolving on 93c98a466947570e0589b662df49095b2f4bc43c.
* [intel] Move bufmgr back to context instead of screen, fixing glthreads.Eric Anholt2007-12-1232-655/+504
| | | | | | | | Putting the bufmgr in the screen is not thread-safe since the emit_reloc changes. It also led to a significant performance hit from pthread usage for the attempted thread-safety (up to 12% of a cpu spent on refcounting protection in single-threaded 965). The motivation had been to allow multi-context bufmgr sharing in classic mode, but it wasn't worth the cost.
* Block in kernel waiting for fenceKeith Packard2007-12-111-1/+1
|
* Use previous buffer offsets to compute proposed relocationsKeith Packard2007-12-112-1/+28
| | | | | This takes advantage of the DRM_BO_HINT_PRESUMED_OFFSET change and allows the kernel to avoid mapping and re-writing buffers when relocations occur.
* add simple test for two-sided stencil functionalityRoland Scheidegger2007-12-112-0/+300
|
* make sure state token values are fully initializedRoland Scheidegger2007-12-112-2/+2
|
* [965] Hook up DEBUG_BUFMGR output for bufmgr_fake.Eric Anholt2007-12-101-0/+2
|
* [965] Convert the driver to dri_bufmgr interface and enable TTM.Eric Anholt2007-12-0740-2465/+874
| | | | | | | | | | | | | This is currently believed to work but be a significant performance loss. Performance recovery should be soon to follow. The dri_bo_fake_disable_backing_store() call was added to allow backing store disable like bufmgr_fake.c did, which is a significant performance win (though it's missing the no-fence-subdata part). This commit is a squash merge of the 965-ttm branch, which had some history I wanted to avoid pulling due to noisiness and brokenness at many points for git-bisecting.
* [965] Remove dead code in upload_wm_surfaces.Eric Anholt2007-12-071-3/+0
|
* [965] Move brw_surface_state stack allocation into the function using it.Eric Anholt2007-12-071-30/+28
|
* Make osdemos linking like other programsDan Nicholson2007-12-075-9/+13
| | | | | | | | | | Most of the programs list their dependencies on the Mesa libraries in their Makefiles. This works with the default configuration where APP_LIB_DEPS only lists external libraries. This changes the linux-osmesa configs and the osdemos Makefile to follow that convention. Some cleanup of the Makefile is also added to refer to the GL libraries through the existing variables rather than hardcoding their names.
* configs: Fix linking with static libGL and --as-neededDan Nicholson2007-12-073-3/+6
| | | | | | Linking of the programs breaks when using a static libGL and the GNU ld option --as-needed. This is because libXext is needed for the XShm functions.
* i915: fix the error in the previos commit.Xiang, Haihao2007-12-071-1/+1
|
* i915: Check the program size when uploading a program. fix bug 13494Xiang, Haihao2007-12-071-6/+8
|
* Minor followup fixes for the previous commit.Michel Dänzer2007-12-061-1/+4
|
* Always call dlopen in DriverOpen.George Nassas2007-12-062-2/+7
| | | | | | This increases the reference count for the driver binary, preventing it from getting unloaded prematurely in driDestroyDisplay. See https://bugs.freedesktop.org/show_bug.cgi?id=13541 .
* Revert "[965] Add missing flagging of new stage programs for updating stage ↵Eric Anholt2007-12-055-94/+53
| | | | | | | | | state." I had forgotten part of brw_state_cache.c that made this fix not relevant for master (last_addr comparison and flagging based on cache id). This reverts commit a4642f3d18bdaebaba31e5dee72fe5de9d890ffb.
* [965] Add missing flagging of new stage programs for updating stage state.Eric Anholt2007-12-055-53/+94
| | | | | | Otherwise, choosing a new program wouldn't necessarily update the state, and and an old program could be executed, leading to various sorts of pretty pictures or hangs.
* Fix endianness bug in _mesa_texstore_argb8888()Brian2007-12-051-11/+13
| | | | | | | On big-endian, storing in _mesa_texformat_argb8888 format produced wrong res Also, clean-up nearby code to match. picked from gallium-0.1 branch
* Don't Swap buffer if a DRIDrawable is entirely obscuredXiang, Haihao2007-12-051-0/+3
| | | | by another window.
* Undo changes made to the toyball shaders in commit ↵Brian2007-12-042-8/+6
| | | | | | d19d0596daf004b56d80f78fa1a329b43c2ebf94 This demo produces the expected results again.
* fix span->facing computation and gl_FrontFacing initializationBrian2007-12-042-6/+5
|
* Fix gl_FrontFacing compilation problemBrian2007-12-041-1/+2
|
* added culling/wireframe optionsBrian2007-12-041-13/+57
|
* Use -Bsymbolic for linking all shared objects.Michel Dänzer2007-12-041-2/+7
| | | | | | Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10132 . Also remove comment about SONAME, as SONAME only applies to shared libraries.
* [965] Change constant buffer from state structs to plain batch emission.Eric Anholt2007-12-031-40/+22
| | | | Reduces diff to branch which has a relocation in this state emit.
* fix DD_TRI_LIGHT_TWOSIDE bug (#13368)Brian2007-12-031-4/+4
|
* Fix the library name in glw.pcDan Nicholson2007-12-031-1/+1
| | | | Fix a copy and paste error s/GLU/GLw/ in glw.pc.
* glut doesn't need -lXtBrian2007-12-031-1/+1
|
* added missing quote charBrian2007-12-031-1/+1
|
* i915: Fix up state changes for i8xx.Michel Dänzer2007-12-031-6/+56
|
* [intel] Move batch bo_unmap from TTM code to shared, and add more asserts.Eric Anholt2007-11-303-2/+8
|
* [intel] Add failure path printfs to relocation code and some comments.Eric Anholt2007-11-301-3/+32
|