diff options
author | Samuel Pitoiset <[email protected]> | 2018-01-25 10:49:23 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-01-25 13:59:52 +0100 |
commit | e1331c9d618e14c620387754839e0e681960b32e (patch) | |
tree | fd9e4df4e02b9c0eef6be663822215c4365e2a97 /src | |
parent | 0663ae0aa1d5b8a1fb6e5da4a9f48ba99da72477 (diff) |
ac/nir: add break statements in needs_view_index_sgpr()
Previous code is correct but as the first case statement uses
a break, keep it consistent.
CID: 1428579
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 8ae8650a7bf..7b56edf8e78 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -555,10 +555,12 @@ static bool needs_view_index_sgpr(struct nir_to_llvm_context *ctx, case MESA_SHADER_TESS_EVAL: if (ctx->shader_info->info.needs_multiview_view_index || (!ctx->options->key.tes.as_es && ctx->options->key.has_multiview_view_index)) return true; + break; case MESA_SHADER_GEOMETRY: case MESA_SHADER_TESS_CTRL: if (ctx->shader_info->info.needs_multiview_view_index) return true; + break; default: break; } |