mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 10:24:10 +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;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user