ac/nir: add break statements in needs_view_index_sgpr()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 25 Jan 2018 09:49:23 +0000 (10:49 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 25 Jan 2018 12:59:52 +0000 (13:59 +0100)
Previous code is correct but as the first case statement uses
a break, keep it consistent.

CID: 1428579
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c

index 8ae8650a7bf5cad53f40ec1108303c05d22885f4..7b56edf8e78c8620bd433f25d7cb5af2135b0aa3 100644 (file)
@@ -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;
        }