Handle debug markers commands for compute pass encoder

This CL makes sure debug markers commands are handled not only for
render pass encoder, but also compute pass encoder.

Bug: dawn:44
Change-Id: Iad1865d7c20e36d580e1f3f16496e4b90cc1ff34
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9680
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
François Beaufort
2019-08-02 09:30:28 +00:00
committed by Commit Bot service account
parent ae7e0026a5
commit e58fbc48b8
5 changed files with 124 additions and 2 deletions

View File

@@ -579,6 +579,14 @@ namespace dawn_native { namespace opengl {
cmd->dynamicOffsetCount, dynamicOffsets);
} break;
case Command::InsertDebugMarker:
case Command::PopDebugGroup:
case Command::PushDebugGroup: {
// Due to lack of linux driver support for GL_EXT_debug_marker
// extension these functions are skipped.
SkipCommand(&mCommands, type);
} break;
default: { UNREACHABLE(); } break;
}
}