Correct sampler address clamping for read image functions.
authorDag Lem <dag@nimrod.no>
Wed, 29 May 2013 21:49:40 +0000 (23:49 +0200)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 30 May 2013 03:55:11 +0000 (11:55 +0800)
commitc867de509c45538646b3fffbbbdc8a5d85f204d0
treeea0bcf65b0d43525ca86e465e076f62056774a34
parent69edd9a53bbd3d65d20db0abf9711a0ec976cc80
Correct sampler address clamping for read image functions.

Integer coordinates were converted to unsigned integers, yielding
incorrect clamping of negative coordinates.

Signed-off-by: Dag Lem <dag@nimrod.no>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/llvm/llvm_gen_backend.cpp