[Mesa-dev] [PATCH] gm107/ir: add a missing assertion in emitISCADD()
Ilia Mirkin
imirkin at alum.mit.edu
Sat Apr 29 19:03:43 UTC 2017
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
On Sat, Apr 29, 2017 at 11:40 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> For consistency, similar to the other emitters.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
> index 8b58df49c2..b1e9f941fe 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
> @@ -1858,6 +1858,8 @@ CodeEmitterGM107::emitIMAD()
> void
> CodeEmitterGM107::emitISCADD()
> {
> + assert(insn->src(1).get()->asImm());
> +
> switch (insn->src(2).getFile()) {
> case FILE_GPR:
> emitInsn(0x5c180000);
> --
> 2.12.2
>
> _______________________________________________
> 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