From 9223f41320313a25e21ce3f26b1c887ce4ddaada Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Sat, 28 Mar 2026 14:17:48 -0300 Subject: [PATCH] sd: call SetCircularAxesAll directly (#2078) --- otherarch/sdcpp/sdtype_adapter.cpp | 2 +- otherarch/sdcpp/stable-diffusion.cpp | 7 +------ otherarch/sdcpp/stable-diffusion.h | 2 -- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/otherarch/sdcpp/sdtype_adapter.cpp b/otherarch/sdcpp/sdtype_adapter.cpp index 9e3062fee..4c6e67087 100644 --- a/otherarch/sdcpp/sdtype_adapter.cpp +++ b/otherarch/sdcpp/sdtype_adapter.cpp @@ -1023,7 +1023,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs) sd_params->sample_method = sd_get_default_sample_method(sd_ctx); } - SetCircularAxesAll(sd_ctx, inputs.circular_x, inputs.circular_y); + sd_ctx->sd->SetCircularAxesAll(inputs.circular_x, inputs.circular_y); sd_params->cache_mode = inputs.cache_mode ? inputs.cache_mode : ""; sd_params->cache_options = inputs.cache_options ? inputs.cache_options : ""; diff --git a/otherarch/sdcpp/stable-diffusion.cpp b/otherarch/sdcpp/stable-diffusion.cpp index 5841414d4..6efb8475b 100644 --- a/otherarch/sdcpp/stable-diffusion.cpp +++ b/otherarch/sdcpp/stable-diffusion.cpp @@ -4655,9 +4655,4 @@ SD_API sd_image_t* generate_video(sd_ctx_t* sd_ctx, const sd_vid_gen_params_t* s return result_images; } -//added for kcpp -void SetCircularAxesAll(sd_ctx_t* sd_ctx, bool circular_x, bool circular_y) -{ - sd_ctx->sd->SetCircularAxesAll(circular_x, circular_y); -} -//end added for kcpp + diff --git a/otherarch/sdcpp/stable-diffusion.h b/otherarch/sdcpp/stable-diffusion.h index 3518fcdd6..fe1c79d7a 100644 --- a/otherarch/sdcpp/stable-diffusion.h +++ b/otherarch/sdcpp/stable-diffusion.h @@ -384,8 +384,6 @@ SD_API sd_image_t* generate_image(sd_ctx_t* sd_ctx, const sd_img_gen_params_t* s SD_API void sd_vid_gen_params_init(sd_vid_gen_params_t* sd_vid_gen_params); SD_API sd_image_t* generate_video(sd_ctx_t* sd_ctx, const sd_vid_gen_params_t* sd_vid_gen_params, int* num_frames_out); -void SetCircularAxesAll(sd_ctx_t* sd_ctx, bool circular_x, bool circular_y); - typedef struct upscaler_ctx_t upscaler_ctx_t; SD_API upscaler_ctx_t* new_upscaler_ctx(const char* esrgan_path,