[Mesa-dev] [PATCH 4/4] nv50/ir: print EMIT subops in debug mode

Ilia Mirkin imirkin at alum.mit.edu
Wed Jun 29 17:34:24 UTC 2016


Series is

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

On Wed, Jun 29, 2016 at 12:13 PM, 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 7d8549a..d88bdce 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
> @@ -226,6 +226,11 @@ static const char *rcprsqOpStr[] =
>     "", "64h"
>  };
>
> +static const char *emitOpStr[] =
> +{
> +   "", "restart"
> +};
> +
>  static const char *DataTypeStr[] =
>  {
>     "-",
> @@ -591,6 +596,10 @@ void Instruction::print() const
>           if (subOp < ARRAY_SIZE(rcprsqOpStr))
>              PRINT("%s ", rcprsqOpStr[subOp]);
>           break;
> +      case OP_EMIT:
> +         if (subOp < ARRAY_SIZE(emitOpStr))
> +            PRINT("%s ", emitOpStr[subOp]);
> +         break;
>        default:
>           if (subOp)
>              PRINT("(SUBOP:%u) ", subOp);
> --
> 2.8.0
>
> _______________________________________________
> 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