summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Factor out code to do the DRM_I830_GETPARAM ioctl.Kristian Høgsberg2008-01-091-28/+23
|
* Fold DoBindContext() helper function into driBindContext().Kristian Høgsberg2008-01-091-23/+11
|
* [intel] Re-allocate backing buffer objects on BufferData.Eric Anholt2008-01-091-9/+2
| | | | | | | | This may allow better concurrency (noop in openarena performance now), but is also important for the previous commit -- otherwise, we may end up with BufferData, draw_prims, BufferData and the draw_prims would use the new VBO data instead of old. This could still occur with user-supplied VBOs and poor use of MapBuffer without BufferData.
* [965] Allow more than one draw_prims per batchbuffer.Eric Anholt2008-01-093-7/+17
| | | | | | | | The comment about (vbo)_exec_api.c appeared to be stale, as the VBO code seems to only use non-named VBOs (not actual VBOs) or freshly-allocated VBO data. This brings a 2x speedup to openarena, because we can submit nearly-full batchbuffers instead of many 450-byte ones.
* [965] Replace the always_update dirty flag with BRW_NEW_BATCH.Eric Anholt2008-01-095-15/+27
| | | | | | | This allows us to avoid re-emitting some state when validate_state happens multiple times per batchbuffer. Even though we flush batch per primitive currently, that may still happen already if the primitive changed (this should probably be fixed as well).
* [intel] Rename lost_hardware vtbl entry to new_batch.Eric Anholt2008-01-099-35/+18
| | | | | | | Both drivers have ended up relying on lost_hardware being called after each batch buffer, so update the name. This removes one of the calls on 965 whic h was outside of the batchbuffer handling code and just duplicating what had already happened through batchbuffer handling.
* [965] Remove drawing rect upload, which is handled (better) by the kernel.Eric Anholt2008-01-093-53/+0
|
* [intel] Clean up cliprect handling in intel drivers.Eric Anholt2008-01-095-73/+57
| | | | | | | | | In particular, batch buffers are no longer flushed when switching from CLIPRECTS to NO_CLIPRECTS or vice versa, and 965 just uses DRM cliprect handling for primitives instead of trying to sneak in its own to avoid the DRM stuff. The disadvantage is that we will re-execute state updates per cliprect, but the advantage is that we will be able to accumulate larger batch buffers, which were proving to be a major overhead.
* [intel] Remove the dead intel->need_flush member.Eric Anholt2008-01-096-7/+1
|
* [965] Clarify a bit of index buffer upload code.Eric Anholt2008-01-091-1/+4
|
* fix bug 13978: glDrawBuffersARB() didn't set all necessary stateBrian2008-01-091-0/+2
|
* [intel] Add TTM bufmgr debug for type or offset migration of buffers.Eric Anholt2008-01-081-9/+57
|
* i915: Keith Whitwell's swizzling TEX patch. fix #8283Xiang, Haihao2008-01-074-13/+83
|
* Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexesBrian2008-01-0634-216/+230
| | | | | | | Each array element is now a BUFFER_x token rather than a BUFFER_BIT_x bitmask. The number of active color buffers is specified by _NumColorDrawBuffers. This builds on the previous DrawBuffer changes and will help with drivers implementing GL_ARB_draw_buffers.
* Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian2008-01-0626-225/+220
| | | | | | | | | | | These fields are no longer indexed by shader output. Now, we just have a simple array of renderbuffer pointers. If the shader writes to gl_FragData[i], send those colors to the N _ColorDrawBuffers. Otherwise, replicate the single gl_FragColor (or the fixed-function color) to the N _ColorDrawBuffers. A few more changes and simplifications can follow from this...
* fix depth/1 typo in glTexImage3D proxy codeBrian2008-01-051-3/+3
|
* check if span length > 0 before calling _swrast_write_rgba_span()Brian2008-01-051-5/+7
|
* i915: don't validate PS program when falling back to softwareXiang, Haihao2008-01-041-1/+2
| | | | rendering. fix #12786
* intel: some initialization for dri_bufmgr_ttmXiang, Haihao2008-01-041-0/+2
|
* [intel] Add a single-entry relocation buffer cache.Eric Anholt2008-01-031-26/+53
| | | | | | | By avoiding the repeated relocation buffer creation/map/unmap/destroy for each new batch buffer, this improves OpenArena framerates by 30%. Caching batch buffers themselves doesn't appear to be a significant performance win over this change.
* [intel] Convert relocations to not be cleared out on buffer submit.Eric Anholt2008-01-0313-417/+388
| | | | | | | | We have two consumers of relocations. One is static state buffers, which want the same relocation every time. The other is the batchbuffer, which gets thrown out immediately after submit. This lets us reduce repeated computation for static state buffers, and clean up the code by moving relocations nearer to where the state buffer is computed.
* [965] Fix some missing initialization in WM keys.Eric Anholt2008-01-031-0/+6
|
* fix fd.o bug #13761Zou Nan hai2008-01-031-2/+2
| | | | MRD computation is now changed in mesa core
* [965] Convert WM unit to use a cache key instead of brw_cache_data.Eric Anholt2008-01-022-80/+126
|
* [965] Convert VS unit to use a cache key instead of brw_cache_data.Eric Anholt2008-01-021-26/+63
|
* [965] Convert SF unit to use a cache key instead of brw_cache_data.Eric Anholt2008-01-021-47/+105
|
* [965] Convert GS unit to use a cache key instead of brw_cache_data.Eric Anholt2008-01-021-23/+62
|
* [965] Convert clip unit to use a cache key instead of brw_cache_data.Eric Anholt2008-01-021-21/+64
|
* [965] Convert CC unit to use a cache key instead of brw_cache_data.Eric Anholt2008-01-021-59/+166
|
* [965] Convert surface state to use a cache key instead of brw_cache_data.Eric Anholt2008-01-021-48/+87
|
* [965] Convert sampler state to use a cache key instead of brw_cache_data.Eric Anholt2008-01-022-59/+101
|
* Revert "[intel] Use the memory type mask containing the caching flags."Eric Anholt2008-01-021-1/+1
| | | | | | | This reverts commit 8bb9ae3693362a302206255c61f512d942df9bbf. Validating our kernel buffers with the caching off in flags but on in mask means that the kernel migrates the buffer to be uncached, which is undesired.
* [intel] Use the memory type mask containing the caching flags.Eric Anholt2008-01-021-1/+1
|
* Set correct flags mask when validating buffers.Keith Packard2008-01-021-22/+22
| | | | | | | | | | The 'mask' value used in the validation operation specifies which of the 'flags' bits are being modified. Buffer validation wants to pass the memory type and access mode (rwx) to the kernel so that the buffer will be placed correctly, and so that the right kind of fence will be created (read vs write). That means we actually want a constant mask for these operations, and not something computed from the bits coming in. The constant we want is DRM_BO_MASK_MEM | DRM_BO_FLAG_READ | DRM_BO_FLAG_WRITE | DRM_BO_FLAG_EXE.
* [965] Improve performance by including reloc target buffer pointers in keys.Eric Anholt2008-01-021-4/+11
| | | | | Without this, the WM binding tables would all collide, for example. Improves openarena performance by around 2%.
* additional stub functionsBrian2008-01-021-0/+4
|
* additional GL_COLOR_ATTACHMENTx_EXT cases (bug 13767)Brian2008-01-021-0/+8
|
* i915: Needn't adjust pixel centers. fix #12944Xiang, Haihao2008-01-022-4/+4
|
* Revert "r300: fix bug with maniadrive rendering"Dave Airlie2008-01-021-13/+13
| | | | | | this is correct, there is another issue with sw fallbacks This reverts commit cc50edbca2fd3111f9987d4117fa6656599d79dc.
* remove unneeded conditionalBrian2008-01-011-2/+3
|
* fix vbo display list memleak upon context destructionBrian2008-01-012-0/+16
|
* fix glUniform4f typoBrian2008-01-011-1/+1
|
* additional GL_COLOR_ATTACHMENTx_EXT cases (bug 13767)Brian2008-01-011-0/+8
|
* Convert to 0/1 when setting boolean uniformsBruce Merry2008-01-012-1/+47
| | | | Also add some extra tests to the shader_api regression tests
* Make use of count in _mesa_uniform_matrixBruce Merry2008-01-011-13/+25
|
* Add a test program to test for assorted bugs in shader_api.cBruce Merry2008-01-013-0/+302
|
* More fixes to shader_apiBruce Merry2008-01-011-7/+16
| | | | | | - return GL_INVALID_OPERATION instead of GL_INVALID_VALUE if location is bad - correct the type-checking of uniforms from my previous commit - accept location of -1 in _mesa_uniform_matrix
* Fix several bugs relating to uniforms and attributes in GLSL APIBruce Merry2008-01-011-11/+73
| | | | | | | | | | | - fix sizes for GL_FLOAT_MAT2x3 and GL_FLOAT_MAT4x3 in sizeof_glsl_type - fix size returns in _mesa_get_active_attrib - fix out-of-bounds array access to vec_types in _mesa_get_active_attrib - fix queries of matrix uniforms in _mesa_get_uniformfv - fix _mesa_get_uniformfv to only return one base, even from an array - allow location == -1 in _mesa_uniform - validate types in _mesa_uniform - allow array overruns in _mesa_uniform
* added 'get' info for framebuffer object tokensBrian2008-01-012-8/+18
|
* add 'Get' info for MAX_3D_TEXTURE_SIZE (for bug 13811)Brian2008-01-011-1/+3
|