diff options
author | Ray Strode <[email protected]> | 2015-08-28 14:50:21 -0400 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-09-15 12:27:45 +0100 |
commit | 4bf151e66279da00655cec02aadb52c9c6583213 (patch) | |
tree | 426a0c90609ab273317cc4fbab970ea6cb238d7f /scons | |
parent | a26e82b81dc3cebf13c8fd418d87977f2ab2dbb5 (diff) |
gbm: convert gbm bo format to fourcc format on dma-buf import
At the moment if a gbm buffer is imported and the gbm buffer
has an old-style GBM_BO_FORMAT format, the import will crash,
since it's passed directly to DRI functions that expect
a fourcc format (as provided by the newer GBM_FORMAT
definitions)
This commit addresses the problem in two ways:
1) it prevents invalid formats from leading to a crash by
returning EINVAL if the image couldn't be created
2) it translates GBM_BO_FORMAT formats into the comparable
GBM_FORMAT formats.
Reference: https://bugzilla.gnome.org/show_bug.cgi?id=753531
CC: "10.6 11.0" <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'scons')
0 files changed, 0 insertions, 0 deletions