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

Test case 3/4: Disable PS output for ALU and memfetch #502

Merged
merged 6 commits into from
Aug 15, 2024

Conversation

RenfengLiu
Copy link
Collaborator

Added knob disable-ps-output to disable PS output.
For test case 3, use "fullscreen-quads-type": "Solid_Color" and for test case 4 use "fullscreen-quads-type": "Texture"
{
"deterministic": true,
"enable-skybox": false,
"enable-spheres": false,
"enable-metrics": false,
"fullscreen-quads-count": 1,
"fullscreen-quads-type": "Texture",
"fullscreen-quads-single-renderpass": true,
"vs-alu-instruction-count": 100,
"texture-count": 2,
"disable-ps-output": true
}

@RenfengLiu RenfengLiu marked this pull request as ready for review August 14, 2024 15:56
@@ -153,7 +178,10 @@ void FillOutGraphicsPipelineCreateInfo(
pDstCreateInfo->colorBlendState.blendAttachmentCount = pSrcCreateInfo->outputState.renderTargetCount;
for (uint32_t i = 0; i < pDstCreateInfo->colorBlendState.blendAttachmentCount; ++i) {
switch (pSrcCreateInfo->blendModes[i]) {
default: break;
case grfx::BLEND_MODE_NONE: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

might be better to assert for the default case for unknown blend mode

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the -Werror was added to help with this situation, if not all mode was list there, it will be reported as compilation error. However when I tried on windows with /WX option, it seems not working. so added back the default statement here.

@RenfengLiu RenfengLiu merged commit 657f22a into google:power_measurement Aug 15, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants