drm/vmwgfx: Fix incorrect command header offset at restart
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 24 Aug 2017 06:06:31 +0000 (08:06 +0200)
committerSinclair Yeh <syeh@vmware.com>
Mon, 28 Aug 2017 15:40:51 +0000 (17:40 +0200)
commit1f1a36cc4d4986a800018f1d3eed94a4e92a576f
tree79d2bad22fa9b77d0cbd0cb5f45b71c08227a4df
parent5f55be5f306a619e0cdc58104f06a564f5bb30d5
drm/vmwgfx: Fix incorrect command header offset at restart

Sometimes it appears like the device modifies the command header offset
member. So explicitly clear it when restarting after an error.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c