d3d10umd: Update for set_sampler_views take_ownership parameter.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11973>
This commit is contained in:
Jose Fonseca 2021-10-25 10:58:25 +01:00 committed by Marge Bot
parent e69a82f988
commit fb78c2de21
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -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);
}