diff options
author | Ilia Mirkin <[email protected]> | 2017-11-10 21:47:59 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-11-25 22:48:09 -0500 |
commit | 3079993727ddfe6b09e1f0ec8f834691fd654b46 (patch) | |
tree | 5a6505098aa3b56b7656b2d6b19f3be646f51b93 /src/gallium/drivers/nouveau/nouveau_video.h | |
parent | 676761252b731a6bf408e4dca694c31d74a995fc (diff) |
nv50/ir: optimize signed integer modulo by pow-of-2
It's common to use signed int modulo in GLSL. As it happens, the GLSL
specs allow the result to be undefined, but that seems fairly
surprising. It's not that much more effort to get it right, at least for
positive modulo operators.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_video.h')
0 files changed, 0 insertions, 0 deletions