davinci: fod: Use FOD_PRESSED_LAYER_ZORDER instead of magic number

Change-Id: I93d8519ca43db307abdf958354920da10776aa80
This commit is contained in:
Vincent Vidal 2020-08-18 14:42:49 +02:00 committed by Arian
parent e080227d40
commit acd719db2d
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

@ -14,11 +14,13 @@
* limitations under the License.
*/
#include <stdint.h>
#include <drm/sde_drm.h>
#include <compositionengine/FodExtension.h>
uint32_t getFodZOrder(uint32_t z, bool touched) {
if (touched) {
z |= 0x20000000u;
z |= FOD_PRESSED_LAYER_ZORDER;
}
return z;