diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2014-12-02 14:41:01 +0300 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2014-12-03 11:48:14 +0300 |
commit | b8ccd1e490de8d9b9a968f859c003a10882ad8c8 (patch) | |
tree | a9eca99789d07574a82f03647e73d3e64c7e1ef3 /drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | |
parent | 89669e7a7f96be3ee8d9a22a071d7c0d3b4428fc (diff) | |
download | linux-b8ccd1e490de8d9b9a968f859c003a10882ad8c8.tar.xz |
drm/vmwgfx: (Re)bind shaders to MOBs with the correct offset
This codepath is mostly hit when rebinding after a backup buffer swapout. It's
amazing that this error hasn't been more obvious but probably the shaders are
not reread from guest memory that often..
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_shader.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c b/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c index 8719fb3cccc9..6a4584a43aa6 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c @@ -198,7 +198,7 @@ static int vmw_gb_shader_bind(struct vmw_resource *res, cmd->header.size = sizeof(cmd->body); cmd->body.shid = res->id; cmd->body.mobid = bo->mem.start; - cmd->body.offsetInBytes = 0; + cmd->body.offsetInBytes = res->backup_offset; res->backup_dirty = false; vmw_fifo_commit(dev_priv, sizeof(*cmd)); |