{"action":"created","comment":{"url":"https://api.github.com/repos/PCSX2/pcsx2/pulls/comments/77452063","id":77452063,"diff_hunk":"@@ -809,6 +821,16 @@ void GSState::GIFRegHandlerXYZ2(const GIFReg* RESTRICT r)\n \n template<int i> void GSState::ApplyTEX0(GIFRegTEX0& TEX0)\n {\n+\t// Mask invalid bit before any comparison\n+\tTEX0.CPSM &= 0xa; // 1010b\n+\n+\tif (PRIM->CTXT != i) {\n+\t\t// Context isn't current. Only update the register value.\n+\t\t// Handling (real write of the clut buffer) will be done when ctxt will be switched\n+\t\tm_env.CTXT[i].TEX0 = (GSVector4i)TEX0;","path":"plugins/GSdx/GSState.cpp","position":36,"original_position":36,"commit_id":"95179a8386f6ea84fd68e9fc4d7745324bd01336","original_commit_id":"95179a8386f6ea84fd68e9fc4d7745324bd01336","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},"body":"You mean if we set a value to offset.tex ?","created_at":"2016-09-04T13:05:22Z","updated_at":"2016-09-04T13:05:22Z","html_url":"https://github.com/PCSX2/pcsx2/pull/1550#discussion_r77452063","pull_request_url":"https://api.github.com/repos/PCSX2/pcsx2/pulls/1550","_links":{"self":{"href":"https://api.github.com/repos/PCSX2/pcsx2/pulls/comments/77452063"},"html":{"href":"https://github.com/PCSX2/pcsx2/pull/1550#discussion_r77452063"},"pull_request":{"href":"https://api.github.com/repos/PCSX2/pcsx2/pulls/1550"}}},"pull_request":{"url":"https://api.github.com/repos/PCSX2/pcsx2/pulls/1550","id":83919250,"html_url":"https://github.com/PCSX2/pcsx2/pull/1550","diff_url":"https://github.com/PCSX2/pcsx2/pull/1550.diff","patch_url":"https://github.com/PCSX2/pcsx2/pull/1550.patch","issue_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1550","number":1550,"state":"open","locked":false,"title":"gsdx state: TEX0 write behavior might depends on the context","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},"body":"Game: harley davidson\r\n* write tex0 ctx0\r\n* write tex0 ctx1\r\n* draw  ctx 0\r\n\r\nPrevious GSdx behavior will load the clut every write of TEX0. In the\r\nabove case the draw will take the wrong clut.\r\n\r\nTo be honest, it could be a wrong emulation on the EE core emulation.\r\nThe hardware likely got a single clut (1KB cache is quite expensive)\r\nSo clut loading must be skipped if the context is wrong.\r\n\r\nNext draw will use the ctx1 clut so I apply TEX0 when the context is switched\r\n\r\nPlease test harley davidson :)","created_at":"2016-09-04T10:37:43Z","updated_at":"2016-09-04T13:05:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07dea6afa0e535f30efb7e8597992ab19dc5b354","assignee":{"login":"refractionpcsx2","id":6278726,"avatar_url":"https://avatars.githubusercontent.com/u/6278726?v=3","gravatar_id":"","url":"https://api.github.com/users/refractionpcsx2","html_url":"https://github.com/refractionpcsx2","followers_url":"https://api.github.com/users/refractionpcsx2/followers","following_url":"https://api.github.com/users/refractionpcsx2/following{/other_user}","gists_url":"https://api.github.com/users/refractionpcsx2/gists{/gist_id}","starred_url":"https://api.github.com/users/refractionpcsx2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refractionpcsx2/subscriptions","organizations_url":"https://api.github.com/users/refractionpcsx2/orgs","repos_url":"https://api.github.com/users/refractionpcsx2/repos","events_url":"https://api.github.com/users/refractionpcsx2/events{/privacy}","received_events_url":"https://api.github.com/users/refractionpcsx2/received_events","type":"User","site_admin":false},"assignees":[{"login":"refractionpcsx2","id":6278726,"avatar_url":"https://avatars.githubusercontent.com/u/6278726?v=3","gravatar_id":"","url":"https://api.github.com/users/refractionpcsx2","html_url":"https://github.com/refractionpcsx2","followers_url":"https://api.github.com/users/refractionpcsx2/followers","following_url":"https://api.github.com/users/refractionpcsx2/following{/other_user}","gists_url":"https://api.github.com/users/refractionpcsx2/gists{/gist_id}","starred_url":"https://api.github.com/users/refractionpcsx2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refractionpcsx2/subscriptions","organizations_url":"https://api.github.com/users/refractionpcsx2/orgs","repos_url":"https://api.github.com/users/refractionpcsx2/repos","events_url":"https://api.github.com/users/refractionpcsx2/events{/privacy}","received_events_url":"https://api.github.com/users/refractionpcsx2/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PCSX2/pcsx2/pulls/1550/commits","review_comments_url":"https://api.github.com/repos/PCSX2/pcsx2/pulls/1550/comments","review_comment_url":"https://api.github.com/repos/PCSX2/pcsx2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1550/comments","statuses_url":"https://api.github.com/repos/PCSX2/pcsx2/statuses/95179a8386f6ea84fd68e9fc4d7745324bd01336","head":{"label":"PCSX2:gsdx-dual-context-clut","ref":"gsdx-dual-context-clut","sha":"95179a8386f6ea84fd68e9fc4d7745324bd01336","user":{"login":"PCSX2","id":6278711,"avatar_url":"https://avatars.githubusercontent.com/u/6278711?v=3","gravatar_id":"","url":"https://api.github.com/users/PCSX2","html_url":"https://github.com/PCSX2","followers_url":"https://api.github.com/users/PCSX2/followers","following_url":"https://api.github.com/users/PCSX2/following{/other_user}","gists_url":"https://api.github.com/users/PCSX2/gists{/gist_id}","starred_url":"https://api.github.com/users/PCSX2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCSX2/subscriptions","organizations_url":"https://api.github.com/users/PCSX2/orgs","repos_url":"https://api.github.com/users/PCSX2/repos","events_url":"https://api.github.com/users/PCSX2/events{/privacy}","received_events_url":"https://api.github.com/users/PCSX2/received_events","type":"Organization","site_admin":false},"repo":{"id":15379620,"name":"pcsx2","full_name":"PCSX2/pcsx2","owner":{"login":"PCSX2","id":6278711,"avatar_url":"https://avatars.githubusercontent.com/u/6278711?v=3","gravatar_id":"","url":"https://api.github.com/users/PCSX2","html_url":"https://github.com/PCSX2","followers_url":"https://api.github.com/users/PCSX2/followers","following_url":"https://api.github.com/users/PCSX2/following{/other_user}","gists_url":"https://api.github.com/users/PCSX2/gists{/gist_id}","starred_url":"https://api.github.com/users/PCSX2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCSX2/subscriptions","organizations_url":"https://api.github.com/users/PCSX2/orgs","repos_url":"https://api.github.com/users/PCSX2/repos","events_url":"https://api.github.com/users/PCSX2/events{/privacy}","received_events_url":"https://api.github.com/users/PCSX2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PCSX2/pcsx2","description":"PCSX2 - The Playstation 2 Emulator","fork":false,"url":"https://api.github.com/repos/PCSX2/pcsx2","forks_url":"https://api.github.com/repos/PCSX2/pcsx2/forks","keys_url":"https://api.github.com/repos/PCSX2/pcsx2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PCSX2/pcsx2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PCSX2/pcsx2/teams","hooks_url":"https://api.github.com/repos/PCSX2/pcsx2/hooks","issue_events_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/events{/number}","events_url":"https://api.github.com/repos/PCSX2/pcsx2/events","assignees_url":"https://api.github.com/repos/PCSX2/pcsx2/assignees{/user}","branches_url":"https://api.github.com/repos/PCSX2/pcsx2/branches{/branch}","tags_url":"https://api.github.com/repos/PCSX2/pcsx2/tags","blobs_url":"https://api.github.com/repos/PCSX2/pcsx2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PCSX2/pcsx2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PCSX2/pcsx2/git/refs{/sha}","trees_url":"https://api.github.com/repos/PCSX2/pcsx2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PCSX2/pcsx2/statuses/{sha}","languages_url":"https://api.github.com/repos/PCSX2/pcsx2/languages","stargazers_url":"https://api.github.com/repos/PCSX2/pcsx2/stargazers","contributors_url":"https://api.github.com/repos/PCSX2/pcsx2/contributors","subscribers_url":"https://api.github.com/repos/PCSX2/pcsx2/subscribers","subscription_url":"https://api.github.com/repos/PCSX2/pcsx2/subscription","commits_url":"https://api.github.com/repos/PCSX2/pcsx2/commits{/sha}","git_commits_url":"https://api.github.com/repos/PCSX2/pcsx2/git/commits{/sha}","comments_url":"https://api.github.com/repos/PCSX2/pcsx2/comments{/number}","issue_comment_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/comments{/number}","contents_url":"https://api.github.com/repos/PCSX2/pcsx2/contents/{+path}","compare_url":"https://api.github.com/repos/PCSX2/pcsx2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PCSX2/pcsx2/merges","archive_url":"https://api.github.com/repos/PCSX2/pcsx2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PCSX2/pcsx2/downloads","issues_url":"https://api.github.com/repos/PCSX2/pcsx2/issues{/number}","pulls_url":"https://api.github.com/repos/PCSX2/pcsx2/pulls{/number}","milestones_url":"https://api.github.com/repos/PCSX2/pcsx2/milestones{/number}","notifications_url":"https://api.github.com/repos/PCSX2/pcsx2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PCSX2/pcsx2/labels{/name}","releases_url":"https://api.github.com/repos/PCSX2/pcsx2/releases{/id}","deployments_url":"https://api.github.com/repos/PCSX2/pcsx2/deployments","created_at":"2013-12-22T17:56:48Z","updated_at":"2016-09-04T07:49:55Z","pushed_at":"2016-09-04T12:22:34Z","git_url":"git://github.com/PCSX2/pcsx2.git","ssh_url":"git@github.com:PCSX2/pcsx2.git","clone_url":"https://github.com/PCSX2/pcsx2.git","svn_url":"https://github.com/PCSX2/pcsx2","homepage":"http://pcsx2.net/","size":99161,"stargazers_count":1349,"watchers_count":1349,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":316,"mirror_url":null,"open_issues_count":272,"forks":316,"open_issues":272,"watchers":1349,"default_branch":"master"}},"base":{"label":"PCSX2:master","ref":"master","sha":"52a2bb55241ffdf3b580f567400fe047c96b56fc","user":{"login":"PCSX2","id":6278711,"avatar_url":"https://avatars.githubusercontent.com/u/6278711?v=3","gravatar_id":"","url":"https://api.github.com/users/PCSX2","html_url":"https://github.com/PCSX2","followers_url":"https://api.github.com/users/PCSX2/followers","following_url":"https://api.github.com/users/PCSX2/following{/other_user}","gists_url":"https://api.github.com/users/PCSX2/gists{/gist_id}","starred_url":"https://api.github.com/users/PCSX2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCSX2/subscriptions","organizations_url":"https://api.github.com/users/PCSX2/orgs","repos_url":"https://api.github.com/users/PCSX2/repos","events_url":"https://api.github.com/users/PCSX2/events{/privacy}","received_events_url":"https://api.github.com/users/PCSX2/received_events","type":"Organization","site_admin":false},"repo":{"id":15379620,"name":"pcsx2","full_name":"PCSX2/pcsx2","owner":{"login":"PCSX2","id":6278711,"avatar_url":"https://avatars.githubusercontent.com/u/6278711?v=3","gravatar_id":"","url":"https://api.github.com/users/PCSX2","html_url":"https://github.com/PCSX2","followers_url":"https://api.github.com/users/PCSX2/followers","following_url":"https://api.github.com/users/PCSX2/following{/other_user}","gists_url":"https://api.github.com/users/PCSX2/gists{/gist_id}","starred_url":"https://api.github.com/users/PCSX2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCSX2/subscriptions","organizations_url":"https://api.github.com/users/PCSX2/orgs","repos_url":"https://api.github.com/users/PCSX2/repos","events_url":"https://api.github.com/users/PCSX2/events{/privacy}","received_events_url":"https://api.github.com/users/PCSX2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PCSX2/pcsx2","description":"PCSX2 - The Playstation 2 Emulator","fork":false,"url":"https://api.github.com/repos/PCSX2/pcsx2","forks_url":"https://api.github.com/repos/PCSX2/pcsx2/forks","keys_url":"https://api.github.com/repos/PCSX2/pcsx2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PCSX2/pcsx2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PCSX2/pcsx2/teams","hooks_url":"https://api.github.com/repos/PCSX2/pcsx2/hooks","issue_events_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/events{/number}","events_url":"https://api.github.com/repos/PCSX2/pcsx2/events","assignees_url":"https://api.github.com/repos/PCSX2/pcsx2/assignees{/user}","branches_url":"https://api.github.com/repos/PCSX2/pcsx2/branches{/branch}","tags_url":"https://api.github.com/repos/PCSX2/pcsx2/tags","blobs_url":"https://api.github.com/repos/PCSX2/pcsx2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PCSX2/pcsx2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PCSX2/pcsx2/git/refs{/sha}","trees_url":"https://api.github.com/repos/PCSX2/pcsx2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PCSX2/pcsx2/statuses/{sha}","languages_url":"https://api.github.com/repos/PCSX2/pcsx2/languages","stargazers_url":"https://api.github.com/repos/PCSX2/pcsx2/stargazers","contributors_url":"https://api.github.com/repos/PCSX2/pcsx2/contributors","subscribers_url":"https://api.github.com/repos/PCSX2/pcsx2/subscribers","subscription_url":"https://api.github.com/repos/PCSX2/pcsx2/subscription","commits_url":"https://api.github.com/repos/PCSX2/pcsx2/commits{/sha}","git_commits_url":"https://api.github.com/repos/PCSX2/pcsx2/git/commits{/sha}","comments_url":"https://api.github.com/repos/PCSX2/pcsx2/comments{/number}","issue_comment_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/comments{/number}","contents_url":"https://api.github.com/repos/PCSX2/pcsx2/contents/{+path}","compare_url":"https://api.github.com/repos/PCSX2/pcsx2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PCSX2/pcsx2/merges","archive_url":"https://api.github.com/repos/PCSX2/pcsx2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PCSX2/pcsx2/downloads","issues_url":"https://api.github.com/repos/PCSX2/pcsx2/issues{/number}","pulls_url":"https://api.github.com/repos/PCSX2/pcsx2/pulls{/number}","milestones_url":"https://api.github.com/repos/PCSX2/pcsx2/milestones{/number}","notifications_url":"https://api.github.com/repos/PCSX2/pcsx2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PCSX2/pcsx2/labels{/name}","releases_url":"https://api.github.com/repos/PCSX2/pcsx2/releases{/id}","deployments_url":"https://api.github.com/repos/PCSX2/pcsx2/deployments","created_at":"2013-12-22T17:56:48Z","updated_at":"2016-09-04T07:49:55Z","pushed_at":"2016-09-04T12:22:34Z","git_url":"git://github.com/PCSX2/pcsx2.git","ssh_url":"git@github.com:PCSX2/pcsx2.git","clone_url":"https://github.com/PCSX2/pcsx2.git","svn_url":"https://github.com/PCSX2/pcsx2","homepage":"http://pcsx2.net/","size":99161,"stargazers_count":1349,"watchers_count":1349,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":316,"mirror_url":null,"open_issues_count":272,"forks":316,"open_issues":272,"watchers":1349,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PCSX2/pcsx2/pulls/1550"},"html":{"href":"https://github.com/PCSX2/pcsx2/pull/1550"},"issue":{"href":"https://api.github.com/repos/PCSX2/pcsx2/issues/1550"},"comments":{"href":"https://api.github.com/repos/PCSX2/pcsx2/issues/1550/comments"},"review_comments":{"href":"https://api.github.com/repos/PCSX2/pcsx2/pulls/1550/comments"},"review_comment":{"href":"https://api.github.com/repos/PCSX2/pcsx2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PCSX2/pcsx2/pulls/1550/commits"},"statuses":{"href":"https://api.github.com/repos/PCSX2/pcsx2/statuses/95179a8386f6ea84fd68e9fc4d7745324bd01336"}}}}
{"actor":{"display_login":"gregory38"}}