perf/cpu: fx-9860G compatibility

This commit is contained in:
Lephenixnoir 2021-08-11 01:35:34 +02:00
parent 12e78d2897
commit 439c3a5ad1
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
6 changed files with 13 additions and 0 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -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,

View File

@ -3,6 +3,7 @@
#include <gintctl/util.h>
#include <gintctl/gint.h>
#include <gintctl/assets.h>
#include <stdio.h>
#include <stdbool.h>

View File

@ -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

View File

@ -4,6 +4,7 @@
#include <gintctl/perf.h>
#include <gintctl/util.h>
#include <gintctl/assets.h>
#include <gintctl/widgets/gscreen.h>
#include <gintctl/widgets/gtable.h>
@ -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;
}