History log of /external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0e723b135bfd59868c92c3ae243f1adaedaec3a5 12-Jul-2012 Eric Anholt <eric@anholt.net> intel: Add performance debug for some common GPU stalls.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
16060531baa837304eb7a427d0cdbeccd95cf09a 03-Jul-2012 Kenneth Graunke <kenneth@whitecape.org> i965: Use the blitter in intel_bufferobj_subdata for busy BOs on Gen6+.

Previously we only did this pre-Gen6, and used pwrite on Gen6+.
In one workload, this cuts significant amount of overhead.

v2: Simplify the function based on Eric's suggestions.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
f9b3e257d19587f4b9fae31610df857b10d69d1b 05-Jul-2012 Eric Anholt <eric@anholt.net> i965: Revert the VBOs-in-system-memory hack.

It didn't change performance on Lightsmark or Nexuiz, which both used
DYNAMIC_DRAW buffers, but it was killing performance (40% CPU wasted pwriting
buffers) on a closed-source app we're looking at.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
9bd38f3c674b91a89d9b572c5722faa00fb86654 25-Feb-2012 Eric Anholt <eric@anholt.net> intel: Make use of the new GPU-unsynchronized map functionality in libdrm.

Improves Unigine Tropics performance at 1024x768 by 2.06236% +/-
0.50272% (n=11).

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
83088693116b65d1b5fcdc0a4d7d432b5448d092 25-Feb-2012 Eric Anholt <eric@anholt.net> intel: Drop the tracking of bo_map vs bo_map_gtt for unmapping.

drm_intel_bo_unmap() supports both in the current libdrm version.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
f97da4ed71f723bc895ca38b81ac13afe3b7175a 25-Feb-2012 Eric Anholt <eric@anholt.net> i965: Avoid flushing the batch for busy BOs for ARB_mbr with INVALIDATE_BUFFER.

Unigine Tropics uses INVALIDATE_BUFFER and not UNSYNCHRONIZED to reset
the buffer object when its streaming wraps. Don't penalize it by
flushing the batch at the wrap point, just allocate a new BO and get
to using it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
f0ea46790f8f4df9a39b0cfab5c5f1bf02c136fc 18-Jan-2012 Ian Romanick <ian.d.romanick@intel.com> mesa: Set default access flags based on the run-time API

The default access flags for OpenGL ES (via GL_OES_map_buffer) and
desktop OpenGL are different. The code previously tried to handle
this, but the decision was made at compile time. Since the same
driver binary can be used for both OpenGL ES and desktop OpenGL, the
decision must be made at run-time.

This should fix bug #44433. It appears that the test case does
various map and unmap operations and inspects the state of the buffer
object around each. When it sees that GL_BUFFER_ACCESS does not match
its expectations, it fails.

NOTE: This is a candidate for release branches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44433
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
43f12e5eb8dbbe57344188ab7cacab8c7fe91da1 28-Dec-2011 Eric Anholt <eric@anholt.net> intel: Re-allow blitting glCopyBufferSubData() on gen >= 6.

This was disabled a year ago due to not having a story for handling
the blitter at the time. We're fine with using the blitter now.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
15e309cf84444a8f9ce7f7c86f0a0f391721bc50 28-Dec-2011 Eric Anholt <eric@anholt.net> intel: Fix bad read/write flags on self-copies for glCopyBufferSubData().

We didn't consume these flags in any way that would produce a
functional difference, but we might have some day.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
da2816a45e6e3a33246a341fee72e6f893f315d9 16-Nov-2011 Chad Versace <chad.versace@linux.intel.com> intel: Replace intel_renderbuffer::region with a miptree [v3]

Essentially, this patch just globally substitutes `irb->region` with
`irb->mt->region` and then does some minor cleanups to avoid segfaults
and other problems.

This is in preparation for
1. Fixing scatter/gather for mipmapped separate stencil textures.
2. Supporting HiZ for mipmapped depth textures.

As a nice benefit, this lays down some preliminary groundwork for easily
texturing from any renderbuffer, even those of the window system.

A future commit will replace intel_mipmap_tree::hiz_region with a miptree.

v2:
- Return early in intel_process_dri2_buffer_*() if region allocation
fails.
- Fix double semicolon.
- Fix miptree reference leaks in the following functions:
intel_process_dri2_buffer_with_separate_stencil()
intel_image_target_renderbuffer_storage()

v3:
- [anholt] Fix check for hiz allocation failure. Replace
``if (!irb->mt)` with ``if(!irb->mt->hiz_region)``.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
2e5a1a254ed81b1d3efa6064f48183eefac784d0 07-Oct-2011 Kenneth Graunke <kenneth@whitecape.org> intel: Convert from GLboolean to 'bool' from stdbool.h.

I initially produced the patch using this bash command:
for file in {intel,i915,i965}/*.{c,cpp,h}; do [ ! -h $file ] && sed -i
's/GLboolean/bool/g' $file && sed -i 's/GL_TRUE/true/g' $file && sed -i
's/GL_FALSE/false/g' $file; done

Then I manually added #include <stdbool.h> to fix compilation errors,
and converted a few functions back to GLboolean that were used in core
Mesa's function pointer table to avoid "incompatible pointer" warnings.

Finally, I cleaned up some whitespace issues introduced by the change.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Chad Versace <chad@chad-versace.us>
Acked-by: Paul Berry <stereotype441@gmail.com>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
8004a1cb95b8a195f3f4bbaa8d39d2f3297167de 22-Sep-2011 Eric Anholt <eric@anholt.net> intel: Rename region->buffer to region->bo, and remove accessor function.

We call all the other drm_intel_bo pointers in intel/*.h "bo", so this
one was rather out of place.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
bc0335fc0e0bd6a777ef16ad5245d35ccf7adcf6 21-Sep-2011 Eric Anholt <eric@anholt.net> intel: Remove the pbo zero-copy code.

There were notes about the possibility of slowdowns due to zcopy from
a PBO due to thrashing around of the region. Slowdowns are even more
likely now that textures are generally tiled, which a zcopy wouldn't
get. Additionally, there were no checks on the buffer size to ensure
that the hardware-required rounding was present, which could result in
GPU hangs on large zcopy PBOs.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
5b6264b42ec7e76565695b452801b775f820955e 26-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> intel: Silence "warning: unused parameter ‘intel’"

The intel_context was not used in any of these functions, so remove it.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
fccbcb5ceb8ca7a118701cb46b16662ac858a437 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> intel: Silence several "warning: unused parameter"

Also clean-up some of the naming, etc. in
intel_buffer_object_purgeable. 'intel' is usually used as the name of
an intel_context pointer, and intel_obj is usually used as the name of
an intel_*_obj pointer. These changes were suggested by Eric Anholt.

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
28249bd260f4c52badf3eb61ade2744604b21bca 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Eliminate dd_function_table::MapBuffer

Replace all calls to dd_function_table::MapBuffer with appropriate
calls to dd_function_table::MapBufferRange, then remove all the cruft.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
6183edc070e2d3dce36ab5ee7aee72b0c38775a7 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::FlushMappedBufferRange

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
f973be59fa293ea75f05cdbac2372360deb5e186 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> intel: Correctly check for read-only mappings in intel_bufferobj_map_range

The old code was an obvious cut-and-paste fail from intel_bufferobj_map.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
4ddae2fb666c86e3267ef6e3d2699f9bfb40d206 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::MapBufferRange

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
6c8aa3491a19535e8c39a47a3766bf8524e80582 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::GetBufferSubData

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
92f3fca0ea429dcf07123e63447449db53308266 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::BufferSubData

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
12d924c5ae14a1c6a05a3dcae29b77e7668e227d 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::MapBuffer

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
56f0c00f125ee75caeadc1c9e8cab8a488635e5e 22-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove target parameter from dd_function_table::UnmapBuffer

No driver used that parameter, and most drivers ended up with a bunch
of unused-parameter warnings because it was there.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
fa351bd2e0aecccd5ed6ef8744d5ba4a6dbf5d2c 08-Aug-2011 Ben Widawsky <ben@bwidawsk.net> intel: GetBuffer fix

After copy buffer on preGEN6, it is necessary to wait for the blit to
complete before returning data to the user.

This should fix the piglit test: copy_buffer_coherency (pre-GEN6).

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
1546291e5b8d3ac02f5bee38252f9d479bcf95cc 03-Mar-2011 Chris Wilson <chris@chris-wilson.co.uk> i965: Align index to type size and flush if the type changes

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
5ce0f7f10908a0636900bae783cb426a6c607673 24-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: Reset the buffer offset after releasing reference to packed upload

Fixes oglc/vbo(basic.bufferdata)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34603
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
c625aa19cb53ed27f91bfd16fea6ea727e9a5bbd 18-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: extend current vertex buffers

If the next vertex arrays are a (discontiguous) continuation of the
current arrays, such that the new vertices are simply offset from the
start of the current vertex buffer definitions we can reuse those
defintions and avoid the overhead of relocations and invalidations.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
a07e4811794051dc65187d17b7f85e340e61854e 18-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: Use specified alignment for writes into the upload buffer

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
3630d5b69afcecc3142d2c4897835175886f4bd8 11-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: combine short memcpy using a temporary allocated buffer

Using a temporary buffer for large discontiguous uploads into the common
buffer and a single buffered upload is faster than performing the
discontiguous copies through a mapping into the GTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
8d68a90e225d831a395ba788e425cb717eec1f9a 10-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: use pwrite for batch

It's faster. Not only is the memcpy more efficiently performed in the
kernel (making up for the system call overhead), but by not using mmap
we remove the greater overhead of tracking the vma of every batch.

And it means we can read back from the batch buffer without incurring
the cost of a uncached read through the GTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
8a9e67b8df9836408270a4bc3660ec45b622ae56 10-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: Buffered upload

Rather than performing lots of little writes to update the common bo
upon each update, write those into a static buffer and flush that when
full (or at the end of the batch). Doing so gives a dramatic performance
improvement over and above using mmaped access.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
40ee15407ab626f466a12c239fc39cb872bec804 09-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: Replace the bo for a complete update

Rather than performing a blit to completely overwrite a busy bo, simply
discard it and create a new one with the fresh data.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
abb37861d9f3310fe2d16194d893682092f41087 08-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> i965: Combine vb upload buffer with the general upload buffer

Reuse the new common upload buffer for uploading temporary indices and
rebuilt vertex arrays.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
e476e122207e6195a16a8c7d2cab90eeba227934 08-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: Pack dynamic draws together

Dynamic arrays have the tendency to be small and so allocating a bo for
each one is overkill and we can exploit many efficiency gains by packing
them together.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
d0809d7b15ba58c05bb0b63128c9cf7042304cd2 08-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: Use system memory for DYNAMIC_DRAW source objects

Dynamic draw buffers are used by clients for temporary arrays and for
uploading normal vertex arrays. By keeping the data in memory, we can
avoid reusing active buffer objects and reallocate them as they are
changed. This is important for Sandybridge which can not issue blits
within a batch and so ends up flushing the batch upon every update, that
is each batch only contains a single draw operation (if using dynamic
arrays or regular arrays from system memory).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
45a56e4730a74a012ad712fd9b6013d900b04742 09-Jan-2011 Vinson Lee <vlee@vmware.com> intel: Include mfeatures.h in files that perform feature tests.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
4af293741635aea8630e8734a8b4caf58047e91d 18-Oct-2010 Eric Anholt <eric@anholt.net> i965: Avoid blits in BufferCopySubdata on gen6.

Fixes glean/bufferObject.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
66800a04e512ab02ddde7bdb564feb0a77b2f575 18-Oct-2010 Eric Anholt <eric@anholt.net> i965: Fix assertion failure on gen6 BufferSubData to busy BO.

Fixes fbo-blit and probably several other tests.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
27e6552a8fb0fd49be84fbaf9504e8371033db23 20-Aug-2010 Eric Anholt <eric@anholt.net> intel: Don't try to do work for BufferSubData with a size of 0.

If we hit the linear blit path, we'd come up with a pitch of 0, then
divide by zero.

Fixes vbo-subdata-zero, made for bug #28931 (warsow).
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
34474fa4119378ef9fbb9fb557cc19c0a1ca1f7e 07-Jun-2010 Eric Anholt <eric@anholt.net> intel: Change dri_bo_* to drm_intel_bo* to consistently use new API.

The slightly less mechanical change of converting the emit_reloc calls
will follow.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
c4775a27e3aaa2006b98f225387499b79bc609ef 10-May-2010 Kristian Høgsberg <krh@bitplanet.net> intel: Drop intelFlush()

Now that intel_flush() deosn't use the needs_mi_flush argument, we can
finally drop one of the two flush functions.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
6ba31fb2dbe6a90e6d60a49b3e5bd2edce05241d 05-Mar-2010 Chris Wilson <chris@chris-wilson.co.uk> Merge branch 'object-purgeable'

Acked-by: Brian Paul <brianp@vmware.com>
755915fa5d9ea782d142b3f8755b62d6de28fe29 13-Jan-2010 Chris Wilson <chris@chris-wilson.co.uk> APPLE_object_purgeable: intel

Implement support for purgeable objects by using the GEM madvise ioctl.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
bb35000b4b6dfe60048b2f5d60bc102c4a7fd791 05-Mar-2010 Eric Anholt <eric@anholt.net> intel: Remove non-kernel-exec-fencing support.

Shaves 60k off the driver from removing the broken spans code. This
means we now require 2.6.29, which seems fair given that it's a year
old and we've removed support for non-KMS already in the last release
of 2D.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
32f2fd1c5d6088692551c80352b7d6fa35b0cd09 19-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
650e02003fbb5511ec758d993b7ec0a302ee2235 01-Dec-2009 Ian Romanick <ian.d.romanick@intel.com> Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
progs/util/shaderutil.c
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/main/version.h
b12ca6b87b55e3359e81d5a3be380c860478e353 24-Nov-2009 Ian Romanick <ian.d.romanick@intel.com> i915: Initialize Length and Offset fields when mapping a buffer object

This fixes an assertion failure in _mesa_MapBufferARB.

Fixes bugzilla #25253.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
3c05c1eb6326dc28e8ab073d179eb669e5699f4b 12-Nov-2009 Eric Anholt <eric@anholt.net> intel: When subdataing a busy buffer, use a temporary and blit in.

This cuts a massive number of waits in ET:QW, which uses a VBO ringbuffer.
Unfortunately it doesn't BufferData when wrapping back to 0, so we can't
be clever with tracking what's been initialized.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
193dddb04e26d4e6ccefef03ce7a620606d6de5f 02-Oct-2009 Eric Anholt <eric@anholt.net> intel: Use new drm_intel_bo_references() to avoid flushing.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
eeb7e04da64fdae3a40b1afdcde71dcded2481f3 28-Sep-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
126d62edd18f22ff9e744efea81e0383cd0a19c5 25-Sep-2009 Eric Anholt <eric@anholt.net> i915: Fix GetBufferSubData in the case of a system-memory BO.

Bug #23760 (crashes in wine)
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
cc8084932cc552587e3036dbbf62c77db3b4a08e 25-Sep-2009 Eric Anholt <eric@anholt.net> intel: Flush the batch when we're about to subdata into a VBO.

This fixes the clears in openarena with the new metaops clear code, and
the new piglit vbo-subdata-sync test.

Bug #23857.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
2f6d2a9e27f8582591dc60655f7d7b14d7552bbc 03-Sep-2009 Brian Paul <brianp@vmware.com> mesa: change ctx->Driver.BufferData() to return GLboolean for success/failure

Return GL_FALSE if we failed to allocate the buffer. Then raise
GL_OUT_OF_MEMORY in core Mesa.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
ec32ef12b3a496008cc982acfefca570a88e92eb 02-Sep-2009 Eric Anholt <eric@anholt.net> intel: Add support for FlushMappedBufferRange for ARB_map_buffer_range.

This should help for the usage by the VBO module, where we would upload
the whole remaining chunk of the buffer for a series of range maps that should
cover just a segment of it.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
82313eed01b191320721dab63d353a1634f89231 02-Sep-2009 Eric Anholt <eric@anholt.net> intel: Sync a synchronized READ_BIT map buffer range with GL drawing to it.

It's probably uncommon, but would obviously have gone wrong.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
aecba6b1c8c6a82018183460450f5a4bf53d02ce 02-Sep-2009 Eric Anholt <eric@anholt.net> intel: Move MapBufferRange mesa state setting up to cover the 915 case.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
5353961344dd75f839cfee50f226497171725cce 01-Sep-2009 Brian Paul <brianp@vmware.com> intel: fix incorrect parameter type for intel_bufferobj_map_range()
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
a1e869b417745175e82377934619231363b1caba 01-Sep-2009 Brian Paul <brianp@vmware.com> intel: set Length/Offset fields in intel_bufferobj_map()
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
28c159d61461dab0963860725b77fc56566838fa 31-Aug-2009 Brian Paul <brianp@vmware.com> intel: clear buffer fields in intel_bufferobj_unmap()
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
2d5c74fac3cc0f9d45a9e11b2fcdea1bc67928c4 27-Aug-2009 Eric Anholt <eric@anholt.net> intel: Add support for GL_ARB_map_buffer_range.

Passes glean's bufferObject test, and should provide good performance in the
cases applications are expected to use.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
60b072d49fd2a1b2bf59442ae7209379152b1500 28-Aug-2009 Eric Anholt <eric@anholt.net> intel: Add support for ARB_copy_buffer.

Passes glean's bufferObject test for this extension.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
ae1bfb6427cc10a851c80e020cbdc210fe238d85 03-Jul-2009 Eric Anholt <eric@anholt.net> intel: Flush when mapping buffer objects so writes don't get reordered.

While GEM covers this for execution it knows about, it doesn't know about
the batchbuffer we're preparing. Fixes piglit vbo-map-remap.c testcase.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
57a06d3a48c9af1067ec05e3ad96c58f4b9b99be 30-Jun-2009 Eric Anholt <eric@anholt.net> i915: Fix assertion failure on remapping a non-BO-backed VBO.

Failure to set the obj->Pointer back to null tripped up the assertion.
Bug #22428.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
c72261f2a886e1f53025c2cf4b38b33ccfd62857 30-Jun-2009 Eric Anholt <eric@anholt.net> i915: Fix assertion failure on remapping a non-BO-backed VBO.

Failure to set the obj->Pointer back to null tripped up the assertion.
Bug #22428.
(cherry picked from commit 57a06d3a48c9af1067ec05e3ad96c58f4b9b99be)
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
ff3da0966fc91cd5bcfed994e5edadbf25903c47 02-Jun-2009 Eric Anholt <eric@anholt.net> i915: Don't put VBOs in graphics memory unless required for an operation.

This saves doing swtnl from uncached memory, which is painful. Improves
clutter test-text performance by 10% since it started using VBOs.
(cherry picked from commit a945e203d4fe254593bc0c5c5d6caca45e65f9f7)
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
2770107d87ccfd558480c44cd90a75524bdea738 10-May-2009 Eric Anholt <eric@anholt.net> intel: Map write-only buffer objects through the GTT when possible.

This looks to be a win of a few percent in cairogears with new vbo code,
thanks to not polluting caches.
(cherry picked from commit aa422b262509bc0763a50f63a51a1730139ea52f)
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
bc5c40d7d99a51f5b6080bf85080e4984e528dfd 24-Jun-2009 Brian Paul <brianp@vmware.com> intel: fix additional merge conflicts missed in previous commit
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
a04af335a42ce3b28e59ff9b85b2bd433a9d7b12 24-Jun-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch'

Conflicts:

src/mesa/drivers/dri/i915/i915_tex_layout.c
src/mesa/drivers/dri/i965/brw_wm_glsl.c
src/mesa/drivers/dri/intel/intel_buffer_objects.c
src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
src/mesa/drivers/dri/intel/intel_pixel_draw.c
src/mesa/main/enums.c
src/mesa/main/texstate.c
src/mesa/vbo/vbo_exec_array.c
1a7ec317efb2570db3fc5123a2e9b74b54df8147 18-Jun-2009 Chia-I Wu <olvaffe@gmail.com> intel: Fix migration from sys_buffer in intel_bufferobj_buffer.

intel_bufferobj_subdata is called to migrate data from sys_buffer, and
it expects only one of buffer or sys_buffer is non-NULL.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
dd26899ca39111e0866afed9df94bfb1618dd363 19-Jun-2009 Michel Dänzer <daenzer@vmware.com> intel: Fixups for 'mesa: create/destroy buffer objects via driver functions'.

Initialize all driver function hooks before calling _mesa_initialize_context(),
and handle all buffer objects in intel_buffer_object().

Fixes assertion failure when running glxinfo.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
a945e203d4fe254593bc0c5c5d6caca45e65f9f7 02-Jun-2009 Eric Anholt <eric@anholt.net> i915: Don't put VBOs in graphics memory unless required for an operation.

This saves doing swtnl from uncached memory, which is painful. Improves
clutter test-text performance by 10% since it started using VBOs.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
aa422b262509bc0763a50f63a51a1730139ea52f 10-May-2009 Eric Anholt <eric@anholt.net> intel: Map write-only buffer objects through the GTT when possible.

This looks to be a win of a few percent in cairogears with new vbo code,
thanks to not polluting caches.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
156a79f5bd7b3e79f219adf4619ec449a7c0ed1c 06-May-2009 Eric Anholt <eric@anholt.net> intel: Unmap buffers if needed at DeleteBuffer time.

This fixes a crash in glean's pbo test, which tripped over the assert when a
context was destroyed while a buffer was still mapped (Mesa doesn't call
UnmapBuffer in that case). Regression in
c6bde8873fbda6d8467600b7491d8543c75b0509
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
4f4907d69f9020ce17aef21b6431d2dd65e01982 23-Apr-2009 Eric Anholt <eric@anholt.net> intel: Take advantage of GL_READ_ONLY_ARB to map to GEM bo_map write flag.

This is a CPU win in general, but in particular reduces the pain of
Mesa's calculation of min/max indices in DrawElements (wtf?).
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
c6bde8873fbda6d8467600b7491d8543c75b0509 27-Feb-2009 Brian Paul <brianp@vmware.com> intel: remove some unneeded buffer unmap calls

Core mesa now unmaps the buffers if needed in these cases.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
ecadb51bbcb972a79f3ed79e65a7986b9396e757 18-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: added "main/" prefix to includes, remove some -I paths from Makefile.template
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
3628185f566e178a12b493fb89abf52b4b281f99 06-Sep-2008 Eric Anholt <eric@anholt.net> intel: track bufmgr move to libdrm_intel and bufmgr_fake irq emit/wait change.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
f75843a517bd188639e6866db2a7b04de3524e16 24-Aug-2008 Dave Airlie <airlied@linux.ie> Revert "Revert "Merge branch 'drm-gem'""

This reverts commit 7c81124d7c4a4d1da9f48cbf7e82ab1a3a970a7a.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
7c81124d7c4a4d1da9f48cbf7e82ab1a3a970a7a 24-Aug-2008 Dave Airlie <airlied@linux.ie> Revert "Merge branch 'drm-gem'"

This reverts commit 53675e5c05c0598b7ea206d5c27dbcae786a2c03.

Conflicts:

src/mesa/drivers/dri/i965/brw_wm_surface_state.c
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
93f701bc3619864ac6f067d37212e96545a57e16 26-Jun-2008 Eric Anholt <eric@anholt.net> intel: Replace sprinkled intel_batchbuffer_flush with MI_FLUSH or nothing.

Most of these were to ensure that caches got synchronized between 2d (or meta)
rendering and later use of the target as a source, such as for texture
miptree setup. Those are replaced with intel_batchbuffer_emit_mi_flush(),
which just drops an MI_FLUSH. Most of the remainder were to ensure that
REFERENCES_CLIPRECTS batchbuffers got flushed before the lock was dropped.
Those are now replaced by automatically flushing those when dropping the lock.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
4b5b008d54e86ac4f0a2176429d062100978ca8c 03-Jun-2008 Eric Anholt <eric@anholt.net> [intel] Convert drivers to using libdrm bufmgr code.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
ec5ca6844bd52a3a17005314b615f1629f652686 29-Feb-2008 Eric Anholt <eric@anholt.net> [intel] Bug #14575: Unmap buffers when deleting/dataing as required.

Otherwise, we would assertion error when doing the final unreference of the
buffer with an outstanding map (catching the memory leak).
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
4225876bf03dfe6d4b291eed9c00e37e949f8148 09-Jan-2008 Eric Anholt <eric@anholt.net> [intel] Re-allocate backing buffer objects on BufferData.

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.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
3fe9d5cbb7c680c6fb88a2eba678b28a2a06949e 15-Dec-2007 Eric Anholt <eric@anholt.net> [intel] Merge intel_buffer_objects to shared.

965 gains fixed TTM typing of the buffer object buffers and unused PBO
functions, and 915 gains buffer size == 0 fixes from 965.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
7c71ef3a3d0cf2620525f468960cdc76a0fb0d33 12-Dec-2007 Eric Anholt <eric@anholt.net> [intel] Move bufmgr back to context instead of screen, fixing glthreads.

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.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c
77a5bcaff43df8d54e0e0ef833726e4b41d7eb36 07-Nov-2007 Eric Anholt <eric@anholt.net> [intel] Move over files that will be shared with 965-fbo work.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_buffer_objects.c