The Red Tails actor will play a man who is "obsessively in love" with an old Army friend in the film, reported Deadline.
Things are turned upside down for his character, Peter Snowden, as the couple's reunion approaches and his life starts to spiral out of control.
Elliott Lester will direct the film, which is due to start shooting in Los Angeles. So far no other casting details have been announced.
British star David, 37, can next be seen in Lee Daniels' historical drama The Butler.
COMMENT RULES: Comments that are judged to be defamatory, abusive or in bad taste are not acceptable and contributors who consistently fall below certain criteria will be permanently blacklisted. The moderator will not enter into debate with individual contributors and the moderator’s decision is final. It is Belfast Telegraph policy to close comments on court cases, tribunals and active legal investigations. We may also close comments on articles which are being targeted for abuse. Problems with commenting? email@example.com
Working on a journal can help you process troubling feeling. It's healthy to have a place where you can express yourself without fear of censure. Social media is all well and good, but it's not a place to be totally uninhibited. Save your innermost thoughts for a diary. A troubled romance has been weighing on your mind. You're tired of compromising for the sake of a demanding partner. Being more assertive is critical to the survival of your relationship. You should have your desires met, too.More