util,gallium: put count in pipe_resource & sampler_view on its own cache line
This adds 60 bytes to both structures. It eliminates "False Sharing" for atomic operations (see wikipedia). Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11618>
This commit is contained in:
@@ -477,4 +477,7 @@ typedef int lock_cap_t;
|
||||
|
||||
#endif
|
||||
|
||||
/* TODO: this could be different on non-x86 architectures. */
|
||||
#define CACHE_LINE_SIZE 64
|
||||
|
||||
#endif /* UTIL_MACROS_H */
|
||||
|
Reference in New Issue
Block a user