Merge pull request #1861 from italomandara/allow-disable-explicit-lod-workaround
Allow to disable Explicit LOD Workaround for Apple silicon.
This commit is contained in:
commit
912b2edb73
@ -1645,7 +1645,7 @@ void MVKPhysicalDevice::initMetalFeatures() {
|
||||
break;
|
||||
case kAppleVendorId:
|
||||
// TODO: Other GPUs?
|
||||
_metalFeatures.needsSampleDrefLodArrayWorkaround = true;
|
||||
MVK_SET_FROM_ENV_OR_BUILD_BOOL(_metalFeatures.needsSampleDrefLodArrayWorkaround, MVK_ENABLE_EXPLICIT_LOD_WORKAROUND);
|
||||
// fallthrough
|
||||
case kIntelVendorId:
|
||||
case kNVVendorId:
|
||||
|
@ -294,3 +294,8 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user