Skip to content

Commit 8da7189

Browse files
committed
Merge branch 'master' into libretro
2 parents 73f4804 + 5a8d6b0 commit 8da7189

6 files changed

Lines changed: 21 additions & 22 deletions

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ OBJS += frontend/libpicofe/linux/in_evdev.o
373373
endif
374374
ifeq "$(HAVE_GLES)" "1"
375375
OBJS += frontend/libpicofe/gl.o frontend/libpicofe/gl_platform.o
376-
LDLIBS += $(LDLIBS_GLES)
376+
OBJS += frontend/libpicofe/gl_loader.o
377+
#LDLIBS += $(LDLIBS_GLES) # loaded dynamically now
377378
frontend/libpicofe/plat_sdl.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)
378379
frontend/libpicofe/gl_platform.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)
379380
frontend/libpicofe/gl.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)

configure

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -519,17 +519,6 @@ EOF
519519
fi
520520
fi
521521

522-
# check for VideoCore stuff for Raspberry Pi
523-
if [ -d /opt/vc/include -a -d /opt/vc/lib -a "$VIDEOCORE" != "no" ]; then
524-
CFLAGS_GLES="$CFLAGS_GLES -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
525-
LDLIBS_GLES="$LDLIBS_GLES -L/opt/vc/lib"
526-
if [ -f /opt/vc/lib/libbcm_host.so ]; then
527-
LDLIBS_GLES="$LDLIBS_GLES -lbcm_host"
528-
fi
529-
need_xlib="yes"
530-
VIDEOCORE="yes"
531-
fi
532-
533522
# check for GLES headers
534523
cat > $TMPC <<EOF
535524
#include <GLES/gl.h>
@@ -538,15 +527,14 @@ int main(void) {
538527
return (int)eglGetDisplay( (EGLNativeDisplayType)0 );
539528
}
540529
EOF
541-
if [ "$VIDEOCORE" = "yes" ] && compile_binary $CFLAGS_GLES -lbrcmEGL -lbrcmGLESv2 $LDLIBS_GLES; then
542-
have_gles="yes"
543-
LDLIBS_GLES="-lbrcmEGL -lbrcmGLESv2 $LDLIBS_GLES"
544-
elif compile_binary $CFLAGS_GLES -lEGL -lGLES_CM $LDLIBS_GLES; then
530+
if compile_binary $CFLAGS_GLES -lEGL -lGLES_CM $LDLIBS_GLES; then
545531
have_gles="yes"
546532
LDLIBS_GLES="-lEGL -lGLES_CM $LDLIBS_GLES"
547533
elif compile_binary $CFLAGS_GLES -lEGL -lGLESv1_CM $LDLIBS_GLES; then
548534
have_gles="yes"
549535
LDLIBS_GLES="-lEGL -lGLESv1_CM $LDLIBS_GLES"
536+
elif compile_object $CFLAGS_GLES; then
537+
have_gles="yes"
550538
fi
551539

552540
if check_c64_tools; then
@@ -563,7 +551,7 @@ if [ "$have_dynamic" = "yes" ]; then
563551
if [ "$builtin_gpu" != "unai" ]; then
564552
plugins="$plugins plugins/gpu_unai/gpu_unai.so"
565553
fi
566-
if [ "$have_gles" = "yes" ]; then
554+
if [ "$have_gles" = "yes" -a "x$LDLIBS_GLES" != "x" ]; then
567555
plugins="$plugins plugins/gpu-gles/gpu_gles.so"
568556
fi
569557
if [ "$have_neon_gpu" = "yes" -a "$builtin_gpu" != "neon" ]; then

frontend/menu.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,8 +1404,8 @@ static menu_entry e_menu_gfx_options[] =
14041404
mee_enum ("Video output mode", MA_OPT_VOUT_MODE, plat_target.vout_method, men_dummy),
14051405
mee_onoff ("Fullscreen mode", MA_OPT_VOUT_FULL, plat_target.vout_fullscreen, 1),
14061406
mee_onoff ("Software Scaling", MA_OPT_SCALER2, soft_scaling, 1),
1407-
mee_enum ("Hardware Filter", MA_OPT_HWFILTER, plat_target.hwfilter, men_dummy),
14081407
mee_enum_h ("Software Filter", MA_OPT_SWFILTER, soft_filter, men_soft_filter, h_soft_filter),
1408+
mee_enum ("Hardware Filter", MA_OPT_HWFILTER, plat_target.hwfilter, men_dummy),
14091409
#ifdef HAVE_NEON32
14101410
mee_enum ("Scanlines", MA_OPT_SCANLINES, scanlines, men_scanlines),
14111411
mee_range_h ("Scanline brightness", MA_OPT_SCANLINE_LEVEL, scanline_level, 0, 100, h_scanline_l),
@@ -1452,6 +1452,7 @@ static menu_entry e_menu_plugin_gpu_unai[] =
14521452
mee_onoff ("Lighting", 0, pl_rearmed_cbs.gpu_unai.lighting, 1),
14531453
mee_onoff ("Fast lighting", 0, pl_rearmed_cbs.gpu_unai.fast_lighting, 1),
14541454
mee_onoff ("Blending", 0, pl_rearmed_cbs.gpu_unai.blending, 1),
1455+
mee_onoff ("Downscale Hi-Res", 0, pl_rearmed_cbs.gpu_unai.scale_hires, 1),
14551456
mee_end,
14561457
};
14571458

@@ -2701,7 +2702,7 @@ void menu_init(void)
27012702
me_enable(e_menu_gfx_options, MA_OPT_VSYNC, 0);
27022703

27032704
me_enable(e_menu_gfx_options, MA_OPT_GAMMA, plat_target.gamma_set != NULL);
2704-
#ifdef HAVE_NEON32
2705+
#ifndef HAVE_NEON32
27052706
me_enable(e_menu_gfx_options, MA_OPT_SWFILTER, 0);
27062707
#endif
27072708
me_enable(e_menu_gfx_options, MA_OPT_VARSCALER, MENU_SHOW_VARSCALER);

frontend/plat_sdl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static void gl_finish_pl(void)
331331
{
332332
if (plugin_owns_display() && GPU_close != NULL)
333333
GPU_close();
334-
gl_finish();
334+
gl_destroy();
335335
}
336336

337337
static void gl_resize(void)
@@ -352,7 +352,7 @@ static void gl_resize(void)
352352
return;
353353
gl_finish_pl();
354354
}
355-
plat_sdl_gl_active = (gl_init(display, window, &gl_quirks, w, h) == 0);
355+
plat_sdl_gl_active = (gl_create(window, &gl_quirks, w, h) == 0);
356356
if (plat_sdl_gl_active)
357357
gl_w_prev = w, gl_h_prev = h, gl_quirks_prev = gl_quirks;
358358
else {
@@ -774,6 +774,7 @@ void plat_video_menu_leave(void)
774774
change_mode(fs_w, fs_h);
775775
overlay_or_gl_check_enable();
776776
centered_clear();
777+
setup_blit_callbacks(psx_w, psx_h);
777778

778779
for (d = 0; d < IN_MAX_DEVS; d++)
779780
in_set_config_int(d, IN_CFG_ANALOG_MAP_ULDR, 0);

libpcsxcore/cdriso.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,14 @@ int ISOopen(const char *fname)
14941494
isMode1ISO = TRUE;
14951495
}
14961496
}
1497+
if (cdHandle && numtracks == 0) {
1498+
// assume some metadata-less format
1499+
numtracks = 1;
1500+
ti[1].type = DATA;
1501+
ti[1].start_offset = 0;
1502+
sec2msf(2 * 75, ti[1].start);
1503+
sec2msf(isMode1ISO ? size_main / 2048u : size_main / 2352u, ti[1].length);
1504+
}
14971505

14981506
SysPrintf("%s (%lld bytes).\n", image_str, (long long)size_main);
14991507

0 commit comments

Comments
 (0)