{"action":"created","issue":{"url":"https://api.github.com/repos/PCSX2/pcsx2/issues/693","labels_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/693/comments","events_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/693/events","html_url":"https://github.com/PCSX2/pcsx2/issues/693","id":98596345,"number":693,"title":"Wrong DATE test on SW for 16 bits RT","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/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/PCSX2/pcsx2/labels/GSdx:%20Software","name":"GSdx: Software","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"gabest11","id":8768197,"avatar_url":"https://avatars.githubusercontent.com/u/8768197?v=3","gravatar_id":"","url":"https://api.github.com/users/gabest11","html_url":"https://github.com/gabest11","followers_url":"https://api.github.com/users/gabest11/followers","following_url":"https://api.github.com/users/gabest11/following{/other_user}","gists_url":"https://api.github.com/users/gabest11/gists{/gist_id}","starred_url":"https://api.github.com/users/gabest11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabest11/subscriptions","organizations_url":"https://api.github.com/users/gabest11/orgs","repos_url":"https://api.github.com/users/gabest11/repos","events_url":"https://api.github.com/users/gabest11/events{/privacy}","received_events_url":"https://api.github.com/users/gabest11/received_events","type":"User","site_admin":false},"milestone":null,"comments":19,"created_at":"2015-08-02T09:31:58Z","updated_at":"2015-08-04T12:59:26Z","closed_at":null,"body":"I hit the issue on haunting ground. The game does a first draw in a 32bits RT and then do a 2nd draw with DATE = 1, DATM = 1 but RT is now 16 bits.\r\n\r\nI think the code expect the 16 bits of MSB to be 0 which is not always true.\r\n\r\nStandard code (non JIT)\r\n```\r\ntest |= fd.srl32(15) == GSVector4i::zero();\r\n```\r\n\r\nJIT code\r\n```\r\nvpxor(ymm0, ymm0);\r\nvpsrld(ymm1, ymm2, 15);\r\nvpcmpeqd(ymm1, ymm0);\r\n```\r\n\r\nHowever DATM = 0 seems to be use 2 shifts to mask the MSB.\r\n```\r\ntest |= fd.sll32(16).sra32(31);\t\t\t\t\r\n```"},"comment":{"url":"https://api.github.com/repos/PCSX2/pcsx2/issues/comments/127596696","html_url":"https://github.com/PCSX2/pcsx2/issues/693#issuecomment-127596696","issue_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/693","id":127596696,"user":{"login":"gabest11","id":8768197,"avatar_url":"https://avatars.githubusercontent.com/u/8768197?v=3","gravatar_id":"","url":"https://api.github.com/users/gabest11","html_url":"https://github.com/gabest11","followers_url":"https://api.github.com/users/gabest11/followers","following_url":"https://api.github.com/users/gabest11/following{/other_user}","gists_url":"https://api.github.com/users/gabest11/gists{/gist_id}","starred_url":"https://api.github.com/users/gabest11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabest11/subscriptions","organizations_url":"https://api.github.com/users/gabest11/orgs","repos_url":"https://api.github.com/users/gabest11/repos","events_url":"https://api.github.com/users/gabest11/events{/privacy}","received_events_url":"https://api.github.com/users/gabest11/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T12:59:26Z","updated_at":"2015-08-04T12:59:26Z","body":"This one should be closed I think."}}