[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:
Philip Rebohle 2019-02-04 13:30:08 +01:00
parent 6c17fa075b
commit a4378996d9
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 4 additions and 1 deletions

View File

@ -6696,7 +6696,10 @@ namespace dxvk {
DxbcArrayType info;
info.ctype = DxbcScalarType::Float32;
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
// in some shaders, with the outer index representing