Re: [Mesa-dev] [PATCH v2 3/5] r600: implement DDIV

2017-01-19 Thread Nicolai Hähnle
On 19.01.2017 19:42, Roland Scheidegger wrote: Am 19.01.2017 um 18:45 schrieb Ilia Mirkin: On Thu, Jan 19, 2017 at 12:40 PM, Nicolai Hähnle wrote: On 19.01.2017 17:50, Ilia Mirkin wrote: NVIDIA can't do division either (double or otherwise - but double is even worse since the rcp is only hal

Re: [Mesa-dev] [PATCH v2 3/5] r600: implement DDIV

2017-01-19 Thread Roland Scheidegger
Am 19.01.2017 um 18:45 schrieb Ilia Mirkin: > On Thu, Jan 19, 2017 at 12:40 PM, Nicolai Hähnle > wrote: >> On 19.01.2017 17:50, Ilia Mirkin wrote: >>> >>> NVIDIA can't do division either (double or otherwise - but double is >>> even worse since the rcp is only half there). It has some fancy >>> fu

Re: [Mesa-dev] [PATCH v2 3/5] r600: implement DDIV

2017-01-19 Thread Nicolai Hähnle
On 19.01.2017 17:50, Ilia Mirkin wrote: NVIDIA can't do division either (double or otherwise - but double is even worse since the rcp is only half there). It has some fancy functions which get things like division, sqrt, etc. What does that mean, precisely? It might make sense to have a cap-bit

Re: [Mesa-dev] [PATCH v2 3/5] r600: implement DDIV

2017-01-19 Thread Ilia Mirkin
On Thu, Jan 19, 2017 at 12:40 PM, Nicolai Hähnle wrote: > On 19.01.2017 17:50, Ilia Mirkin wrote: >> >> NVIDIA can't do division either (double or otherwise - but double is >> even worse since the rcp is only half there). It has some fancy >> functions which get things like division, sqrt, etc. >

Re: [Mesa-dev] [PATCH v2 3/5] r600: implement DDIV

2017-01-19 Thread Nicolai Hähnle
On 19.01.2017 17:39, Roland Scheidegger wrote: Double-capable Evergreen/NI can't do ddiv? Interesting. I wonder how it's made d3d11 double conformant... Even GCN has no native DDIV. It's implemented as a bunch of bespoke instructions for scale-shifted DRCP followed by what is effectively a ki

Re: [Mesa-dev] [PATCH v2 3/5] r600: implement DDIV

2017-01-19 Thread Roland Scheidegger
Oh, in this case a cap bit would have been fine then :-). I was just thinking since d3d11 requires (if doubles are supported) real ddiv (unlike fdiv), hw would have some way to do this without too much trouble. But I guess it wasn't deemed important enough then. Roland Am 19.01.2017 um 17:50 sch

Re: [Mesa-dev] [PATCH v2 3/5] r600: implement DDIV

2017-01-19 Thread Ilia Mirkin
NVIDIA can't do division either (double or otherwise - but double is even worse since the rcp is only half there). It has some fancy functions which get things like division, sqrt, etc. 2017-01-19 11:39 GMT-05:00 Roland Scheidegger : > Double-capable Evergreen/NI can't do ddiv? Interesting. I wond

Re: [Mesa-dev] [PATCH v2 3/5] r600: implement DDIV

2017-01-19 Thread Roland Scheidegger
Double-capable Evergreen/NI can't do ddiv? Interesting. I wonder how it's made d3d11 double conformant... Roland Am 19.01.2017 um 14:59 schrieb Nicolai Hähnle: > From: Nicolai Hähnle > > --- > src/gallium/drivers/r600/r600_shader.c | 59 > ++ > 1 file changed,

[Mesa-dev] [PATCH v2 3/5] r600: implement DDIV

2017-01-19 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/r600/r600_shader.c | 59 ++ 1 file changed, 59 insertions(+) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 5c4bc91..eaabb04 100644 --- a/src/gallium/drivers/r600/r6