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

gl: Enable core context and debug output. #1618

Merged
merged 1 commit into from Mar 27, 2016
Merged

gl: Enable core context and debug output. #1618

merged 1 commit into from Mar 27, 2016

Conversation

vlj
Copy link
Contributor

@vlj vlj commented Mar 23, 2016

No description provided.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @kd-11, @DHrpcs3 and @Nekotekina to be potential reviewers

@Bigpet
Copy link
Contributor

Bigpet commented Mar 23, 2016

Just to note, a debug context does make some opengl drivers significantly slower, even without synchronous output.

edit: nvm about the performance thing, didn't see the if (rpcs3::config.rsx.d3d12.debug_output.value())

Also, some more filtering by severity will probably useful, since some drivers swamp the debug output with performance hints.

@kd-11
Copy link
Contributor

kd-11 commented Mar 23, 2016

Core profile should help with most gpu debuggers. Should we also move shader validation to an if (debug) block or not? It should in theory only be called once per shader (first instance it is used) anyway and saps away at performance.

WX_GL_MAJOR_VERSION, 3,
WX_GL_MINOR_VERSION, 3,
WX_GL_CORE_PROFILE,
WX_GL_DEBUG,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could just write conditional there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rpcs3::config.rsx.d3d12.debug_output.value() ? WX_GL_DEBUG : 0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nekotekina That parameter does not take a value from looking at the sources. wxwidgets is inconsistent like that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kd-11 I totally don't understand what you mean. I also tried my suggestion and it compiles fine.

@vlj
Copy link
Contributor Author

vlj commented Mar 23, 2016

Use conditionnal operator and rebased.

0
};

m_canvas = new wxGLCanvas(this, wxID_ANY, context_attrs);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line got removed for some reason.

@vlj
Copy link
Contributor Author

vlj commented Mar 25, 2016

I don't understand wxCheck_version returns true when wx_debug is not defined.

@vlj vlj force-pushed the gl branch 13 times, most recently from 9ba3bbf to 5db42fc Compare March 27, 2016 01:12
@vlj vlj force-pushed the gl branch 2 times, most recently from 638c280 to 855d693 Compare March 27, 2016 02:02
@vlj vlj merged commit 27a8c07 into RPCS3:master Mar 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants