mesa/src
Kenneth Graunke 20104f1926 i965: Don't use PREAD for glGetBufferSubData().
Just map the buffer and memcpy.  This will do a CPU mmap, which should
be reasonably efficient, and doing this gives us full control over the
domains and caching instead of leaving it to the kernel.

This prevents regressions on Braswell in the next commit.  Specifically
GL45-CTS.shader_atomic_counters.basic-buffer-operations.  Because async
maps start skipping set-domain, the pread thought everything was nicely
still in the CPU domain, and returned stale data.

v2: Use _mesa_error_no_memory() if the map fails instead of crashing.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-07-11 13:26:46 -07:00
..
amd radv/ac: drop setting xnack 2017-07-09 22:21:43 +01:00
broadcom vc4: automake: include vc4_cl_dump.h in 2017-07-04 09:37:19 +02:00
compiler spirv: Fix reaching unreachable for compare exchange on images 2017-07-10 14:13:37 -07:00
egl egl: android: Fix potential use of unitialized variable 2017-07-05 18:49:22 +01:00
gallium swr: build driver proper separate from rasterizer 2017-07-11 13:38:20 -05:00
gbm gbm: add XBGR8888 support for dumb buffers 2017-06-30 08:44:19 +01:00
getopt
glx egl: turn one more boolean int into a bool 2017-06-21 21:42:14 +01:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel intel: add number of subslices to device info 2017-07-11 16:14:57 +01:00
loader egl: turn one more boolean int into a bool 2017-06-21 21:42:14 +01:00
mapi Update Khronos-supplied headers 2017-06-30 15:29:50 +02:00
mesa i965: Don't use PREAD for glGetBufferSubData(). 2017-07-11 13:26:46 -07:00
util gallium: use "ull" number suffix to keep the QtCreator parser happy 2017-07-10 22:44:48 +02:00
vulkan Android: vulkan: fix build error due to extra ) 2017-06-08 07:26:04 -05:00
Makefile.am build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00
SConscript build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00