Skip to content

Instantly share code, notes, and snippets.

test cpu::tests::test_add_1 ... ok
test cpu::tests::test_branch_in_branch_delay ... FAILED
test cpu::tests::test_beq ... FAILED
test cpu::tests::test_arithmetic_branching_test ... FAILED
//! This file is automatically generated using psxunittest:
//! https://github.com/daeken/psxunittest
//!
//! /!\ DO NOT EDIT DIRECTLY /!\
use gpu::{Gpu, VideoClock};
use memory::{Interconnect, Addressable};
use memory;
use bios::Bios;
Shader compilation failed:
#version 330 core
uniform sampler2D fb_texture; uniform uint dither_scaling; uniform uint draw_semi_transparent; uniform uint texture_flt; uniform uint tww; uniform uint twh; uniform uint twx; uniform uint twy; in vec3 frag_shading_color; flat in uvec2 frag_texture_page; in vec2 frag_texture_coord; flat in uvec2 frag_clut; flat in uint frag_texture_blend_mode; flat in uint frag_depth_shift; flat in uint frag_dither; flat in uint frag_semi_transparent; out vec4 frag_color; const uint BLEND_MODE_NO_TEXTURE = 0U; const uint BLEND_MODE_RAW_TEXTURE = 1U; const uint BLEND_MODE_TEXTURE_BLEND = 2U; const uint FILTER_MODE_NEAREST = 0U; const uint FILTER_MODE_3POINT = 1U; vec4 vram_get_pixel(int x, int y) { return texelFetch(fb_texture, ivec2(x & 0x3ff, y & 1ff), 0); } uint rebuild_psx_color(vec4 color) { uint a = uint(floor(color.a + 0.5)); uint r = uint(floor(color.r * 31. + 0.5)); uint g = uint(floor(color.g * 31. + 0.5)); uint b = uint(floor(color.b * 31. + 0.5)); return (a << 15) | (b <
In file included from rustation-libretro/src/renderer/GlRenderer.h:5:0,
from rustation-libretro/src/renderer/GlRenderer.cpp:1:
rustation-libretro/src/renderer/../retrogl/buffer.h: In member function ‘void DrawBuffer<T>::push_slice(T*, size_t)’:
rustation-libretro/src/renderer/../retrogl/buffer.h:217:64: error: there are no arguments to ‘printf’ that depend on a template parameter, so a declaration of ‘printf’ must be available [-fpermissive]
printf("DrawBuffer::push_slice() - Out of memory\n");
^
rustation-libretro/src/renderer/../retrogl/buffer.h:217:64: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from rsx/../rustation-libretro/src/retrogl/../renderer/GlRenderer.h:5:0,
from rsx/../rustation-libretro/src/retrogl/retrogl.h:8,
from rsx/rsx_lib_gl.h:7,
Those are all very approximate timings, they can vary by a significant
amount between calls.
| Step | Duration (CPU cycles) |
|------------------------------------------+-----------------------|
| Command register write -> param transfer | [9400; 15400][fn:1] |
| Param transfer (if any) | 1800 * n |
| Command execution | 2000 |
| RX FIFO clear | 2000 |
| Push response | 1500 * n[fn:2] |
RetroArch [INFO] :: [Shader driver]: Using Cg shader backend.
RetroArch [ERROR] :: Invalid profile type
RetroArch [INFO] :: CG: Destroying programs.
RetroArch [ERROR] :: [GL]: Failed to initialize shader, falling back to stock.
RetroArch [INFO] :: [Shader driver]: Using Cg shader backend.
RetroArch [ERROR] :: Invalid profile type
RetroArch [INFO] :: CG: Destroying programs.
RetroArch [ERROR] :: [GL]: Shader initialization failed.
RetroArch [ERROR] :: Cannot open video driver ... Exiting ...
RetroArch [ERROR] :: Fatal error received in: "init_video()"
==12422== Use of uninitialised value of size 8
==12422== at 0x9408653: tolower (in /lib/x86_64-linux-gnu/libc-2.22.so)
==12422== by 0x4C2D90D: strcasecmp (vg_replace_strmem.c:687)
==12422== by 0x420A32: string_list_find_elem_prefix (string_list.c:270)
==12422== by 0x41F587: parse_dir_entry (dir_list.c:113)
==12422== by 0x420A32: string_list_find_elem_prefix (string_list.c:270)
==12422== by 0x41F587: parse_dir_entry (dir_list.c:113)
==12422== by 0x41F587: dir_list_new (dir_list.c:193)
==12422== by 0x420D44: dir_list_new_special (list_special.c:112)
==12422== by 0x418C52: shader_dir_init (runloop.c:292)
** Timing model
Those are all very approximate timings, they can vary by a significant
amount between calls.
| Step | Duration (CPU cycles) |
|------------------------------------------+-----------------------|
| Command register write -> param transfer | [9400; 1540][fn:1] |
| Param transfer (if any) | 1800 * n |
| Command execution | 2000 |
Target framebuffer size: 2048x1920
RetroArch [INFO] :: Environ SET_GEOMETRY.
RetroArch [INFO] :: SET_GEOMETRY: 2048x1920, aspect: 1.333.
DrawBuffer::bind() - BINDING BUFFER ID 50 AS A GL_ARRAY_BUFFER
DrawBuffer::bind() - BINDING BUFFER ID 50 AS A GL_ARRAY_BUFFER
DrawBuffer::draw() - BUFFER ID 50
DrawBuffer::draw() - BINDING VAO ID 4
DrawBuffer::draw() - BINDING PROGRAM ID 15
DrawBuffer::bind() - BINDING BUFFER ID 49 AS A GL_ARRAY_BUFFER
DrawBuffer::bind() - BINDING BUFFER ID 49 AS A GL_ARRAY_BUFFER
#version 330 core
uniform sampler2D fb_texture;
// Scaling to apply to the dither pattern
uniform uint dither_scaling;
in vec3 frag_shading_color;
// Texture page: base offset for texture lookup.
flat in uvec2 frag_texture_page;