dzn: Support unnormalized coordinate samplers

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20617>
This commit is contained in:
Jesse Natalie 2023-01-09 12:43:46 -08:00 committed by Marge Bot
parent 552ab9c2f7
commit 4565490b71

View file

@ -3151,6 +3151,11 @@ dzn_sampler_create(struct dzn_device *device,
}
}
#if D3D12_SDK_VERSION >= 609
if (pCreateInfo->unnormalizedCoordinates)
sampler->desc.Flags |= D3D12_SAMPLER_FLAG_NON_NORMALIZED_COORDINATES;
#endif
*out = dzn_sampler_to_handle(sampler);
return VK_SUCCESS;
}