{"action":"created","issue":{"url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1499","repository_url":"https://api.github.com/repos/PCSX2/pcsx2","labels_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1499/labels{/name}","comments_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1499/comments","events_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1499/events","html_url":"https://github.com/PCSX2/pcsx2/issues/1499","id":168988327,"number":1499,"title":"GSdx: 2 passes alpha test isn't accurate (wrong order)","user":{"login":"gregory38","id":1569559,"avatar_url":"https://avatars.githubusercontent.com/u/1569559?v=3","gravatar_id":"","url":"https://api.github.com/users/gregory38","html_url":"https://github.com/gregory38","followers_url":"https://api.github.com/users/gregory38/followers","following_url":"https://api.github.com/users/gregory38/following{/other_user}","gists_url":"https://api.github.com/users/gregory38/gists{/gist_id}","starred_url":"https://api.github.com/users/gregory38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregory38/subscriptions","organizations_url":"https://api.github.com/users/gregory38/orgs","repos_url":"https://api.github.com/users/gregory38/repos","events_url":"https://api.github.com/users/gregory38/events{/privacy}","received_events_url":"https://api.github.com/users/gregory38/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PCSX2/pcsx2/labels/GSdx:%20Hardware","name":"GSdx: Hardware","color":"006b75"},{"url":"https://api.github.com/repos/PCSX2/pcsx2/labels/Plugin:%20GSdx","name":"Plugin: GSdx","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-08-02T21:04:32Z","updated_at":"2016-08-03T23:11:23Z","closed_at":null,"body":"Game: Kengo\r\nLetters rendering is awful, seem to miss pixels (first screen if you have no memcard save)\r\n\r\nGame will render 2 sprites by letters with Alpha Test enabled (RGBA only, i.e. depth will be discarded if alpha failed the test). Both blending and depth test are enabled too. (note: on this particular case, depth test is useless)\r\n\r\nCurrent algorithm does:\r\n1. render all pixels that pass alpha test (color + depth)\r\n2. render all pixels that fail alpha test (only color)\r\n\r\nThe 2 passes doesn't conserve the order of primitive for blending operation. First primitive could be discarded because it failed the alpha test. And it will only be executed in FS in the 2nd phase of the algorithm.\r\n\r\nThe game uses a constant MAX depth for primitives in GREATER_OR_EQUAL mode. So in this case, we don't need to guarantee the order of the depth buffer (equivalent to ALWAYS). And it would be a solution to compute first color (of all fragments), and then the depth (of fragment that pass the alpha test). However it would be nice to find a generic solution, if possible, as HW is quite limited here."},"comment":{"url":"https://api.github.com/repos/PCSX2/pcsx2/issues/comments/237403346","html_url":"https://github.com/PCSX2/pcsx2/issues/1499#issuecomment-237403346","issue_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1499","id":237403346,"user":{"login":"DPersonalized","id":8225831,"avatar_url":"https://avatars.githubusercontent.com/u/8225831?v=3","gravatar_id":"","url":"https://api.github.com/users/DPersonalized","html_url":"https://github.com/DPersonalized","followers_url":"https://api.github.com/users/DPersonalized/followers","following_url":"https://api.github.com/users/DPersonalized/following{/other_user}","gists_url":"https://api.github.com/users/DPersonalized/gists{/gist_id}","starred_url":"https://api.github.com/users/DPersonalized/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DPersonalized/subscriptions","organizations_url":"https://api.github.com/users/DPersonalized/orgs","repos_url":"https://api.github.com/users/DPersonalized/repos","events_url":"https://api.github.com/users/DPersonalized/events{/privacy}","received_events_url":"https://api.github.com/users/DPersonalized/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T23:11:23Z","updated_at":"2016-08-03T23:11:23Z","body":"@FlatOutPS2 Which of your branches is it? Might give it a spin, myself."}}
{"actor":{"display_login":"DPersonalized"}}