vkd3d-shader/dxil: Count global variables in dxil_block_compute_module_decl_count().

This commit is contained in:
Conor McCarthy 2023-12-01 14:45:31 +10:00 committed by Alexandre Julliard
parent 4ec7f360d9
commit 8aa6e2228e
Notes: Alexandre Julliard 2024-01-03 23:09:35 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/505

View File

@ -1237,7 +1237,7 @@ static size_t dxil_block_compute_module_decl_count(const struct dxil_block *bloc
size_t i, count; size_t i, count;
for (i = 0, count = 0; i < block->record_count; ++i) for (i = 0, count = 0; i < block->record_count; ++i)
count += block->records[i]->code == MODULE_CODE_FUNCTION; count += block->records[i]->code == MODULE_CODE_FUNCTION || block->records[i]->code == MODULE_CODE_GLOBALVAR;
return count; return count;
} }