Module: Mesa
Branch: main
Commit: 1924cdc2898b0a14a8afd13db3a06dab9e1d032e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1924cdc2898b0a14a8afd13db3a06dab9e1d032e

Author: Jesse Natalie <[email protected]>
Date:   Fri Nov 24 12:20:44 2023 -0800

d3d12: Fix multidimensional array ordering

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>

---

 src/gallium/drivers/d3d12/d3d12_bufmgr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/d3d12/d3d12_bufmgr.h 
b/src/gallium/drivers/d3d12/d3d12_bufmgr.h
index ee70fa6bde0..78f716fb508 100644
--- a/src/gallium/drivers/d3d12/d3d12_bufmgr.h
+++ b/src/gallium/drivers/d3d12/d3d12_bufmgr.h
@@ -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 {

Reply via email to