Skip to content

Commit

Permalink
Add missing DepthGreater case to Fragment only check (#2440)
Browse files Browse the repository at this point in the history
Fixes #2439
  • Loading branch information
zoddicus authored Mar 12, 2019
1 parent b12e733 commit b1ff15f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/val/validate_mode_setting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ spv_result_t ValidateExecutionMode(ValidationState_t& _,
case SpvExecutionModeOriginLowerLeft:
case SpvExecutionModeEarlyFragmentTests:
case SpvExecutionModeDepthReplacing:
case SpvExecutionModeDepthGreater:
case SpvExecutionModeDepthLess:
case SpvExecutionModeDepthUnchanged:
if (!std::all_of(models->begin(), models->end(),
Expand Down
4 changes: 2 additions & 2 deletions test/val/val_modes_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,8 @@ INSTANTIATE_TEST_SUITE_P(
Values("Geometry", "TessellationControl", "TessellationEvaluation",
"GLCompute", "Vertex", "Kernel"),
Values("PixelCenterInteger", "OriginUpperLeft", "OriginLowerLeft",
"EarlyFragmentTests", "DepthReplacing", "DepthLess",
"DepthUnchanged"),
"EarlyFragmentTests", "DepthReplacing", "DepthGreater",
"DepthLess", "DepthUnchanged"),
Values(SPV_ENV_UNIVERSAL_1_0)));

INSTANTIATE_TEST_SUITE_P(ValidateModeKernelOnlyGoodSpv13, ValidateModeExecution,
Expand Down

0 comments on commit b1ff15f

Please sign in to comment.