Skip to content

Commit d38678b

Browse files
Merge branch 'libretro:master' into master
2 parents ba1cdf3 + f0370a1 commit d38678b

File tree

280 files changed

+9757
-4955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+9757
-4955
lines changed

.github/workflows/webOS.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ jobs:
5151
with:
5252
repository: "openlgtv/buildroot-nc4"
5353
latest: true
54-
fileName: "linux-intel-webos-sdk.tar.gz"
54+
fileName: "arm-webos-linux-gnueabi_sdk-buildroot-x86_64.tar.gz"
5555
out-file-path: "/tmp"
5656

5757
- name: Extract webOS NDK
5858
shell: bash
5959
working-directory: /tmp
6060
run: |
61-
tar xzf linux-intel-webos-sdk.tar.gz
61+
tar xzf arm-webos-linux-gnueabi_sdk-buildroot-x86_64.tar.gz
6262
./arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
6363
6464
- name: Compile RA

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,18 @@ param.sfo
263263

264264
# Clazy
265265
*.clazy.yaml
266+
267+
# PSL1GHT
268+
*.SELF
269+
EBOOT.BIN
270+
pkg/psl1ght/*.pkg
271+
modern_alpha_blend_fpo.h
272+
modern_alpha_blend_vpo.h
273+
modern_opaque_fpo.h
274+
modern_opaque_vpo.h
275+
gfx/drivers/rsx_shaders/modern_alpha_blend.fpo
276+
gfx/drivers/rsx_shaders/modern_alpha_blend.vpo
277+
gfx/drivers/rsx_shaders/modern_opaque.fpo
278+
gfx/drivers/rsx_shaders/modern_opaque.vpo
279+
pkg/psl1ght/pkg/USRDIR/shaders_cg/
280+
!pkg/psl1ght/pkg/USRDIR/system/

Makefile.common

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,11 +1687,15 @@ ifeq ($(HAVE_VULKAN), 1)
16871687
endif
16881688

16891689
ifeq ($(HAVE_OPENGL_CORE), 1)
1690-
OBJ += gfx/drivers/gl3.o \
1691-
gfx/drivers_shader/shader_gl3.o
1690+
OBJ += gfx/drivers/gl3.o
16921691

16931692
DEFINES += -DHAVE_OPENGL_CORE
1694-
NEED_CXX_LINKER = 1
1693+
1694+
ifeq ($(HAVE_SLANG), 1)
1695+
OBJ += gfx/drivers_shader/shader_gl3.o
1696+
1697+
NEED_CXX_LINKER = 1
1698+
endif
16951699
endif
16961700

16971701
ifeq ($(HAVE_OMAP), 1)

Makefile.webos

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ endif
1414
WEBOS_FREETYPE_CONFIG ?= $(STAGING_DIR)/usr/bin/freetype-config
1515

1616
WEBOS_INC_DIR ?= $(STAGING_DIR)/usr/include
17-
WEBOS_LIB_DIR ?= $(STAGING_DIR)/usr/lib
17+
WEBOS_USR_LIB_DIR ?= $(STAGING_DIR)/usr/lib
18+
WEBOS_LIB_DIR ?= $(STAGING_DIR)/lib
1819

1920
ADD_SDL2_LIB ?= 0
2021
SDL2_PREBUILT_ARCHIVE ?= https://github.com/webosbrew/SDL-webOS/releases/download/release-2.30.12-webos.1/SDL2-2.30.12-webos-abi.tar.gz
@@ -145,7 +146,7 @@ CXXFLAGS := $(ARCHFLAGS) -fno-exceptions -fno-rtti -std=c++11 -D__STDC_CONSTANT_
145146
ASFLAGS := $(ARCHFLAGS)
146147
LDFLAGS := -Wl,-rpath=\$$ORIGIN/lib,--gc-sections
147148
INCLUDE_DIRS = -I$(WEBOS_INC_DIR)
148-
LIBRARY_DIRS = -L$(WEBOS_LIB_DIR)
149+
LIBRARY_DIRS = -L$(WEBOS_USR_LIB_DIR)
149150
DEFINES := -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 -UHAVE_STATIC_DUMMY
150151
DEFINES += -DHAVE_C99=1 -DHAVE_CXX=1 -D_GNU_SOURCE
151152
DEFINES += -DHAVE_GETOPT_LONG=1 -DHAVE_STRCASESTR=1 -DHAVE_DYNAMIC=1
@@ -285,7 +286,8 @@ ipk: $(TARGET) sdl2
285286
mkdir -p webos/dist/lib
286287
echo "$$APPINFO" > webos/dist/appinfo.json
287288
cp -t webos/dist -vf $(TARGET) webos/icon160.png
288-
cp -t webos/dist/lib -vf $(WEBOS_LIB_DIR)/libstdc++.so.6
289+
cp -t webos/dist/lib -vf $(WEBOS_USR_LIB_DIR)/libstdc++.so.6
290+
cp -t webos/dist/lib -vf $(WEBOS_LIB_DIR)/libatomic.so.1
289291
ifeq ($(ADD_SDL2_LIB), 1)
290292
cp -t webos/dist/lib -vf SDL/lib/libSDL2-2.0.so.0
291293
endif

audio/audio_driver.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ microphone_driver_t *microphone_drivers[] = {
231231
#ifdef HAVE_PIPEWIRE
232232
&microphone_pipewire,
233233
#endif
234-
#if defined(HAVE_COREAUDIO) && IOS
234+
#if defined(HAVE_COREAUDIO)
235235
&microphone_coreaudio,
236236
#endif
237237
&microphone_null,
@@ -483,9 +483,9 @@ static void audio_driver_flush(audio_driver_state_t *audio_st,
483483
dsp_data.output_frames = 0;
484484

485485
/* Initialize the DSP input/output.
486-
* Our DSP implementations generally operate directly on the
486+
* Our DSP implementations generally operate directly on the
487487
* input buffer, so the output/output_frames attributes here are zero;
488-
* the DSP filter will set them to useful values, most likely to be
488+
* the DSP filter will set them to useful values, most likely to be
489489
* the same as the inputs. */
490490

491491
retro_dsp_filter_process(audio_st->dsp, &dsp_data);
@@ -565,7 +565,7 @@ static void audio_driver_flush(audio_driver_state_t *audio_st,
565565
audio_st->avg_flush_delta = audio_st->avg_flush_delta * (n - 1) / n +
566566
(flush_time - audio_st->last_flush_time) / n;
567567

568-
/* How much does the avg_flush_delta deviate
568+
/* How much does the avg_flush_delta deviate
569569
* from the delta at 1.0x speed? */
570570
src_data.ratio *=
571571
MAX(AUDIO_MIN_RATIO,
@@ -598,7 +598,7 @@ static void audio_driver_flush(audio_driver_state_t *audio_st,
598598
#endif
599599

600600
/* Now we write our processed audio output to the driver.
601-
* It may not be played immediately, depending on
601+
* It may not be played immediately, depending on
602602
* the driver implementation. */
603603
{
604604
const void *output_data = audio_st->output_samples_buf;
@@ -686,14 +686,14 @@ bool audio_driver_init_internal(void *settings_data, bool audio_cb_inited)
686686
audio_driver_st.output_samples_conv_buf_length = outsamples_max * sizeof(int16_t);
687687
audio_driver_st.chunk_block_size = AUDIO_CHUNK_SIZE_BLOCKING;
688688
audio_driver_st.chunk_nonblock_size = AUDIO_CHUNK_SIZE_NONBLOCKING;
689-
audio_driver_st.chunk_size = audio_driver_st.chunk_block_size;
689+
audio_driver_st.chunk_size = AUDIO_CHUNK_SIZE_BLOCKING;
690690

691691
if (!audio_enable)
692692
{
693693
audio_driver_st.flags &= ~AUDIO_FLAG_ACTIVE;
694694
return false;
695695
}
696-
696+
697697
audio_driver_st.flags |= AUDIO_FLAG_ACTIVE;
698698

699699
if (!(audio_driver_find_driver(settings->arrays.audio_driver,
@@ -929,7 +929,7 @@ size_t audio_driver_sample_batch(const int16_t *data, size_t frames)
929929
{
930930
size_t frames_to_write =
931931
(frames_remaining > (AUDIO_CHUNK_SIZE_NONBLOCKING >> 1))
932-
? (AUDIO_CHUNK_SIZE_NONBLOCKING >> 1)
932+
? (AUDIO_CHUNK_SIZE_NONBLOCKING >> 1)
933933
: frames_remaining;
934934

935935
if (recording_push_audio)
@@ -1996,7 +1996,7 @@ bool microphone_driver_start(void)
19961996

19971997
/* If there's an opened microphone that the core turned on... */
19981998
if (microphone->flags & MICROPHONE_FLAG_ACTIVE)
1999-
{
1999+
{
20002000
/* If this microphone was requested before the driver was ready...*/
20012001
if (microphone->flags & MICROPHONE_FLAG_PENDING)
20022002
{
@@ -2035,7 +2035,7 @@ bool microphone_driver_stop(void)
20352035
microphone_driver_state_t *mic_st = &mic_driver_st;
20362036
retro_microphone_t *microphone = &mic_st->microphone;
20372037

2038-
/* If there's an opened microphone that the core
2038+
/* If there's an opened microphone that the core
20392039
* turned on and received... */
20402040
if ( (microphone->flags & MICROPHONE_FLAG_ACTIVE)
20412041
&& (microphone->flags & MICROPHONE_FLAG_ENABLED)

audio/audio_thread_wrapper.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,23 +251,19 @@ static bool audio_thread_use_float(void *data)
251251

252252
static ssize_t audio_thread_write(void *data, const void *s, size_t len)
253253
{
254-
ssize_t ret;
254+
ssize_t _len;
255255
audio_thread_t *thr = (audio_thread_t*)data;
256-
257256
if (!thr)
258257
return 0;
259-
260-
ret = thr->driver->write(thr->driver_data, s, len);
261-
262-
if (ret < 0)
258+
_len = thr->driver->write(thr->driver_data, s, len);
259+
if (_len < 0)
263260
{
264261
slock_lock(thr->lock);
265262
thr->alive = false;
266263
scond_signal(thr->cond);
267264
slock_unlock(thr->lock);
268265
}
269-
270-
return ret;
266+
return _len;
271267
}
272268

273269
static const audio_driver_t audio_thread = {

0 commit comments

Comments
 (0)