nir: fix typo in idiv lowering, causing large-udiv-udiv failures
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 8 Nov 2015 18:43:07 +0000 (13:43 -0500)
committerRob Clark <robclark@freedesktop.org>
Wed, 18 Nov 2015 19:31:13 +0000 (14:31 -0500)
commitb40e144a665142957a7ae027238e61fd01a27ebc
treec0a0ce40e3452b7bd56196c2b63883457e10763b
parent4581f8428e0e1d2f6787d0765823c7883bd2cfcd
nir: fix typo in idiv lowering, causing large-udiv-udiv failures

In nv50, and in the python script that Rob circulated, we do:

   bld.mkCmp(OP_SET, CC_GE, TYPE_U32, (s = bld.getSSA()), TYPE_U32, m, b);

Do the same in the nir div lowering pass. This fixes the large-udiv-udiv
piglit tests on freedreno.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/glsl/nir/nir_lower_idiv.c