mesa/src
Kenneth Graunke e980fe6071 i965: Fix reference counting in new basevertex upload code.
In the non-indirect draw case, we call intel_upload_data to upload
gl_BaseVertex.  It makes brw->draw.draw_params_bo point to the upload
buffer, and increments the upload BO reference count.

So, we need to unreference it when making brw->draw.draw_params_bo point
at something else, or else we'll retain a reference to stale upload
buffers and hold on to them forever.

This also means that the indirect case should increment the reference
count on the indirect draw buffer when making brw->draw.draw_params_bo
point at it.  That way, both paths increment the reference count, so
we can safely unreference it every time.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "10.3" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
2014-09-12 16:23:02 -07:00
..
egl egl: Restrict multiplication in calloc arguments to use compile-time constants 2014-09-03 18:37:02 -07:00
gallium freedreno: "fix" problems with excessive flushes 2014-09-12 18:35:39 -04:00
gbm gbm: Log at least one dlerror() when we fail to open any drivers. 2014-07-30 22:31:30 -07:00
getopt
glsl glsl: allow precision qualifier on sampler arrays 2014-09-11 10:41:00 +03:00
glx include: move sarea.h next to it's only user 2014-08-21 21:47:37 +01:00
gtest gtest: Update to 1.7.0. 2014-04-14 00:06:53 -07:00
hgl gallium/targets: Break haiku state_tracker out to own directory 2014-08-28 21:27:29 -04:00
loader loader: fds can be 0 2014-09-06 10:24:25 +10:00
mapi glapi: Add KHR_debug functions to check_table test 2014-09-04 12:29:14 +10:00
mesa i965: Fix reference counting in new basevertex upload code. 2014-09-12 16:23:02 -07:00
util util: remove ralloc_test 2014-08-08 19:23:25 +01:00
Makefile.am automake: handle gallium SUBDIRs in gallium/Makefile 2014-08-13 00:46:54 +01:00
SConscript util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00