mesa/src
Marek Olšák ff311df6b5 winsys/amdgpu: remove amdgpu_winsys_bo::num_cs_references to remove atomics
This decreases the CPU time percentage of amdgpu_cs_add_buffer by 50%
on Ryzen 3900X.

We don't need to call amdgpu_bo_is_referenced_by_any_cs
in amdgpu_bo_can_reclaim. The reclaim function is only called for buffers
that have 0 references.

The only downside is that amdgpu_bo_is_referenced_by_cs might be slower
in some very rare cases. Overall the driver overhead is better.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8849>
2021-02-06 05:41:22 +00:00
..
amd radv: zero the bo descriptor array when allocating a new set 2021-02-05 21:02:17 -05:00
android_stub egl/android: implement image cleanup callback 2020-12-15 06:05:27 +00:00
broadcom v3dv: allow a component swizzle in copy_buffer_to_image_shader 2021-02-05 13:31:25 +01:00
compiler spirv: Skip creating unused variables in SPIR-V >= 1.4 2021-02-05 04:52:46 +00:00
drm-shim drm-shim: Fix unused variable warnings from asserts in release build. 2020-08-28 22:45:08 +00:00
egl egl/dri2: enable EGL_WL_bind_wayland_display in EGL device platform 2021-01-28 00:30:10 +00:00
etnaviv etnaviv, v3d: Fix valgrind include paths. 2020-12-15 19:39:29 +00:00
freedreno vulkan: Add a common helper for enumerating instance extension properties 2021-02-04 20:02:12 +00:00
gallium winsys/amdgpu: remove amdgpu_winsys_bo::num_cs_references to remove atomics 2021-02-06 05:41:22 +00:00
gbm egl: implement EGL_EXT_protected_surface support 2020-11-02 10:15:47 +01:00
getopt
glx glx: Provide glvnd wrapper for glXSwapIntervalEXT 2021-01-22 22:34:23 -08:00
gtest
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel anv: Move extension tables to anv_device.c 2021-02-04 20:02:12 +00:00
loader loader: Print dlerror() output in the failure message 2020-11-04 21:45:37 +00:00
mapi glapi: guard against invalid XML definitions for glthread 2021-01-29 02:28:42 +00:00
mesa i965: use aligned malloc for context instead of ralloc 2021-02-03 16:37:59 +00:00
microsoft microsoft/compiler: Make resource_state_manager only build with_gallium_d3d12 2021-01-29 12:54:02 -08:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost pan/bi: Implement ACMPXCHG 2021-02-05 17:49:44 +00:00
util util: Use explicit relaxed reads for u_queue 2021-01-28 18:07:09 +00:00
virtio virgl: update headers 2021-01-22 21:25:48 +00:00
vulkan anv,vulkan: Move anv_icd.py to a common location 2021-02-04 20:02:12 +00:00
meson.build nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
SConscript