From fb78c2de2129af9c0df84f2761e8bb94a59042fd Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Mon, 25 Oct 2021 10:58:25 +0100 Subject: [PATCH] d3d10umd: Update for set_sampler_views take_ownership parameter. Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/frontends/d3d10umd/Device.cpp | 6 +++--- src/gallium/frontends/d3d10umd/Shader.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/frontends/d3d10umd/Device.cpp b/src/gallium/frontends/d3d10umd/Device.cpp index cd2c6cd..e347ce0 100644 --- a/src/gallium/frontends/d3d10umd/Device.cpp +++ b/src/gallium/frontends/d3d10umd/Device.cpp @@ -354,11 +354,11 @@ DestroyDevice(D3D10DDI_HDEVICE hDevice) // IN static struct pipe_sampler_view * sampler_views[PIPE_MAX_SHADER_SAMPLER_VIEWS]; memset(sampler_views, 0, sizeof sampler_views); pipe->set_sampler_views(pipe, PIPE_SHADER_FRAGMENT, 0, - PIPE_MAX_SHADER_SAMPLER_VIEWS, 0, sampler_views); + PIPE_MAX_SHADER_SAMPLER_VIEWS, 0, false, sampler_views); pipe->set_sampler_views(pipe, PIPE_SHADER_VERTEX, 0, - PIPE_MAX_SHADER_SAMPLER_VIEWS, 0, sampler_views); + PIPE_MAX_SHADER_SAMPLER_VIEWS, 0, false, sampler_views); pipe->set_sampler_views(pipe, PIPE_SHADER_GEOMETRY, 0, - PIPE_MAX_SHADER_SAMPLER_VIEWS, 0, sampler_views); + PIPE_MAX_SHADER_SAMPLER_VIEWS, 0, false, sampler_views); pipe->destroy(pipe); } diff --git a/src/gallium/frontends/d3d10umd/Shader.cpp b/src/gallium/frontends/d3d10umd/Shader.cpp index ce5d0ed..e70d58a 100644 --- a/src/gallium/frontends/d3d10umd/Shader.cpp +++ b/src/gallium/frontends/d3d10umd/Shader.cpp @@ -251,7 +251,7 @@ SetShaderResources(enum pipe_shader_type shader_type, // IN * probably think about not updating all always... It should just work. */ pipe->set_sampler_views(pipe, shader_type, 0, PIPE_MAX_SHADER_SAMPLER_VIEWS, - 0, sampler_views); + 0, false, sampler_views); } -- 2.7.4