drm/msm: Verify that MSM_SUBMIT_BO_FLAGS are set
authorJordan Crouse <jcrouse@codeaurora.org>
Tue, 20 Dec 2016 15:54:31 +0000 (08:54 -0700)
committerRob Clark <robdclark@gmail.com>
Thu, 29 Dec 2016 20:03:00 +0000 (15:03 -0500)
commita6cb3b864b21b7345f824a4faa12b723c8aaf099
treeaf0bf5e6ef9607b02bd511473e19e3f705c3d33f
parent6490abc4bc35fa4f3bdb9c7e49096943c50e29ea
drm/msm: Verify that MSM_SUBMIT_BO_FLAGS are set

For every submission buffer object one of MSM_SUBMIT_BO_WRITE
and MSM_SUBMIT_BO_READ must be set (and nothing else). If we
allowed zero then the buffer object would never get queued to
be unreferenced.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem_submit.c