Mesa (main): zink: reorder has_barriers flag in batch state struct

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 16 01:38:10 UTC 2021


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri May  7 09:37:20 2021 -0400

zink: reorder has_barriers flag in batch state struct

better struct packing

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11400>

---

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

diff --git a/src/gallium/drivers/zink/zink_batch.h b/src/gallium/drivers/zink/zink_batch.h
index bdfadea7fcb..2d1525c32ef 100644
--- a/src/gallium/drivers/zink/zink_batch.h
+++ b/src/gallium/drivers/zink/zink_batch.h
@@ -62,7 +62,6 @@ struct zink_batch_state {
    VkCommandPool cmdpool;
    VkCommandBuffer cmdbuf;
    VkCommandBuffer barrier_cmdbuf;
-   bool has_barriers;
 
    VkQueue queue; //duplicated from batch for threading
    VkSemaphore sem;
@@ -89,6 +88,7 @@ struct zink_batch_state {
 
    bool is_device_lost;
    bool have_timelines;
+   bool has_barriers;
 };
 
 struct zink_batch {



More information about the mesa-commit mailing list