[Mesa-dev] [PATCH] gm107/ir: make use of IMUL32I for all immediates

Ilia Mirkin imirkin at alum.mit.edu
Sun Jun 26 15:24:37 UTC 2016


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

Might be good to make a note of why, and/or reference the GK110 commit
that did the same thing.

On Sun, Jun 26, 2016 at 11:23 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> Cc: <mesa-stable at lists.freedesktop.org>
> ---
>  src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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 5a7f391..3a02fc7 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
> @@ -1725,7 +1725,7 @@ CodeEmitterGM107::emitIADD()
>  void
>  CodeEmitterGM107::emitIMUL()
>  {
> -   if (!longIMMD(insn->src(1))) {
> +   if (insn->src(1).getFile() != FILE_IMMEDIATE) {
>        switch (insn->src(1).getFile()) {
>        case FILE_GPR:
>           emitInsn(0x5c380000);
> --
> 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