OSDN Git Service

spirv: Fix SpvOpFwidth, SpvOpFwidthFine and SpvOpFwidthCoarse
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 17 Feb 2016 23:28:52 +0000 (15:28 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 17 Feb 2016 23:28:52 +0000 (15:28 -0800)
commitb8da261dc7e842f3a5f5256ea424c403543d40c9
tree0f9f7a824a5d8185e3cf257d138736f1bd9fae3f
parentae3e249d57e10a9bfe261cdff4a6f27052bc580e
spirv: Fix SpvOpFwidth, SpvOpFwidthFine and SpvOpFwidthCoarse

   "Result is the same as computing the sum of the absolute values of
    OpDPdx and OpDPdy on P."

We were doing sum of absolute values of OpDPdx of P and OpDPdx of NULL.
src/compiler/nir/spirv/vtn_alu.c