mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Add option to enable constant buffer range checks
This commit is contained in:
parent
9b99c55a2e
commit
5819a69302
@ -7,8 +7,9 @@ namespace dxvk {
|
||||
D3D11Options::D3D11Options(const Config& config) {
|
||||
this->allowMapFlagNoWait = config.getOption<bool>("d3d11.allowMapFlagNoWait", false);
|
||||
this->dcSingleUseMode = config.getOption<bool>("d3d11.dcSingleUseMode", true);
|
||||
this->strictDivision = config.getOption<bool>("d3d11.strictDivision", false);
|
||||
this->zeroInitWorkgroupMemory = config.getOption<bool>("d3d11.zeroInitWorkgroupMemory", false);
|
||||
this->strictDivision = config.getOption<bool>("d3d11.strictDivision", false);
|
||||
this->constantBufferRangeCheck = config.getOption<bool>("d3d11.constantBufferRangeCheck", false);
|
||||
this->zeroInitWorkgroupMemory = config.getOption<bool>("d3d11.zeroInitWorkgroupMemory", false);
|
||||
this->relaxedBarriers = config.getOption<bool>("d3d11.relaxedBarriers", false);
|
||||
this->maxTessFactor = config.getOption<int32_t>("d3d11.maxTessFactor", 0);
|
||||
this->samplerAnisotropy = config.getOption<int32_t>("d3d11.samplerAnisotropy", -1);
|
||||
|
@ -30,6 +30,11 @@ namespace dxvk {
|
||||
/// games may expect correct behaviour.
|
||||
bool strictDivision;
|
||||
|
||||
/// Enables out-of-bounds access check for constant
|
||||
/// buffers. Workaround for a few broken games that
|
||||
/// access random data inside their shaders.
|
||||
bool constantBufferRangeCheck;
|
||||
|
||||
/// Zero-initialize workgroup memory
|
||||
///
|
||||
/// Workargound for games that don't initialize
|
||||
|
@ -28,8 +28,9 @@ namespace dxvk {
|
||||
useSdivForBufferIndex
|
||||
= adapter->matchesDriver(DxvkGpuVendor::Nvidia, VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR, 0, 0);
|
||||
|
||||
strictDivision = options.strictDivision;
|
||||
zeroInitWorkgroupMemory = options.zeroInitWorkgroupMemory;
|
||||
strictDivision = options.strictDivision;
|
||||
constantBufferRangeCheck = options.constantBufferRangeCheck;
|
||||
zeroInitWorkgroupMemory = options.zeroInitWorkgroupMemory;
|
||||
|
||||
// Disable early discard on RADV due to GPU hangs
|
||||
// Disable early discard on Nvidia because it may hurt performance
|
||||
|
Loading…
x
Reference in New Issue
Block a user