From ccb14900459a42cc275a836ed21752aec03bd88a Mon Sep 17 00:00:00 2001 From: Martijn Courteaux Date: Thu, 7 Aug 2025 19:29:19 +0200 Subject: [PATCH] Always insert set_host_dirty(), even is there is no GPU target. This allows mixing CPU-only and GPU-compatible pipelines. --- src/Lower.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Lower.cpp b/src/Lower.cpp index 19be543975f1..1e1f8b40fc9f 100644 --- a/src/Lower.cpp +++ b/src/Lower.cpp @@ -326,6 +326,10 @@ void lower_impl(const vector &output_funcs, debug(1) << "Selecting a GPU API for extern stages...\n"; s = select_gpu_api(s, t); log("Lowering after selecting a GPU API for extern stages:", s); + } else { + debug(1) << "Injecting host-dirty marking...\n"; + s = inject_host_dev_buffer_copies(s, t); + log("Lowering after injecting host-dirty marking:", s); } debug(1) << "Simplifying...\n";