[Mesa-dev] [PATCH] nv50/ir: print SUBFM subops
Ilia Mirkin
imirkin at alum.mit.edu
Fri Mar 18 03:58:19 UTC 2016
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
On Mar 17, 2016 6:25 PM, "Samuel Pitoiset" <samuel.pitoiset at gmail.com>
wrote:
> Only 3d subop is currently emitted.
>
> 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 cfa85ec..066faa3 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
> @@ -204,6 +204,11 @@ static const char *ldstSubOpStr[] =
> "", "lock", "unlock"
> };
>
> +static const char *subfmOpStr[] =
> +{
> + "", "3d"
> +};
> +
> static const char *DataTypeStr[] =
> {
> "-",
> @@ -548,6 +553,10 @@ void Instruction::print() const
> if (subOp < Elements(ldstSubOpStr))
> PRINT("%s ", ldstSubOpStr[subOp]);
> break;
> + case OP_SUBFM:
> + if (subOp < Elements(subfmOpStr))
> + PRINT("%s ", subfmOpStr[subOp]);
> + break;
> default:
> if (subOp)
> PRINT("(SUBOP:%u) ", subOp);
> --
> 2.7.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160317/40da10fb/attachment.html>
More information about the mesa-dev
mailing list