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:
@@ -469,7 +469,7 @@ create_staging_resource(struct d3d12_context *ctx,
|
||||
unsigned mask)
|
||||
|
||||
{
|
||||
struct pipe_resource templ = {{0}};
|
||||
struct pipe_resource templ = {};
|
||||
struct pipe_resource *staging_res;
|
||||
struct pipe_box copy_src;
|
||||
|
||||
|
Reference in New Issue
Block a user