Re: [Mesa-dev] [PATCH] glsl: add lowering for double divide to rcp/mul

2015-02-20 Thread Roland Scheidegger
Am 19.02.2015 um 23:47 schrieb Dave Airlie: > From: Dave Airlie > > It looks like no hw does div anyways, so we should just > lower at the GLSL level. > > Signed-off-by: Dave Airlie > --- > src/glsl/lower_instructions.cpp | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff

Re: [Mesa-dev] [PATCH] glsl: add lowering for double divide to rcp/mul

2015-02-19 Thread Ilia Mirkin
On Thu, Feb 19, 2015 at 5:47 PM, Dave Airlie wrote: > From: Dave Airlie > > It looks like no hw does div anyways, so we should just > lower at the GLSL level. Sounds like radeonsi has helpers for DDIV, but they can work this out when they add support in mesa. Like not using DIV_TO_MUL_RCP loweri

[Mesa-dev] [PATCH] glsl: add lowering for double divide to rcp/mul

2015-02-19 Thread Dave Airlie
From: Dave Airlie It looks like no hw does div anyways, so we should just lower at the GLSL level. Signed-off-by: Dave Airlie --- src/glsl/lower_instructions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/glsl/lower_instructions.cpp b/src/glsl/lower_instructi