summaryrefslogtreecommitdiff
path: root/utests/utest_helper.cpp
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2016-01-28 10:02:37 +0800
committerYang Rong <rong.r.yang@intel.com>2016-11-08 20:38:22 +0800
commit6f98ade8260824404e2e05c506fc36922bfe66b6 (patch)
tree91757bc29c956327d00704d4a0e5b42196ba3389 /utests/utest_helper.cpp
parent2ef247c021861182f9b0cf9f1eca924cd8d27f6b (diff)
downloadbeignet-6f98ade8260824404e2e05c506fc36922bfe66b6.tar.gz
Runtime: Add support for sRGB
CL_sRGBA with CL_UNNORM_INT8 is the minimum request for OpenCL2.0 and CL_sBGRA is also support by hardware. None of the sRGB surface type suport hardware write. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/utest_helper.cpp')
-rw-r--r--utests/utest_helper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utests/utest_helper.cpp b/utests/utest_helper.cpp
index f9adbc66..b713b79a 100644
--- a/utests/utest_helper.cpp
+++ b/utests/utest_helper.cpp
@@ -171,6 +171,8 @@ cl_test_channel_order_string(cl_channel_order order)
DECL_ORDER(Rx);
DECL_ORDER(RGx);
DECL_ORDER(RGBx);
+ DECL_ORDER(sRGBA);
+ DECL_ORDER(sBGRA);
#undef DECL_ORDER
default: return "Unsupported image channel order";
};