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

Author: Dave Airlie <[email protected]>
Date:   Thu Jan 12 06:43:46 2023 +1000

lavapipe: drop unused macro

Reviewed-by: Mike Blumenkrantz <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20630>

---

 src/gallium/frontends/lavapipe/lvp_pipeline.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/gallium/frontends/lavapipe/lvp_pipeline.c 
b/src/gallium/frontends/lavapipe/lvp_pipeline.c
index e357096447d..51293be245e 100644
--- a/src/gallium/frontends/lavapipe/lvp_pipeline.c
+++ b/src/gallium/frontends/lavapipe/lvp_pipeline.c
@@ -39,13 +39,6 @@
 
 #define MAX_DYNAMIC_STATES 72
 
-#define LVP_PIPELINE_DUP(dst, src, type, count) do {             \
-      type *temp = ralloc_array(mem_ctx, type, count);           \
-      if (!temp) return VK_ERROR_OUT_OF_HOST_MEMORY;             \
-      memcpy(temp, (src), sizeof(type) * count);                 \
-      dst = temp;                                                \
-   } while(0)
-
 void
 lvp_pipeline_destroy(struct lvp_device *device, struct lvp_pipeline *pipeline)
 {

Reply via email to