rename gpu_senquack to gpu_unai
authornotaz <notasas@gmail.com>
Wed, 1 Nov 2023 16:47:16 +0000 (18:47 +0200)
committernotaz <notasas@gmail.com>
Wed, 1 Nov 2023 16:47:16 +0000 (18:47 +0200)
to reduce the pain of syncing with libretro

31 files changed:
Makefile
configure
frontend/main.c
frontend/menu.c
frontend/plugin_lib.h
plugins/gpu_unai/Makefile [moved from plugins/gpu_senquack/Makefile with 92% similarity]
plugins/gpu_unai/README_senquack.txt [moved from plugins/gpu_senquack/README_senquack.txt with 100% similarity]
plugins/gpu_unai/debug.h [moved from plugins/gpu_senquack/debug.h with 100% similarity]
plugins/gpu_unai/gpu.cpp [moved from plugins/gpu_senquack/gpu.cpp with 100% similarity]
plugins/gpu_unai/gpu.h [moved from plugins/gpu_senquack/gpu.h with 100% similarity]
plugins/gpu_unai/gpu_arm.S [moved from plugins/gpu_senquack/gpu_arm.S with 100% similarity]
plugins/gpu_unai/gpu_arm.h [moved from plugins/gpu_senquack/gpu_arm.h with 100% similarity]
plugins/gpu_unai/gpu_blit.h [moved from plugins/gpu_senquack/gpu_blit.h with 100% similarity]
plugins/gpu_unai/gpu_command.h [moved from plugins/gpu_senquack/gpu_command.h with 100% similarity]
plugins/gpu_unai/gpu_fixedpoint.h [moved from plugins/gpu_senquack/gpu_fixedpoint.h with 100% similarity]
plugins/gpu_unai/gpu_inner.h [moved from plugins/gpu_senquack/gpu_inner.h with 100% similarity]
plugins/gpu_unai/gpu_inner_blend.h [moved from plugins/gpu_senquack/gpu_inner_blend.h with 100% similarity]
plugins/gpu_unai/gpu_inner_blend_arm.h [moved from plugins/gpu_senquack/gpu_inner_blend_arm.h with 100% similarity]
plugins/gpu_unai/gpu_inner_blend_arm5.h [moved from plugins/gpu_senquack/gpu_inner_blend_arm5.h with 100% similarity]
plugins/gpu_unai/gpu_inner_blend_arm7.h [moved from plugins/gpu_senquack/gpu_inner_blend_arm7.h with 100% similarity]
plugins/gpu_unai/gpu_inner_light.h [moved from plugins/gpu_senquack/gpu_inner_light.h with 100% similarity]
plugins/gpu_unai/gpu_inner_light_arm.h [moved from plugins/gpu_senquack/gpu_inner_light_arm.h with 100% similarity]
plugins/gpu_unai/gpu_inner_quantization.h [moved from plugins/gpu_senquack/gpu_inner_quantization.h with 100% similarity]
plugins/gpu_unai/gpu_raster_image.h [moved from plugins/gpu_senquack/gpu_raster_image.h with 100% similarity]
plugins/gpu_unai/gpu_raster_line.h [moved from plugins/gpu_senquack/gpu_raster_line.h with 100% similarity]
plugins/gpu_unai/gpu_raster_polygon.h [moved from plugins/gpu_senquack/gpu_raster_polygon.h with 100% similarity]
plugins/gpu_unai/gpu_raster_sprite.h [moved from plugins/gpu_senquack/gpu_raster_sprite.h with 100% similarity]
plugins/gpu_unai/gpu_senquack.h [moved from plugins/gpu_senquack/gpu_senquack.h with 100% similarity]
plugins/gpu_unai/gpulib_if.cpp [moved from plugins/gpu_senquack/gpulib_if.cpp with 97% similarity]
plugins/gpu_unai/port.h [moved from plugins/gpu_senquack/port.h with 100% similarity]
plugins/gpu_unai/profiler.h [moved from plugins/gpu_senquack/profiler.h with 100% similarity]

index 85886d0..8cbf5c6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -151,12 +151,12 @@ plugins/gpu_unai_old/gpulib_if.o: CFLAGS += -DREARMED -O3
 CC_LINK = $(CXX)
 endif
 
-ifeq "$(BUILTIN_GPU)" "senquack"
-OBJS += plugins/gpu_senquack/gpulib_if.o
+ifeq "$(BUILTIN_GPU)" "unai"
+OBJS += plugins/gpu_unai/gpulib_if.o
 ifeq "$(ARCH)" "arm"
-OBJS += plugins/gpu_senquack/gpu_arm.o
+OBJS += plugins/gpu_unai/gpu_arm.o
 endif
-plugins/gpu_senquack/gpulib_if.o: CFLAGS += -DREARMED -O3 
+plugins/gpu_unai/gpulib_if.o: CFLAGS += -DREARMED -O3
 CC_LINK = $(CXX)
 endif
 
index 01f26b4..ac7af0e 100755 (executable)
--- a/configure
+++ b/configure
@@ -39,12 +39,12 @@ check_define_val()
 
 platform_list="generic pandora maemo caanoo libretro"
 platform="generic"
-builtin_gpu_list="neon peops senquack unai_old"
+builtin_gpu_list="neon peops unai unai_old"
 builtin_gpu=""
 sound_driver_list="oss alsa pulseaudio sdl libretro"
 sound_drivers=""
 plugins="plugins/spunull/spunull.so \
-plugins/dfxvideo/gpu_peops.so plugins/gpu_unai_old/gpu_unai_old.so plugins/gpu_senquack/gpu_senquack.so"
+plugins/dfxvideo/gpu_peops.so plugins/gpu_unai_old/gpu_unai_old.so plugins/gpu_unai/gpu_unai.so"
 drc_cache_base="no"
 have_armv5=""
 have_armv6=""
index 45e2581..cec1fbb 100644 (file)
@@ -142,12 +142,12 @@ void emu_set_default_config(void)
        pl_rearmed_cbs.gpu_neon.enhancement_no_main = 0;
        pl_rearmed_cbs.gpu_peops.iUseDither = 0;
        pl_rearmed_cbs.gpu_peops.dwActFixes = 1<<7;
-       pl_rearmed_cbs.gpu_senquack.ilace_force = 0;
-       pl_rearmed_cbs.gpu_senquack.pixel_skip = 0;
-       pl_rearmed_cbs.gpu_senquack.lighting = 1;
-       pl_rearmed_cbs.gpu_senquack.fast_lighting = 0;
-       pl_rearmed_cbs.gpu_senquack.blending = 1;
-       pl_rearmed_cbs.gpu_senquack.dithering = 0;
+       pl_rearmed_cbs.gpu_unai.ilace_force = 0;
+       pl_rearmed_cbs.gpu_unai.pixel_skip = 0;
+       pl_rearmed_cbs.gpu_unai.lighting = 1;
+       pl_rearmed_cbs.gpu_unai.fast_lighting = 0;
+       pl_rearmed_cbs.gpu_unai.blending = 1;
+       pl_rearmed_cbs.gpu_unai.dithering = 0;
        pl_rearmed_cbs.gpu_unai_old.abe_hack =
        pl_rearmed_cbs.gpu_unai_old.no_light =
        pl_rearmed_cbs.gpu_unai_old.no_blend = 0;
index b2d50aa..9200e10 100644 (file)
@@ -438,13 +438,13 @@ static const struct {
        CE_INTVAL_P(gpu_unai_old.abe_hack),
        CE_INTVAL_P(gpu_unai_old.no_light),
        CE_INTVAL_P(gpu_unai_old.no_blend),
-       CE_INTVAL_P(gpu_senquack.ilace_force),
-       CE_INTVAL_P(gpu_senquack.pixel_skip),
-       CE_INTVAL_P(gpu_senquack.lighting),
-       CE_INTVAL_P(gpu_senquack.fast_lighting),
-       CE_INTVAL_P(gpu_senquack.blending),
-       CE_INTVAL_P(gpu_senquack.dithering),
-       CE_INTVAL_P(gpu_senquack.scale_hires),
+       CE_INTVAL_P(gpu_unai.ilace_force),
+       CE_INTVAL_P(gpu_unai.pixel_skip),
+       CE_INTVAL_P(gpu_unai.lighting),
+       CE_INTVAL_P(gpu_unai.fast_lighting),
+       CE_INTVAL_P(gpu_unai.blending),
+       CE_INTVAL_P(gpu_unai.dithering),
+       CE_INTVAL_P(gpu_unai.scale_hires),
        CE_INTVAL_P(gpu_neon.allow_interlace),
        CE_INTVAL_P(gpu_neon.enhancement_enable),
        CE_INTVAL_P(gpu_neon.enhancement_no_main),
@@ -1400,21 +1400,21 @@ static int menu_loop_plugin_gpu_unai_old(int id, int keys)
        return 0;
 }
 
-static menu_entry e_menu_plugin_gpu_senquack[] =
+static menu_entry e_menu_plugin_gpu_unai[] =
 {
-       mee_onoff     ("Interlace",                  0, pl_rearmed_cbs.gpu_senquack.ilace_force, 1),
-       mee_onoff     ("Dithering",                  0, pl_rearmed_cbs.gpu_senquack.dithering, 1),
-       mee_onoff     ("Lighting",                   0, pl_rearmed_cbs.gpu_senquack.lighting, 1),
-       mee_onoff     ("Fast lighting",              0, pl_rearmed_cbs.gpu_senquack.fast_lighting, 1),
-       mee_onoff     ("Blending",                   0, pl_rearmed_cbs.gpu_senquack.blending, 1),
-       mee_onoff     ("Pixel skip",                 0, pl_rearmed_cbs.gpu_senquack.pixel_skip, 1),
+       mee_onoff     ("Interlace",                  0, pl_rearmed_cbs.gpu_unai.ilace_force, 1),
+       mee_onoff     ("Dithering",                  0, pl_rearmed_cbs.gpu_unai.dithering, 1),
+       mee_onoff     ("Lighting",                   0, pl_rearmed_cbs.gpu_unai.lighting, 1),
+       mee_onoff     ("Fast lighting",              0, pl_rearmed_cbs.gpu_unai.fast_lighting, 1),
+       mee_onoff     ("Blending",                   0, pl_rearmed_cbs.gpu_unai.blending, 1),
+       mee_onoff     ("Pixel skip",                 0, pl_rearmed_cbs.gpu_unai.pixel_skip, 1),
        mee_end,
 };
 
-static int menu_loop_plugin_gpu_senquack(int id, int keys)
+static int menu_loop_plugin_gpu_unai(int id, int keys)
 {
        int sel = 0;
-       me_loop(e_menu_plugin_gpu_senquack, &sel);
+       me_loop(e_menu_plugin_gpu_unai, &sel);
        return 0;
 }
 
@@ -1520,7 +1520,7 @@ static const char h_plugin_gpu[] =
 #endif
                                   "gpu_peops is Pete's soft GPU, slow but accurate\n"
                                   "gpu_unai_old is from old PCSX4ALL, fast but glitchy\n"
-                                  "gpu_senquack is more accurate but slower\n"
+                                  "gpu_unai is newer, more accurate but slower\n"
                                   "gpu_gles Pete's hw GPU, uses 3D chip but is glitchy\n"
                                   "must save config and reload the game if changed";
 static const char h_plugin_spu[] = "spunull effectively disables sound\n"
@@ -1528,7 +1528,7 @@ static const char h_plugin_spu[] = "spunull effectively disables sound\n"
 static const char h_gpu_peops[]  = "Configure P.E.Op.S. SoftGL Driver V1.17";
 static const char h_gpu_peopsgl[]= "Configure P.E.Op.S. MesaGL Driver V1.78";
 static const char h_gpu_unai_old[] = "Configure Unai/PCSX4ALL Team GPU plugin (old)";
-static const char h_gpu_senquack[] = "Configure Unai/PCSX4ALL Senquack plugin";
+static const char h_gpu_unai[]   = "Configure Unai/PCSX4ALL Team plugin (new)";
 static const char h_spu[]        = "Configure built-in P.E.Op.S. Sound Driver V1.7";
 
 static menu_entry e_menu_plugin_options[] =
@@ -1541,7 +1541,7 @@ static menu_entry e_menu_plugin_options[] =
 #endif
        mee_handler_h ("Configure gpu_peops plugin",    menu_loop_plugin_gpu_peops, h_gpu_peops),
        mee_handler_h ("Configure gpu_unai_old GPU plugin", menu_loop_plugin_gpu_unai_old, h_gpu_unai_old),
-       mee_handler_h ("Configure gpu_senquack GPU plugin", menu_loop_plugin_gpu_senquack, h_gpu_senquack),
+       mee_handler_h ("Configure gpu_unai GPU plugin", menu_loop_plugin_gpu_unai, h_gpu_unai),
        mee_handler_h ("Configure gpu_gles GPU plugin", menu_loop_plugin_gpu_peopsgl, h_gpu_peopsgl),
        mee_handler_h ("Configure built-in SPU plugin", menu_loop_plugin_spu, h_spu),
        mee_end,
index cb1f4f7..6cfe596 100644 (file)
@@ -102,7 +102,7 @@ struct rearmed_cbs {
                int blending;
                int dithering;
                int scale_hires;
-       } gpu_senquack;
+       } gpu_unai;
        struct {
                int   dwActFixes;
                int   bDrawDither, iFilterType, iFrameTexType;
similarity index 92%
rename from plugins/gpu_senquack/Makefile
rename to plugins/gpu_unai/Makefile
index c3be35b..12c688e 100644 (file)
@@ -15,5 +15,5 @@ SRC += gpu_arm.S
 endif
 
 #BIN_STANDALONE = gpuPCSX4ALL.so
-BIN_GPULIB = gpu_senquack.so
+BIN_GPULIB = gpu_unai.so
 include ../gpulib/gpulib.mak
similarity index 97%
rename from plugins/gpu_senquack/gpulib_if.cpp
rename to plugins/gpu_unai/gpulib_if.cpp
index e5a51aa..7b148d4 100644 (file)
@@ -635,13 +635,13 @@ void renderer_set_interlace(int enable, int is_odd)
 void renderer_set_config(const struct rearmed_cbs *cbs)
 {
   gpu_senquack.vram = (u16*)gpu.vram;
-  gpu_senquack.config.ilace_force   = cbs->gpu_senquack.ilace_force;
-  gpu_senquack.config.pixel_skip    = cbs->gpu_senquack.pixel_skip;
-  gpu_senquack.config.lighting      = cbs->gpu_senquack.lighting;
-  gpu_senquack.config.fast_lighting = cbs->gpu_senquack.fast_lighting;
-  gpu_senquack.config.blending      = cbs->gpu_senquack.blending;
-  gpu_senquack.config.dithering     = cbs->gpu_senquack.dithering;
-  gpu_senquack.config.scale_hires   = cbs->gpu_senquack.scale_hires;
+  gpu_senquack.config.ilace_force   = cbs->gpu_unai.ilace_force;
+  gpu_senquack.config.pixel_skip    = cbs->gpu_unai.pixel_skip;
+  gpu_senquack.config.lighting      = cbs->gpu_unai.lighting;
+  gpu_senquack.config.fast_lighting = cbs->gpu_unai.fast_lighting;
+  gpu_senquack.config.blending      = cbs->gpu_unai.blending;
+  gpu_senquack.config.dithering     = cbs->gpu_unai.dithering;
+  gpu_senquack.config.scale_hires   = cbs->gpu_unai.scale_hires;
 }
 
 // vim:shiftwidth=2:expandtab