vkd3d-shader: Exclude descriptor arrays from combined sampler searches.

Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Conor McCarthy 2021-07-27 23:39:58 +10:00 committed by Alexandre Julliard
parent dbb715a160
commit 5bebfe264d

View File

@ -2457,7 +2457,10 @@ static bool vkd3d_dxbc_compiler_has_combined_sampler(const struct vkd3d_dxbc_com
if (!shader_interface->combined_sampler_count)
return false;
if (resource && resource->reg.reg.type == VKD3DSPR_UAV)
if (resource && (resource->reg.reg.type == VKD3DSPR_UAV || resource->range.last != resource->range.first))
return false;
if (sampler && sampler->range.first != sampler->range.last)
return false;
for (i = 0; i < shader_interface->combined_sampler_count; ++i)