mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
502c36c07d
commit
05af6f0434
1 changed files with 2 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue