From c74a700681b0be44a74f16b0f9eaad05bba159d2 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 22 Jan 2020 11:06:20 -0500 Subject: WIP HLSL intrinsic coverage (#1171) * Added hlsl-intrinsic test folder. Enabled ceil as works across targets. * log10 support. * Fix float % on CPU/CUDA to match HLSL which is fmod (not fremainder). * Added log10 tests back to scalar-float.slang * Don't add the ( for $Sx - it's clearer what's going on without it. * Works on CUDA/CPU. Problem with asint/asuint do not seem to be found. * Only asuint exists for double. * Support countbits on CUDA and C++. * Fix typo in C++ population count. * First pass at int vector intrinsic tests. * Swizzle for int. * Bit cast tests on CUDA. * Fix warning on gcc. * Fix bit-cast-double execution on CUDA. * scalar-int test working on gcc release. --- tools/render-test/bind-location.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/render-test/bind-location.cpp') diff --git a/tools/render-test/bind-location.cpp b/tools/render-test/bind-location.cpp index 30b9de0f8..114ca7e8e 100644 --- a/tools/render-test/bind-location.cpp +++ b/tools/render-test/bind-location.cpp @@ -482,7 +482,7 @@ BindLocation BindSet::toIndex(const BindLocation& loc, Index index) const size_t baseOffset = loc.m_bindPointSet->m_points[category].m_offset; - if (category == SLANG_PARAMETER_CATEGORY_UNIFORM && uniformValue != loc.m_value) + if (category == slang::ParameterCategory::Uniform && uniformValue != loc.m_value) { baseOffset = 0; } -- cgit v1.2.3