OSDN Git Service

Reactor: Fix Round (float) generic code generation
authorLogan Chien <loganchien@google.com>
Wed, 26 Sep 2018 14:14:00 +0000 (22:14 +0800)
committerChris Forbes <chrisforbes@google.com>
Thu, 27 Sep 2018 16:18:09 +0000 (16:18 +0000)
commit83fc07aef6b792a8cca77ada7bbc7b6579e93891
tree46086d77036e97b9a1b99853b67567c88b4e33c4
parenta8385ed6a7849d7a9e58f78f5db23d69ccdf026c
Reactor: Fix Round (float) generic code generation

This commit fixes `Round(Float)` and `Round(Float4)` generic LLVM code
generation.

Bug: b/115344057
Test: dEQP-GLES3.functional.shaders.builtin_functions.precision.sin
Test: dEQP-GLES3.functional.shaders.builtin_functions.precision.cos
Change-Id: I9758ac4ca69bb0f5a5b192b4be3310827625fac0
Reviewed-on: https://swiftshader-review.googlesource.com/20932
Tested-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
src/Reactor/LLVMReactor.cpp