<feed xmlns='http://www.w3.org/2005/Atom'>
<title>external_mesa3d/src/compiler/nir/nir_lower_double_ops.c, branch replicant-6.0</title>
<subtitle>external/mesa3d
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/'/>
<entry>
<title>nir/lower_double_ops: fixup for new nir_foreach_block()</title>
<updated>2016-05-05T23:19:41+00:00</updated>
<author>
<name>Jason Ekstrand</name>
<email>jason.ekstrand@intel.com</email>
</author>
<published>2016-04-28T17:34:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=31fc4a2528055f63646cac494bd30f0eb07c8210'/>
<id>31fc4a2528055f63646cac494bd30f0eb07c8210</id>
<content type='text'>
Signed-off-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
Reviewed-by: Connor Abbott &lt;cwabbott0@gmail.com&gt;
Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
Reviewed-by: Connor Abbott &lt;cwabbott0@gmail.com&gt;
Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nir/lower_double_ops: lower mod()</title>
<updated>2016-05-04T06:07:49+00:00</updated>
<author>
<name>Samuel Iglesias Gonsálvez</name>
<email>siglesias@igalia.com</email>
</author>
<published>2016-04-12T08:55:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=b902377a56b802d4fca95fb3733f47e466dfe501'/>
<id>b902377a56b802d4fca95fb3733f47e466dfe501</id>
<content type='text'>
There are rounding errors with the division in i965 that affect
the mod(x,y) result when x = N * y. Instead of returning '0' it
was returning 'y'.

This lowering pass fixes those cases.

Signed-off-by: Samuel Iglesias Gonsálvez &lt;siglesias@igalia.com&gt;
Reviewed-by: Jordan Justen &lt;jordan.l.justen@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are rounding errors with the division in i965 that affect
the mod(x,y) result when x = N * y. Instead of returning '0' it
was returning 'y'.

This lowering pass fixes those cases.

Signed-off-by: Samuel Iglesias Gonsálvez &lt;siglesias@igalia.com&gt;
Reviewed-by: Jordan Justen &lt;jordan.l.justen@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nir/lower_double_ops: fix indentation</title>
<updated>2016-04-30T19:16:32+00:00</updated>
<author>
<name>Thomas Hindoe Paaboel Andersen</name>
<email>phomes@gmail.com</email>
</author>
<published>2016-04-29T18:32:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=cbcd7b60f573d027337a2390e67f6010e9992aaa'/>
<id>cbcd7b60f573d027337a2390e67f6010e9992aaa</id>
<content type='text'>
Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nir: Switch the arguments to nir_foreach_function</title>
<updated>2016-04-28T22:54:48+00:00</updated>
<author>
<name>Jason Ekstrand</name>
<email>jason.ekstrand@intel.com</email>
</author>
<published>2016-04-27T03:26:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=9464d8c49813aba77285e7465b96e92a91ed327c'/>
<id>9464d8c49813aba77285e7465b96e92a91ed327c</id>
<content type='text'>
This matches the "foreach x in container" pattern found in many other
programming languages.  Generated by the following regular expression:

s/nir_foreach_function(\([^,]*\),\s*\([^,]*\))/nir_foreach_function(\2, \1)/

Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This matches the "foreach x in container" pattern found in many other
programming languages.  Generated by the following regular expression:

s/nir_foreach_function(\([^,]*\),\s*\([^,]*\))/nir_foreach_function(\2, \1)/

Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nir: Switch the arguments to nir_foreach_instr</title>
<updated>2016-04-28T22:54:48+00:00</updated>
<author>
<name>Jason Ekstrand</name>
<email>jason.ekstrand@intel.com</email>
</author>
<published>2016-04-27T01:34:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=707e72f13bb78869ee95d3286980bf1709cba6cf'/>
<id>707e72f13bb78869ee95d3286980bf1709cba6cf</id>
<content type='text'>
This matches the "foreach x in container" pattern found in many other
programming languages.  Generated by the following regular expression:

s/nir_foreach_instr(\([^,]*\),\s*\([^,]*\))/nir_foreach_instr(\2, \1)/

and similar expressions for nir_foreach_instr_safe etc.

Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This matches the "foreach x in container" pattern found in many other
programming languages.  Generated by the following regular expression:

s/nir_foreach_instr(\([^,]*\),\s*\([^,]*\))/nir_foreach_instr(\2, \1)/

and similar expressions for nir_foreach_instr_safe etc.

Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nir/lower_double_ops: lower round_even()</title>
<updated>2016-04-28T10:01:40+00:00</updated>
<author>
<name>Iago Toral Quiroga</name>
<email>itoral@igalia.com</email>
</author>
<published>2016-01-05T09:32:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=072613b3f366d884f398166673d4fd24c166225d'/>
<id>072613b3f366d884f398166673d4fd24c166225d</id>
<content type='text'>
At least i965 hardware does not have native support for round_even() on doubles.

Reviewed-by: Matt Turner &lt;mattst88@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At least i965 hardware does not have native support for round_even() on doubles.

Reviewed-by: Matt Turner &lt;mattst88@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nir/lower_double_ops: lower fract()</title>
<updated>2016-04-28T10:01:40+00:00</updated>
<author>
<name>Iago Toral Quiroga</name>
<email>itoral@igalia.com</email>
</author>
<published>2016-01-05T08:14:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=bf91df7f7ff0c07e12d49a47df3b67ee149540f9'/>
<id>bf91df7f7ff0c07e12d49a47df3b67ee149540f9</id>
<content type='text'>
At least i965 hardware does not have native support for fract() on doubles.

Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At least i965 hardware does not have native support for fract() on doubles.

Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nir/lower_double_ops: lower ceil()</title>
<updated>2016-04-28T10:01:36+00:00</updated>
<author>
<name>Iago Toral Quiroga</name>
<email>itoral@igalia.com</email>
</author>
<published>2016-01-04T15:10:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=126a1ac03f7c7d7cd01629c91725ffced06147a9'/>
<id>126a1ac03f7c7d7cd01629c91725ffced06147a9</id>
<content type='text'>
At least i965 hardware does not have native support for ceil on doubles.

v2 (Sam):
   - Improve the lowering pass to remove one bcsel (Jason).

Signed-off-by: Samuel Iglesias Gonsálvez &lt;siglesias@igalia.com&gt;
Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At least i965 hardware does not have native support for ceil on doubles.

v2 (Sam):
   - Improve the lowering pass to remove one bcsel (Jason).

Signed-off-by: Samuel Iglesias Gonsálvez &lt;siglesias@igalia.com&gt;
Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nir/lower_double_ops: lower floor()</title>
<updated>2016-04-28T09:58:35+00:00</updated>
<author>
<name>Iago Toral Quiroga</name>
<email>itoral@igalia.com</email>
</author>
<published>2016-01-04T15:02:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=29541ec53175120f916a0ab74e5d82308aa9ef47'/>
<id>29541ec53175120f916a0ab74e5d82308aa9ef47</id>
<content type='text'>
At least i965 hardware does not have native support for floor on doubles.

v2 (Sam):
  - Improve the lowering pass to remove one bcsel (Jason)

Signed-off-by: Samuel Iglesias Gonsálvez &lt;siglesias@igalia.com&gt;
Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At least i965 hardware does not have native support for floor on doubles.

v2 (Sam):
  - Improve the lowering pass to remove one bcsel (Jason)

Signed-off-by: Samuel Iglesias Gonsálvez &lt;siglesias@igalia.com&gt;
Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nir/lower_double_ops: lower trunc()</title>
<updated>2016-04-28T09:58:13+00:00</updated>
<author>
<name>Iago Toral Quiroga</name>
<email>itoral@igalia.com</email>
</author>
<published>2016-01-04T11:52:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=5fab3d178b7093b0f0e5e98f09052f401ac714ad'/>
<id>5fab3d178b7093b0f0e5e98f09052f401ac714ad</id>
<content type='text'>
At least i965 hardware does not have native support for truncating doubles.

v2:
  - Simplified the implementation significantly.
  - Fixed the else branch, that was not doing what we wanted.

Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At least i965 hardware does not have native support for truncating doubles.

v2:
  - Simplified the implementation significantly.
  - Fixed the else branch, that was not doing what we wanted.

Reviewed-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
