OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 3 Dec 2015 18:43:11 +0000 (18:43 +0000)
commit895ec179439d3222319da5cbf1e2b8fb102b5dc4
treee07ca4a156e5360196511c94c15da87f8f599e0d
parent82853079bd06f278fcda3f1e8a75e70277a0eb4d
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>
(cherry picked from commit b40e144a665142957a7ae027238e61fd01a27ebc)
src/glsl/nir/nir_lower_idiv.c