mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxbc] Reduce length of temporary shader input array to a minimum
Fixes severe performance regression with the AMD proprietary driver.
This commit is contained in:
parent
6c17fa075b
commit
a4378996d9
@ -6696,7 +6696,10 @@ namespace dxvk {
|
|||||||
DxbcArrayType info;
|
DxbcArrayType info;
|
||||||
info.ctype = DxbcScalarType::Float32;
|
info.ctype = DxbcScalarType::Float32;
|
||||||
info.ccount = 4;
|
info.ccount = 4;
|
||||||
info.alength = DxbcMaxInterfaceRegs;
|
info.alength = m_isgn != nullptr ? m_isgn->maxRegisterCount() : 0;
|
||||||
|
|
||||||
|
if (info.alength == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
// Define the array type. This will be two-dimensional
|
// Define the array type. This will be two-dimensional
|
||||||
// in some shaders, with the outer index representing
|
// in some shaders, with the outer index representing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user