d3d12: Fix multidimensional array ordering
authorJesse Natalie <jenatali@microsoft.com>
Fri, 24 Nov 2023 20:20:44 +0000 (12:20 -0800)
committerEric Engestrom <eric@engestrom.ch>
Tue, 28 Nov 2023 13:04:17 +0000 (13:04 +0000)
Apparently my C multimensional array syntax was rusty.

Fixes: a6740ee7 ("d3d12: Fix indexing of local_reference_state")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26362>
(cherry picked from commit 1924cdc2898b0a14a8afd13db3a06dab9e1d032e)

.pick_status.json
src/gallium/drivers/d3d12/d3d12_bufmgr.h

index 6f00101..15f8be3 100644 (file)
@@ -84,7 +84,7 @@
         "description": "d3d12: Fix multidimensional array ordering",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": "a6740ee7a4de17ce05fa10c872d6a6f08b39b77c",
         "notes": null
index ee70fa6..78f716f 100644 (file)
@@ -71,7 +71,7 @@ struct d3d12_bo {
    uint8_t local_reference_mask[16];
 
    d3d12_context_state_table_entry local_context_states[16];
-   uint8_t local_reference_state[8][16];
+   uint8_t local_reference_state[16][8];
 };
 
 struct d3d12_buffer {