{"action":"created","issue":{"url":"https://api.github.com/repos/libretro/RetroArch/issues/3137","repository_url":"https://api.github.com/repos/libretro/RetroArch","labels_url":"https://api.github.com/repos/libretro/RetroArch/issues/3137/labels{/name}","comments_url":"https://api.github.com/repos/libretro/RetroArch/issues/3137/comments","events_url":"https://api.github.com/repos/libretro/RetroArch/issues/3137/events","html_url":"https://github.com/libretro/RetroArch/issues/3137","id":161543224,"number":3137,"title":"XMB fancy ribbon glitches on AMD GPU","user":{"login":"parkerlreed","id":841440,"avatar_url":"https://avatars.githubusercontent.com/u/841440?v=3","gravatar_id":"","url":"https://api.github.com/users/parkerlreed","html_url":"https://github.com/parkerlreed","followers_url":"https://api.github.com/users/parkerlreed/followers","following_url":"https://api.github.com/users/parkerlreed/following{/other_user}","gists_url":"https://api.github.com/users/parkerlreed/gists{/gist_id}","starred_url":"https://api.github.com/users/parkerlreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkerlreed/subscriptions","organizations_url":"https://api.github.com/users/parkerlreed/orgs","repos_url":"https://api.github.com/users/parkerlreed/repos","events_url":"https://api.github.com/users/parkerlreed/events{/privacy}","received_events_url":"https://api.github.com/users/parkerlreed/received_events","type":"User","site_admin":false},"labels":[{"id":253577597,"url":"https://api.github.com/repos/libretro/RetroArch/labels/minor%20bug","name":"minor bug","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-06-21T21:24:27Z","updated_at":"2016-11-08T18:24:57Z","closed_at":null,"body":"Arch x86_64\nretroarch-git 2:1.3.1.r3132.8a8fadc-1\nLatest assets\n\nhttps://www.youtube.com/watch?v=XeM5J2d7BAs When it happened to me before.\n\nhttps://www.youtube.com/watch?v=4vFZ1Mjg3hw Just now.\n\nA couple of the lines seem to glitch out of place in the animation. I initially thought this had been fixed but it turns out this does not happen on my work machine (Intel i3 CPU with i915 driver). Only on my home desktop (AMD R7 260x using RadeonSI)\n\nHere's the console output on the AMD machine\n\n```\n[parker@x3720 Downloads]$ retroarch -vvv\nRetroArch [INFO] :: === Build =======================================\nCapabilities: MMX MMXEXT SSE1 SSE2 SSE3 \nBuilt: Jun 21 2016\nRetroArch [INFO] :: Version: 1.3.4\nRetroArch [INFO] :: Git: 8a8fadc\nRetroArch [INFO] :: =================================================\nRetroArch [INFO] :: Looking for config in: \"/home/parker/.config/retroarch/retroarch.cfg\".\nRetroArch [WARN] :: SYSTEM DIR is empty, assume CONTENT DIR\nRetroArch [INFO] :: Config: loading config from: /home/parker/.config/retroarch/retroarch.cfg.\nRetroArch [INFO] :: Environ SET_PIXEL_FORMAT: RGB565.\nRetroArch [INFO] :: Version of libretro API: 1\nRetroArch [INFO] :: Compiled against API: 1\nRetroArch [INFO] :: Set audio input rate to: 29975.00 Hz.\nRetroArch [INFO] :: Video @ fullscreen\nRetroArch [ERROR] :: Failed to connect to Wayland server.\nRetroArch [INFO] :: Found GL context: x\nRetroArch [INFO] :: Detecting screen resolution 1920x1080.\nRetroArch [INFO] :: [X11]: Xinerama version: 1.1.\nRetroArch [INFO] :: [X11]: Xinerama screens: 1.\nRetroArch [INFO] :: [GLX]: Using Xinerama on screen #0.\nRetroArch [INFO] :: [GLX]: X = 0, Y = 0, W = 1920, H = 1080.\nRetroArch [INFO] :: [GLX]: Using windowed fullscreen.\nRetroArch [INFO] :: [GLX]: Found swap function: glXSwapIntervalMESA.\nRetroArch [INFO] :: [GLX]: glXSwapInterval(1)\nRetroArch [INFO] :: [GL]: Vendor: X.Org, Renderer: Gallium 0.4 on AMD BONAIRE (DRM 2.43.0 / 4.6.2-1-ARCH, LLVM 3.9.0).\nRetroArch [INFO] :: [GL]: Version: 3.0 Mesa 12.1.0-devel (git-48593ea).\nRetroArch [INFO] :: Querying GL extension: ARB_ES2_compatibility => exists\nRetroArch [INFO] :: Querying GL extension: ARB_sync => exists\nRetroArch [INFO] :: Querying GL extension: ARB_texture_float => exists\nRetroArch [INFO] :: Querying GL extension: EXT_texture_sRGB => exists\nRetroArch [INFO] :: Querying GL extension: ARB_framebuffer_sRGB => exists\nRetroArch [INFO] :: GL: Using resolution 1920x1080\nRetroArch [INFO] :: [GL]: Default shader backend found: glsl.\nRetroArch [INFO] :: [Shader driver]: Using GLSL shader backend.\nRetroArch [INFO] :: Checking GLSL shader support ...\nRetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.\nRetroArch [INFO] :: Found GLSL vertex shader.\nRetroArch [INFO] :: Found GLSL fragment shader.\nRetroArch [INFO] :: Linking GLSL program.\nRetroArch [INFO] :: Found GLSL vertex shader.\nRetroArch [INFO] :: Found GLSL fragment shader.\nRetroArch [INFO] :: Linking GLSL program.\nRetroArch [INFO] :: Found GLSL vertex shader.\nRetroArch [INFO] :: Found GLSL fragment shader.\nRetroArch [INFO] :: Linking GLSL program.\nRetroArch [INFO] :: Found GLSL vertex shader.\nRetroArch [INFO] :: Found GLSL fragment shader.\nRetroArch [INFO] :: Linking GLSL program.\nRetroArch [INFO] :: Found GLSL vertex shader.\nRetroArch [INFO] :: Found GLSL fragment shader.\nRetroArch [INFO] :: Linking GLSL program.\nRetroArch [INFO] :: [GL]: Using 4 textures.\nRetroArch [INFO] :: [GL]: Loaded 1 program(s).\nRetroArch [INFO] :: [GL]: Using GL_RGB565 for texture uploads.\nRetroArch [INFO] :: Found joypad driver: \"udev\".\nRetroArch [INFO] :: Using font rendering backend: freetype.\nRetroArch [INFO] :: Suspending screensaver (X11).\nRetroArch [INFO] :: ALSA: Using signed 16-bit format.\nRetroArch [INFO] :: ALSA: Period size: 768 frames\nRetroArch [INFO] :: ALSA: Buffer size: 3072 frames\nRetroArch [INFO] :: ALSA: Can pause: yes.\nRetroArch [INFO] :: Found menu display driver: \"menu_display_gl\".\nRetroArch [INFO] :: Querying GL extension: ARB_framebuffer_object => exists\nRetroArch [INFO] :: Using font rendering backend: freetype.\nRetroArch [INFO] :: Using font rendering backend: freetype.\nRetroArch [INFO] :: SRAM will not be saved.\nRetroArch [INFO] :: null: [/home/parker/.config/retroarch/content_history.lpl].\nRetroArch [INFO] :: [GL]: VSync => on\nRetroArch [INFO] :: [GLX]: glXSwapInterval(1)\nRetroArch [INFO] :: [GL]: VSync => on\nRetroArch [INFO] :: [GLX]: glXSwapInterval(1)\nRetroArch [INFO] :: Saving config at path: \"/home/parker/.config/retroarch/retroarch.cfg\"\nRetroArch [INFO] :: Saved new config to \"/home/parker/.config/retroarch/retroarch.cfg\".\nRetroArch [INFO] :: [X11]: Xinerama version: 1.1.\nRetroArch [INFO] :: [X11]: Xinerama screens: 1.\nRetroArch [INFO] :: [X11]: Saved monitor #0.\nRetroArch [INFO] :: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.\nRetroArch [INFO] :: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.\n```\n\n@Kivutar \n"},"comment":{"url":"https://api.github.com/repos/libretro/RetroArch/issues/comments/259217585","html_url":"https://github.com/libretro/RetroArch/issues/3137#issuecomment-259217585","issue_url":"https://api.github.com/repos/libretro/RetroArch/issues/3137","id":259217585,"user":{"login":"retrotails","id":10767978,"avatar_url":"https://avatars.githubusercontent.com/u/10767978?v=3","gravatar_id":"","url":"https://api.github.com/users/retrotails","html_url":"https://github.com/retrotails","followers_url":"https://api.github.com/users/retrotails/followers","following_url":"https://api.github.com/users/retrotails/following{/other_user}","gists_url":"https://api.github.com/users/retrotails/gists{/gist_id}","starred_url":"https://api.github.com/users/retrotails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retrotails/subscriptions","organizations_url":"https://api.github.com/users/retrotails/orgs","repos_url":"https://api.github.com/users/retrotails/repos","events_url":"https://api.github.com/users/retrotails/events{/privacy}","received_events_url":"https://api.github.com/users/retrotails/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T18:24:57Z","updated_at":"2016-11-08T18:24:57Z","body":"Can confirm it happens on my RX480, but only with open source drivers. Closed source drivers don't have the issue. It happens with BOTH the normal and simplified ribbon, since they use the same random function. Judging by the magic number in the vertex shader, it looks like it's its from a well-known psuedorandom GLSL function that's been floating around the internet. I think it's dependant on GPU quirks. Here's just the noise function on my desktop and tablet. Notice it compiles on the tablet, yet it's completely black.\r\nhttps://imgur.com/ouxLbsl\r\nAnd the shader\r\nhttp://glslsandbox.com/e#36617.0\r\nOne solution is to use a more complicated noise function. I tried this one\r\nhttps://github.com/ashima/webgl-noise/blob/master/src/noise3D.glsl\r\nHere's a screenshot of it, it's slightly different but it doesn't have the glitch and seems to get 60fps at 4k with no issues still.\r\nhttps://imgur.com/U8KMflI\r\n"}}
{"actor":{"display_login":"retrotails"}}