[Mesa-dev] [PATCH] nv50/ir: display OP_BAR subops in debug mode

Ilia Mirkin imirkin at alum.mit.edu
Mon Oct 24 14:58:22 UTC 2016


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Mon, Oct 24, 2016 at 10:55 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
> index 0c143e5..78c0757 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
> @@ -236,6 +236,11 @@ static const char *cctlOpStr[] =
>     "", "", "", "", "", "iv", "ivall"
>  };
>
> +static const char *barOpStr[] =
> +{
> +   "sync", "arrive", "red and", "red or", "red popc"
> +};
> +
>  static const char *DataTypeStr[] =
>  {
>     "-",
> @@ -611,6 +616,10 @@ void Instruction::print() const
>           if (subOp < ARRAY_SIZE(cctlOpStr))
>              PRINT("%s ", cctlOpStr[subOp]);
>           break;
> +      case OP_BAR:
> +         if (subOp < ARRAY_SIZE(barOpStr))
> +            PRINT("%s ", barOpStr[subOp]);
> +         break;
>        default:
>           if (subOp)
>              PRINT("(SUBOP:%u) ", subOp);
> --
> 2.10.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list