Remove prints added in #67 and fix test broken in #64 (#69)

This commit is contained in:
Kai Ninomiya 2017-07-10 10:23:27 -07:00 committed by GitHub
parent cb2d6d8553
commit 563e9e253e
2 changed files with 2 additions and 2 deletions

View File

@ -400,14 +400,12 @@ namespace backend {
} }
// Assumes we have a pipeline already // Assumes we have a pipeline already
if (!bindgroupsSet.all()) { if (!bindgroupsSet.all()) {
printf("%s:%d\n", __FUNCTION__, __LINE__);
return false; return false;
} }
for (size_t i = 0; i < bindgroups.size(); ++i) { for (size_t i = 0; i < bindgroups.size(); ++i) {
if (auto* bindgroup = bindgroups[i]) { if (auto* bindgroup = bindgroups[i]) {
// TODO(kainino@chromium.org): bind group compatibility // TODO(kainino@chromium.org): bind group compatibility
if (bindgroup->GetLayout() != lastPipeline->GetLayout()->GetBindGroupLayout(i)) { if (bindgroup->GetLayout() != lastPipeline->GetLayout()->GetBindGroupLayout(i)) {
printf("%s:%d: i=%zu\n", __FUNCTION__, __LINE__, i);
return false; return false;
} }
} }

View File

@ -186,6 +186,7 @@ class InputStateTest : public NXTTest {
nxt::CommandBufferBuilder builder = device.CreateCommandBufferBuilder(); nxt::CommandBufferBuilder builder = device.CreateCommandBufferBuilder();
builder.BeginRenderPass(renderpass, framebuffer) builder.BeginRenderPass(renderpass, framebuffer)
.BeginRenderSubpass()
.SetPipeline(pipeline); .SetPipeline(pipeline);
uint32_t zeroOffset = 0; uint32_t zeroOffset = 0;
@ -195,6 +196,7 @@ class InputStateTest : public NXTTest {
nxt::CommandBuffer commands = builder nxt::CommandBuffer commands = builder
.DrawArrays(triangles * 4, instances, 0, 0) .DrawArrays(triangles * 4, instances, 0, 0)
.EndRenderSubpass()
.EndRenderPass() .EndRenderPass()
.GetResult(); .GetResult();