mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 09:48:27 +00:00
Update logs
This commit is contained in:
parent
396857db9a
commit
a72cdb77ad
@ -123,7 +123,7 @@ static bool d3d_init_imports(d3d_video_t *d3d)
|
||||
state_tracker = state_tracker_init(&tracker_info);
|
||||
if (!state_tracker)
|
||||
{
|
||||
RARCH_ERR("Failed to initialize state tracker.\n");
|
||||
RARCH_ERR("[D3D]: Failed to initialize state tracker.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -155,7 +155,7 @@ static bool d3d_init_chain(d3d_video_t *d3d, const video_info_t *video_info)
|
||||
if (!renderchain_init_first(&d3d->renderchain_driver,
|
||||
&d3d->renderchain_data))
|
||||
{
|
||||
RARCH_ERR("Renderchain could not be initialized.\n");
|
||||
RARCH_ERR("[D3D]: Renderchain could not be initialized.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -174,7 +174,7 @@ static bool d3d_init_chain(d3d_video_t *d3d, const video_info_t *video_info)
|
||||
return false;
|
||||
}
|
||||
|
||||
RARCH_LOG("Renderchain driver: %s\n", d3d->renderchain_driver->ident);
|
||||
RARCH_LOG("[D3D]: Renderchain driver: %s\n", d3d->renderchain_driver->ident);
|
||||
|
||||
#ifndef _XBOX
|
||||
current_width = link_info.tex_w;
|
||||
@ -199,7 +199,7 @@ static bool d3d_init_chain(d3d_video_t *d3d, const video_info_t *video_info)
|
||||
if (!d3d->renderchain_driver->add_pass(
|
||||
d3d->renderchain_data, &link_info))
|
||||
{
|
||||
RARCH_ERR("[D3D9]: Failed to add pass.\n");
|
||||
RARCH_ERR("[D3D]: Failed to add pass.\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -207,12 +207,12 @@ static bool d3d_init_chain(d3d_video_t *d3d, const video_info_t *video_info)
|
||||
|
||||
if (!d3d_init_luts(d3d))
|
||||
{
|
||||
RARCH_ERR("[D3D9]: Failed to init LUTs.\n");
|
||||
RARCH_ERR("[D3D]: Failed to init LUTs.\n");
|
||||
return false;
|
||||
}
|
||||
if (!d3d_init_imports(d3d))
|
||||
{
|
||||
RARCH_ERR("[D3D9]: Failed to init imports.\n");
|
||||
RARCH_ERR("[D3D]: Failed to init imports.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -249,13 +249,13 @@ static bool d3d_init_singlepass(d3d_video_t *d3d)
|
||||
static bool d3d_init_multipass(d3d_video_t *d3d)
|
||||
{
|
||||
unsigned i;
|
||||
bool use_extra_pass;
|
||||
bool use_extra_pass = false;
|
||||
video_shader_pass *pass = NULL;
|
||||
config_file_t *conf = config_file_new(d3d->shader_path.c_str());
|
||||
|
||||
if (!conf)
|
||||
{
|
||||
RARCH_ERR("Failed to load preset.\n");
|
||||
RARCH_ERR("[D3D]: Failed to load preset.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -264,7 +264,7 @@ static bool d3d_init_multipass(d3d_video_t *d3d)
|
||||
if (!video_shader_read_conf_cgp(conf, &d3d->shader))
|
||||
{
|
||||
config_file_free(conf);
|
||||
RARCH_ERR("Failed to parse CGP file.\n");
|
||||
RARCH_ERR("[D3D]: Failed to parse CGP file.\n");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
@ -272,7 +272,7 @@ static bool d3d_init_multipass(d3d_video_t *d3d)
|
||||
#ifdef HAVE_SHADERPIPELINE
|
||||
video_shader_resolve_relative(&d3d->shader, d3d->shader_path.c_str());
|
||||
#endif
|
||||
RARCH_LOG("[D3D9 Meta-Cg] Found %u shaders.\n", d3d->shader.passes);
|
||||
RARCH_LOG("[D3D]: Found %u shaders.\n", d3d->shader.passes);
|
||||
|
||||
for (i = 0; i < d3d->shader.passes; i++)
|
||||
{
|
||||
@ -618,7 +618,7 @@ static bool d3d_init_base(void *data, const video_info_t *info)
|
||||
g_pD3D = D3DCREATE_CTX(D3D_SDK_VERSION);
|
||||
if (!g_pD3D)
|
||||
{
|
||||
RARCH_ERR("Failed to create D3D interface.\n");
|
||||
RARCH_ERR("[D3D]: Failed to create D3D interface.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -645,7 +645,7 @@ static bool d3d_init_base(void *data, const video_info_t *info)
|
||||
&d3dpp,
|
||||
&d3d->dev)))
|
||||
{
|
||||
RARCH_ERR("Failed to initialize device.\n");
|
||||
RARCH_ERR("[D3D]: Failed to initialize device.\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -798,7 +798,7 @@ static bool d3d_initialize(d3d_video_t *d3d, const video_info_t *info)
|
||||
|
||||
if (!d3d_init_chain(d3d, info))
|
||||
{
|
||||
RARCH_ERR("Failed to initialize render chain.\n");
|
||||
RARCH_ERR("[D3D]: Failed to initialize render chain.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -508,7 +508,7 @@ static void drm_plane_setup(struct drm_surface *surface)
|
||||
drm.plane_fb_prop_id = get_plane_prop_id(drm.plane_id, "FB_ID");
|
||||
if (!drm.plane_fb_prop_id)
|
||||
{
|
||||
RARCH_LOG("DRM: Can't get the FB property ID for plane(%u)\n", drm.plane_id);
|
||||
RARCH_LOG("[DRM]: Can't get the FB property ID for plane(%u)\n", drm.plane_id);
|
||||
}
|
||||
|
||||
/* Note src coords (last 4 args) are in Q16 format
|
||||
@ -538,15 +538,15 @@ static void drm_plane_setup(struct drm_surface *surface)
|
||||
plane_flags, plane_x, plane_y, plane_w, plane_h,
|
||||
src_x<<16, src_y<<16, src_w<<16, src_h<<16))
|
||||
{
|
||||
RARCH_ERR("DRM: failed to enable plane: %s\n", strerror(errno));
|
||||
RARCH_ERR("[DRM]: failed to enable plane: %s\n", strerror(errno));
|
||||
}
|
||||
|
||||
RARCH_LOG("DRM: src_w %d, src_h %d, plane_w %d, plane_h %d\n",
|
||||
RARCH_LOG("[DRM]: src_w %d, src_h %d, plane_w %d, plane_h %d\n",
|
||||
src_w, src_h, plane_w, plane_h);
|
||||
|
||||
/* Report what plane (of overlay type) we're using. */
|
||||
drm_format_name(surface->pixformat, fmt_name);
|
||||
RARCH_LOG("DRM: Using plane with ID %d on CRTC ID %d format %s\n",
|
||||
RARCH_LOG("[DRM]: Using plane with ID %d on CRTC ID %d format %s\n",
|
||||
drm.plane_id, drm.crtc_id, fmt_name);
|
||||
}
|
||||
|
||||
|
@ -456,7 +456,7 @@ static void gx_set_video_mode(void *data, unsigned fbWidth, unsigned lines,
|
||||
VIDEO_Flush();
|
||||
VIDEO_WaitVSync();
|
||||
|
||||
RARCH_LOG("GX Resolution: %dx%d (%s)\n", gx_mode.fbWidth,
|
||||
RARCH_LOG("[GX]: Resolution: %dx%d (%s)\n", gx_mode.fbWidth,
|
||||
gx_mode.efbHeight, (gx_mode.viTVMode & 3) == VI_INTERLACE
|
||||
? "interlaced" : "progressive");
|
||||
|
||||
@ -611,7 +611,7 @@ static void init_vtx(void *data, const video_info_t *video)
|
||||
|
||||
if (gx->scale != video->input_scale || gx->rgb32 != video->rgb32)
|
||||
{
|
||||
RARCH_LOG("[GX] reallocate texture\n");
|
||||
RARCH_LOG("[GX]: Reallocate texture.\n");
|
||||
free(g_tex.data);
|
||||
g_tex.data = memalign(32,
|
||||
RARCH_SCALE_BASE * RARCH_SCALE_BASE * video->input_scale *
|
||||
@ -620,7 +620,7 @@ static void init_vtx(void *data, const video_info_t *video)
|
||||
|
||||
if (!g_tex.data)
|
||||
{
|
||||
RARCH_ERR("[GX] Error allocating video texture\n");
|
||||
RARCH_ERR("[GX]: Error allocating video texture\n");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
@ -248,7 +248,7 @@ static void sdl2_init_renderer(sdl2_video_t *vid)
|
||||
|
||||
if (!vid->renderer)
|
||||
{
|
||||
RARCH_ERR("[SDL]: Failed to initialize renderer: %s", SDL_GetError());
|
||||
RARCH_ERR("[SDL2]: Failed to initialize renderer: %s", SDL_GetError());
|
||||
return;
|
||||
}
|
||||
|
||||
@ -362,7 +362,7 @@ static void sdl_refresh_input_size(sdl2_video_t *vid, bool menu, bool rgb32,
|
||||
|
||||
if (!target->tex)
|
||||
{
|
||||
RARCH_ERR("Failed to create %s texture: %s\n", menu ? "menu" : "main",
|
||||
RARCH_ERR("[SDL2]: Failed to create %s texture: %s\n", menu ? "menu" : "main",
|
||||
SDL_GetError());
|
||||
return;
|
||||
}
|
||||
@ -402,7 +402,7 @@ static void *sdl2_gfx_init(const video_info_t *video,
|
||||
if (!vid)
|
||||
return NULL;
|
||||
|
||||
RARCH_LOG("[SDL]: Available renderers (change with $SDL_RENDER_DRIVER):\n");
|
||||
RARCH_LOG("[SDL2]: Available renderers (change with $SDL_RENDER_DRIVER):\n");
|
||||
for (i = 0; i < SDL_GetNumRenderDrivers(); ++i)
|
||||
{
|
||||
SDL_RendererInfo renderer;
|
||||
@ -410,7 +410,7 @@ static void *sdl2_gfx_init(const video_info_t *video,
|
||||
RARCH_LOG("\t%s\n", renderer.name);
|
||||
}
|
||||
|
||||
RARCH_LOG("[SDL]: Available displays:\n");
|
||||
RARCH_LOG("[SDL2]: Available displays:\n");
|
||||
for(i = 0; i < SDL_GetNumVideoDisplays(); ++i)
|
||||
{
|
||||
SDL_DisplayMode mode;
|
||||
@ -436,7 +436,7 @@ static void *sdl2_gfx_init(const video_info_t *video,
|
||||
|
||||
if (!vid->window)
|
||||
{
|
||||
RARCH_ERR("[SDL]: Failed to init SDL window: %s\n", SDL_GetError());
|
||||
RARCH_ERR("[SDL2]: Failed to init SDL window: %s\n", SDL_GetError());
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -712,7 +712,7 @@ static void sdl2_poke_set_osd_msg(void *data, const char *msg,
|
||||
{
|
||||
sdl2_video_t *vid = (sdl2_video_t*)data;
|
||||
sdl2_render_msg(vid, msg);
|
||||
RARCH_LOG("[SDL]: OSD MSG: %s\n", msg);
|
||||
RARCH_LOG("[SDL2]: OSD MSG: %s\n", msg);
|
||||
}
|
||||
|
||||
static void sdl2_show_mouse(void *data, bool state)
|
||||
|
@ -270,7 +270,7 @@ static void *sdl_gfx_init(const video_info_t *video, const input_driver_t **inpu
|
||||
|
||||
if (!vid->screen)
|
||||
{
|
||||
RARCH_ERR("[SDL]: Failed to init SDL surface: %s\n", SDL_GetError());
|
||||
RARCH_ERR("[SDL1]: Failed to init SDL surface: %s\n", SDL_GetError());
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -309,7 +309,7 @@ static void *sdl_gfx_init(const video_info_t *video, const input_driver_t **inpu
|
||||
|
||||
if (!vid->menu.frame)
|
||||
{
|
||||
RARCH_ERR("[SDL]: Failed to init menu surface: %s\n", SDL_GetError());
|
||||
RARCH_ERR("[SDL1]: Failed to init menu surface: %s\n", SDL_GetError());
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,7 @@ static void xv_init_font(xv_t *xv, const char *font_path, unsigned font_size)
|
||||
r, g, b);
|
||||
}
|
||||
else
|
||||
RARCH_LOG("Could not initialize fonts.\n");
|
||||
RARCH_LOG("[XVideo]: Could not initialize fonts.\n");
|
||||
}
|
||||
|
||||
/* We render @ 2x scale to combat chroma downsampling.
|
||||
@ -453,7 +453,7 @@ static void *xv_init(const video_info_t *video,
|
||||
|
||||
if (!XShmQueryExtension(g_x11_dpy))
|
||||
{
|
||||
RARCH_ERR("XVideo: XShm extension not found.\n");
|
||||
RARCH_ERR("[XVideo]: XShm extension not found.\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -483,14 +483,14 @@ static void *xv_init(const video_info_t *video,
|
||||
xv->depth = adaptor_info[i].formats->depth;
|
||||
xv->visualid = adaptor_info[i].formats->visual_id;
|
||||
|
||||
RARCH_LOG("XVideo: Found suitable XvPort #%u\n", (unsigned)xv->port);
|
||||
RARCH_LOG("[XVideo]: Found suitable XvPort #%u\n", (unsigned)xv->port);
|
||||
break;
|
||||
}
|
||||
XvFreeAdaptorInfo(adaptor_info);
|
||||
|
||||
if (xv->port == 0)
|
||||
{
|
||||
RARCH_ERR("XVideo: Failed to find valid XvPort or format.\n");
|
||||
RARCH_ERR("[XVideo]: Failed to find valid XvPort or format.\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -506,7 +506,7 @@ static void *xv_init(const video_info_t *video,
|
||||
|
||||
if (visualmatches < 1 || !visualinfo->visual)
|
||||
{
|
||||
RARCH_ERR("XVideo: Unable to find Xv-compatible visual.\n");
|
||||
RARCH_ERR("[XVideo]: Unable to find Xv-compatible visual.\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -571,7 +571,7 @@ static void *xv_init(const video_info_t *video,
|
||||
|
||||
if (!xv->image)
|
||||
{
|
||||
RARCH_ERR("XVideo: XShmCreateImage failed.\n");
|
||||
RARCH_ERR("[XVideo]: XShmCreateImage failed.\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -583,7 +583,7 @@ static void *xv_init(const video_info_t *video,
|
||||
|
||||
if (!XShmAttach(g_x11_dpy, &xv->shminfo))
|
||||
{
|
||||
RARCH_ERR("XVideo: XShmAttach failed.\n");
|
||||
RARCH_ERR("[XVideo]: XShmAttach failed.\n");
|
||||
goto error;
|
||||
}
|
||||
XSync(g_x11_dpy, False);
|
||||
@ -646,7 +646,7 @@ static bool xv_check_resize(xv_t *xv, unsigned width, unsigned height)
|
||||
|
||||
if (xv->image == None)
|
||||
{
|
||||
RARCH_ERR("Failed to create image.\n");
|
||||
RARCH_ERR("[XVideo]: Failed to create image.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -658,7 +658,7 @@ static bool xv_check_resize(xv_t *xv, unsigned width, unsigned height)
|
||||
|
||||
if (xv->shminfo.shmid < 0)
|
||||
{
|
||||
RARCH_ERR("Failed to init SHM.\n");
|
||||
RARCH_ERR("[XVideo]: Failed to init SHM.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -668,7 +668,7 @@ static bool xv_check_resize(xv_t *xv, unsigned width, unsigned height)
|
||||
|
||||
if (!XShmAttach(g_x11_dpy, &xv->shminfo))
|
||||
{
|
||||
RARCH_ERR("Failed to reattch XvShm image.\n");
|
||||
RARCH_ERR("[XVideo]: Failed to reattch XvShm image.\n");
|
||||
return false;
|
||||
}
|
||||
XSync(g_x11_dpy, False);
|
||||
|
Loading…
Reference in New Issue
Block a user