diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2016-10-10 21:06:45 +0300 |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2016-10-10 21:15:05 +0300 |
commit | a19440304db2d97aed5cee9bfa5017c98d2348bf (patch) | |
tree | cf6c0727b420debe8be56edc17d50e6a8487e471 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 51ab70bed997f64f091a639dbe22b629725a7faf (diff) | |
download | linux-a19440304db2d97aed5cee9bfa5017c98d2348bf.tar.xz |
drm/vmwgfx: Avoid validating views on view destruction
When a view destruction command was present in the command stream, the
view was validated to avoid a device error. That caused excessive and
unnecessary validations of views, surfaces and mobs on view destruction.
Replace this with a new relocation type that patches the view
destruction command to a NOP if the view is not present in the device
after the execbuf validation sequence.
Also add checks for the member size of the vmw_res_relocation struct.
Fixes sporadic command submission errors on google-earth exit.
Reported-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions