sdm: Add support to GL based WB.
-- Mark all layers to GPU.
-- Program FBT to GPU for CSC.
CRs-Fixed: 2547250
Change-Id: I707fc25ef590f158b4576c91c710706198d06f01
diff --git a/gpu_tonemapper/Tonemapper.cpp b/gpu_tonemapper/Tonemapper.cpp
index 2605c7f..aa86a3c 100644
--- a/gpu_tonemapper/Tonemapper.cpp
+++ b/gpu_tonemapper/Tonemapper.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright 2015 The Android Open Source Project
@@ -143,7 +143,7 @@
}
// set source
if (src_buffer) {
- engine_setExternalInputBuffer(0, src_buffer->getTexture());
+ engine_setExternalInputBuffer(0, src_buffer->getTexture(0x8D65 /* target texture */));
}
// set 3d lut
engine_set3DInputBuffer(1, tonemapTexture);