summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965
AgeCommit message (Collapse)Author
2008-02-04[965] Convert brw_draw_upload to managing dri_bos, not gl_buffer_objects.Eric Anholt
This helps us avoid a bunch of mess with gl_client_arrays that we filled with unused data and confused readers.
2008-02-04[965] Remove dead structure in brw_draw_upload.c.Eric Anholt
2008-02-04[965] Move temporary vbo array storage into the function using it.Eric Anholt
2008-02-04[965] Remove dead brw_vertex_element members.Eric Anholt
2008-02-04[965] Add a wrapper around interleaved copy_array_to_vbo_array for profiling.Eric Anholt
If compiled with optimization, it shouldn't appear at all, and helps me for now.
2008-02-04[965] Avoid overloaded use of the term 'input' for clarity.Eric Anholt
2008-02-04[965] Replace VEP/VBP state structures with inline batch emits.Eric Anholt
2008-02-03i965: fix potential NULL pointer dereference. The third regionXiang, Haihao
isn't created at all for 965
2008-02-01[965] Fix indentation.Eric Anholt
2008-02-01[965] Replace XXX comment about constant swizzle with an assert.Eric Anholt
2008-02-01[965] Fix some indentation in brw_vs_tnl.c.Eric Anholt
2008-02-01i965: Don't emit state if fall back to software rendering. fix #14116Xiang, Haihao
2008-01-31[i965] renable regative rhw testZou Nan hai
2008-01-29i965: new integrated graphics chipset supportXiang, Haihao
2008-01-25i965: valid message length includes message header.Xiang, Haihao
2008-01-25i965: re-define the type of reg.loopcount.Xiang, Haihao
avoid some issues such that 1 + (-2) gets a big positive value.
2008-01-19[965] Fix WM unit cache keying that broke line stipple and polygon offset.Eric Anholt
2008-01-18[965] Do a little bit rotation in state hash to reduce collisions.Eric Anholt
This was around 3% improvement in OA.
2008-01-17[intel] Make the no_rast option be standard driconf instead of INTEL_NO_RAST.Eric Anholt
2008-01-17[965] Fix whitespace in c9b1fef0c9c5018efd825c42782f19ad0618696aEric Anholt
2008-01-17[965] Fix potential segfaults from bad realloc.Eric Anholt
C has no order of evaluation restrictions on function arguments, so we attempted to realloc from new-size to new-size.
2008-01-17i965: always call dri_emit_reloc when creating clip unit stateXiang, Haihao
This fix ensures it gets the starting location of the clip program if a clip unit state is same as a unit which is created when metaops is actived and it doesn't impact metaops because the clip state offset isn't emitted when metaops is actived.
2008-01-16[965] Fix inversion of SLT/SGE results in vertex programs.Eric Anholt
The WM code had this right, so copy its behavior. This reverts a flipping of the arguments to SLT in brw_vs_tnl which came in with the GLSL code that probably occurred to work around the flipped results, and brings the code back in line with t_vp_build.c.
2008-01-16[965] Rename depth_mask in CC key to depth_write, since it's a boolean enable.Eric Anholt
2008-01-16[965] Fix the type of alpha_ref in CC key, fixing ppracer rendering.Eric Anholt
2008-01-15 i965: fix an assert fail in brw_new_batchZou Nan hai
2008-01-14[965] Force a new vertex upload buffer at new batch time.Eric Anholt
Otherwise, we could choose to upload into the temporary VBO that we just fired off to the hardware. Good for a 60% OA performance improvement.
2008-01-10[965] Remove an open-coded memcpy.Eric Anholt
2008-01-10[965] Improve performance by allocating CURBE buffers a page at a time.Eric Anholt
Since each one is only 64b, and kernel allocations are a page anyway, this lets us reduce buffer allocation by packing many CURBEs into one buffer, for each batchbuffer submitted. Improves openarena performance by around 10%.
2008-01-10[intel] Only flush batch when changing draw buffers, not every cliprect update.Eric Anholt
The previous code would reference freed memory on window moves.
2008-01-10[intel] Add more cliprect modes to cover other meanings for batch emits.Eric Anholt
The previous change gave us only two modes, one which looped over the batch per cliprect (3d drawing) and one that didn't (state updeast). However, we really want 4: - Batch doesn't care about cliprects (state updates) - Batch needs DRAWING_RECTANGLE looping per cliprect (3d drawing) - Batch needs to be executed just once (region fills, copies, etc.) - Batch already includes cliprect handling, and must be flushed by unlock time (copybuffers, clears). All callers should now be fixed to use one of these states for any batchbuffer emits. Thanks to Keith Whitwell for pointing out the failure.
2008-01-10i965: fix bug #14002Xiang, Haihao
2008-01-10i965: fix segfault caused by commit e131c46b20241737ceba4856dbe01dcca6dd2c03.Xiang, Haihao
2008-01-09[965] Allow more than one draw_prims per batchbuffer.Eric Anholt
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.
2008-01-09[965] Replace the always_update dirty flag with BRW_NEW_BATCH.Eric Anholt
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).
2008-01-09[intel] Rename lost_hardware vtbl entry to new_batch.Eric Anholt
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.
2008-01-09[965] Remove drawing rect upload, which is handled (better) by the kernel.Eric Anholt
2008-01-09[intel] Clean up cliprect handling in intel drivers.Eric Anholt
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.
2008-01-09[intel] Remove the dead intel->need_flush member.Eric Anholt
2008-01-09[965] Clarify a bit of index buffer upload code.Eric Anholt
2008-01-06Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexesBrian
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.
2008-01-06Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian
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...
2008-01-03[intel] Convert relocations to not be cleared out on buffer submit.Eric Anholt
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.
2008-01-03[965] Fix some missing initialization in WM keys.Eric Anholt
2008-01-02[965] Convert WM unit to use a cache key instead of brw_cache_data.Eric Anholt
2008-01-02[965] Convert VS unit to use a cache key instead of brw_cache_data.Eric Anholt
2008-01-02[965] Convert SF unit to use a cache key instead of brw_cache_data.Eric Anholt
2008-01-02[965] Convert GS unit to use a cache key instead of brw_cache_data.Eric Anholt
2008-01-02[965] Convert clip unit to use a cache key instead of brw_cache_data.Eric Anholt
2008-01-02[965] Convert CC unit to use a cache key instead of brw_cache_data.Eric Anholt