dzn: use c-style for-statement

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15816>
This commit is contained in:
Erik Faye-Lund 2022-04-07 14:53:02 +02:00 committed by Marge Bot
parent 502c36c07d
commit 05af6f0434

View file

@ -411,7 +411,8 @@ dzn_physical_device_init_memory(struct dzn_physical_device *pdev)
*/
D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES
};
for (D3D12_HEAP_FLAGS flag : flags) {
for (int i = 0; i < ARRAY_SIZE(flags); ++i) {
D3D12_HEAP_FLAGS flag = flags[i];
pdev->heap_flags_for_mem_type[mem->memoryTypeCount] = flag;
mem->memoryTypes[mem->memoryTypeCount] = oldMemoryTypes[oldMemoryTypeIdx];
mem->memoryTypeCount++;