Commit 71ed3b92 authored by Mike Blumenkrantz's avatar Mike Blumenkrantz 🏋
Browse files

iris: use normal initializer for samplerview creation

atomics here generate a huge amount of overhead (20% of all CPU time in pbobench)
and aren't actually needed
parent caf9fb1a
Pipeline #313817 waiting for manual action with stages
in 9 seconds
......@@ -2423,7 +2423,7 @@ iris_create_sampler_view(struct pipe_context *ctx,
isv->base = *tmpl;
isv->base.context = ctx;
isv->base.texture = NULL;
pipe_reference_init(&isv->base.reference, 1);
isv->base.reference.count = 1;
pipe_resource_reference(&isv->base.texture, tex);
if (util_format_is_depth_or_stencil(tmpl->format)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment