From 439c3a5ad188ff141fe2566461a602e61048c435 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Wed, 11 Aug 2021 01:35:34 +0200 Subject: [PATCH] perf/cpu: fx-9860G compatibility --- CMakeLists.txt | 1 + assets-fx/img/opt_perf_cpu.png | Bin 0 -> 1331 bytes include/gintctl/assets.h | 1 + src/gint/ram.c | 1 + src/perf/cpu.S | 5 +++++ src/perf/cpu.c | 5 +++++ 6 files changed, 13 insertions(+) create mode 100644 assets-fx/img/opt_perf_cpu.png diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fc8fbd..369e200 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,7 @@ set(ASSETS_fx assets-fx/img/opt_libs_jui.png assets-fx/img/opt_main.png assets-fx/img/opt_mem.png + assets-fx/img/opt_perf_cpu.png assets-fx/img/opt_perf_libprof.png assets-fx/img/opt_perf_memory.png assets-fx/img/opt_perf_memory_sh3.png diff --git a/assets-fx/img/opt_perf_cpu.png b/assets-fx/img/opt_perf_cpu.png new file mode 100644 index 0000000000000000000000000000000000000000..416039f5605dcb85e9759231c46921f6639a2137 GIT binary patch literal 1331 zcmV-31 zaB^>EX>4U6ba`-PAZ2)IW&i+q+O1V>vg9TV{Ld+J1SBB@#{nc&7Tt3D>C-!#_LqGUH`rQI~`{!>R+j=|ZzeEH(t$urruRGI6X1uantpkSs zO6ujJe44?;4LkBI>u82s@oZ0#KYfq5XoRrkxpR{GMGJOU8RQ}i#6 z$^5d$k4hSRD}o^b1+|kXb*jc}L``^rpoPd;8gDQ_s_Y1on@9&Y13H3ltTB4#vhr&j zTLt{6bTM!=S~s&{)7FsDhK@dL zj4{WWJOx`)XP-95oO3PsT&*l!SiLY~t<76@+q(O76=3}{ z-uPFTE0?g%{H**nQw*H;Zkn3?DHPC2tDs)8=D9QFh>^ zAC>4fy90D%z|-qISzEX5D1O_5TGsAqr!<=xbYe=-&NzFA`9_Revd3J85J4K&N6?5G zt@1qE2qSRR6LAH$T>(W)%$Ee{0yMfKH@VnBudwTIWzj*|nukE&yoIyMh|~d5?;OC` zij9Q zD%CNcb{w@Wff%0s*eC(ro@iYN69Q~Qb!L|?LhVmXwA6D=jb=M>4B>^l<>ofc0C++` z90iFknVpY6Z8_c^33d0={r)&jA=$E`iE>jJZIa0q@gq{fOm{QS6KuNIp@e9NQ8(wG&6Cax0Jw zz7YZnobn4l?92bqmw&SW!kXnzBT95hBFITc00009a7bBm000XU000XU0RWnu7ytkO z2XskIMF-^w3Kt7Q{!BAJlPg!&^|$5 p{(+5aoS^9V5R&Y8AM_deFBi98IRbSu`d0t|002ovPDHLkV1iJ$YNP-F literal 0 HcmV?d00001 diff --git a/include/gintctl/assets.h b/include/gintctl/assets.h index ab7c429..358796e 100644 --- a/include/gintctl/assets.h +++ b/include/gintctl/assets.h @@ -40,6 +40,7 @@ extern bopti_image_t img_opt_libs_jui, img_opt_main, img_opt_mem, + img_opt_perf_cpu, img_opt_perf_libprof, img_opt_perf_memory, img_opt_perf_memory_sh3, diff --git a/src/gint/ram.c b/src/gint/ram.c index ba90d3b..ade99a5 100644 --- a/src/gint/ram.c +++ b/src/gint/ram.c @@ -3,6 +3,7 @@ #include #include +#include #include #include diff --git a/src/perf/cpu.S b/src/perf/cpu.S index 67a97db..0e2ac3b 100644 --- a/src/perf/cpu.S +++ b/src/perf/cpu.S @@ -440,6 +440,7 @@ _perf_cpu_double_incr_read: This section is used to investigate the performance of the 2D texture shader of azur. */ +#ifdef FXCG50 .global _perf_cpu_tex2d .align 4 @@ -451,15 +452,19 @@ _perf_cpu_tex2d: 1: movs.l @r3+, x0 2: movs.l x0, @r5+ EPILOGUE() +#endif /* XRAM buffer */ .align 4 .buffer: .long _cpu_perf_xram_buffer + +#ifdef FXCG50 .buffer2: .long _buffer2 .section .data _buffer2: .zero 2048 +#endif diff --git a/src/perf/cpu.c b/src/perf/cpu.c index c7565b7..28f012c 100644 --- a/src/perf/cpu.c +++ b/src/perf/cpu.c @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -76,7 +77,9 @@ struct results { int raw_EX_LS_addr, raw_DSPLS_DSPLS; int darken_1, darken_2, darken_3, darken_4; int double_read, double_incr_read; + #ifdef FXCG50 int tex2d; + #endif }; /* Number of Iphi cycles total, and number of iterations */ @@ -187,7 +190,9 @@ void gintctl_perf_cpu(void) run(double_read, 1024); run(double_incr_read, 1024); + #ifdef FXCG50 run(tex2d, 512); + #endif table->widget.update = 1; }