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
Trust your instincts regarding moneymaking offers. If a job seems too good to be true, it probably is. Working as part of a campaigning team will suit you down to the ground. You're more motivated to help people than turn big profits. Some friends will discourage you from entering such a field, fearing it won't be lucrative. Don't worry. You'll make a very good salary by doing what you love. Contrary to popular belief, you don't have to be miserable to earn a good living.More