[Mesa-dev] [PATCH 5/6] nv50/ra: always prefer def == src2 for mad/sad

Samuel Pitoiset samuel.pitoiset at gmail.com
Sat Oct 8 16:37:15 UTC 2016



On 10/08/2016 05:43 PM, Karol Herbst wrote:
> just little random noise in shader-db

Like what? Please elaborate.

>
> will help in the next patch
>
> Signed-off-by: Karol Herbst <karolherbst at gmail.com>
> ---
>  src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
> index 7e64f7c..0cf35b7 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
> @@ -1468,8 +1468,7 @@ GCRA::allocateRegisters(ArrayList& insns)
>           nodes[i].init(regs, lval);
>           RIG.insert(&nodes[i]);
>
> -         if (lval->inFile(FILE_GPR) && lval->getInsn() != NULL &&
> -             prog->getTarget()->getChipset() < 0xc0) {
> +         if (lval->inFile(FILE_GPR) && lval->getInsn() != NULL) {
>              Instruction *insn = lval->getInsn();
>              if (insn->op == OP_MAD || insn->op == OP_SAD)
>                 // Short encoding only possible if they're all GPRs, no need to
>


More information about the mesa-dev mailing list