Merge pull request #1913 from italomandara/update-spirv-cross-revision

Update SPIRV-Cross revision to fix explicit LOD workaround regression
This commit is contained in:
Bill Hollings 2023-05-21 07:19:58 -04:00 committed by GitHub
commit 1a386e0493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -1 +1 @@
3550a54ae01b295c40ce972d951b420b388b9401
34cd230e5e22d08869be878055a2267ba66cc601

View File

@ -1651,7 +1651,7 @@ void MVKPhysicalDevice::initMetalFeatures() {
break;
case kAppleVendorId:
// TODO: Other GPUs?
MVK_SET_FROM_ENV_OR_BUILD_BOOL(_metalFeatures.needsSampleDrefLodArrayWorkaround, MVK_ENABLE_EXPLICIT_LOD_WORKAROUND);
_metalFeatures.needsSampleDrefLodArrayWorkaround = true;
// fallthrough
case kIntelVendorId:
case kNVVendorId:

View File

@ -295,8 +295,3 @@ void mvkSetConfig(const MVKConfiguration& mvkConfig);
#ifndef MVK_CONFIG_SHADER_COMPRESSION_ALGORITHM
# define MVK_CONFIG_SHADER_COMPRESSION_ALGORITHM MVK_CONFIG_COMPRESSION_ALGORITHM_NONE
#endif
/** Enables Explicit LOD workaround defaults to true. */
#ifndef MVK_ENABLE_EXPLICIT_LOD_WORKAROUND
# define MVK_ENABLE_EXPLICIT_LOD_WORKAROUND 1
#endif