Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader cleanup #185

Merged
merged 10 commits into from May 6, 2014
Merged

Shader cleanup #185

merged 10 commits into from May 6, 2014

Conversation

degasus
Copy link
Member

@degasus degasus commented Mar 17, 2014

This branch mostly try to extract common used function out of the shader gen and some cleanups.

@neobrain: if you don't like my changes about profilation which constants are used, I'll drop it out of this list.

@@ -216,16 +219,24 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
"\treturn tmp.x + tmp.y + tmp.z + tmp.w;\n"
"}\n\n");

// rounding + method convertion

This comment was marked as off-topic.

@delroth
Copy link
Member

delroth commented Mar 26, 2014

@dolphin-emu-bot rebuild

@degasus
Copy link
Member Author

degasus commented May 1, 2014

I've droped the constant usage patch and so also the hand placed register removal. But no other change here in this PR was based on this change, so this should be safe.

"\tfloat4 " I_NORMALMATRICES"[32];\n"
"\tfloat4 " I_POSTTRANSFORMMATRICES"[64];\n"
"\tfloat4 " I_DEPTHPARAMS";\n"
"};\n");

This comment was marked as off-topic.

@neobrain
Copy link
Member

neobrain commented May 5, 2014

LGTM once the cosmetic issues are sorted out.

@Sonicadvance1
Copy link
Contributor

Is this good now? Because it LGTM.

neobrain added a commit that referenced this pull request May 6, 2014
@neobrain neobrain merged commit b4e1ac5 into dolphin-emu:master May 6, 2014
@degasus degasus deleted the shader-cleanup branch May 6, 2014 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants