+
+TEST(GammaExpansionEffectTest, Rec709_AlphaIsUnchanged) {
+ float data[] = {
+ 0.0f, 0.0f, 0.0f, 0.0f,
+ 0.0f, 0.0f, 0.0f, 0.25f,
+ 0.0f, 0.0f, 0.0f, 0.5f,
+ 0.0f, 0.0f, 0.0f, 0.75f,
+ 0.0f, 0.0f, 0.0f, 1.0f,
+ };
+ float out_data[5 * 4];
+ EffectChainTester tester(data, 5, 1, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_REC_709);
+ tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR);
+
+ expect_equal(data, out_data, 5, 1);
+}