diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2014-12-02 06:41:01 -0500 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2014-12-03 03:48:14 -0500 |
commit | b8ccd1e490de8d9b9a968f859c003a10882ad8c8 (patch) | |
tree | a9eca99789d07574a82f03647e73d3e64c7e1ef3 | |
parent | 89669e7a7f96be3ee8d9a22a071d7c0d3b4428fc (diff) |
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>
-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, | |||
198 | cmd->header.size = sizeof(cmd->body); | 198 | cmd->header.size = sizeof(cmd->body); |
199 | cmd->body.shid = res->id; | 199 | cmd->body.shid = res->id; |
200 | cmd->body.mobid = bo->mem.start; | 200 | cmd->body.mobid = bo->mem.start; |
201 | cmd->body.offsetInBytes = 0; | 201 | cmd->body.offsetInBytes = res->backup_offset; |
202 | res->backup_dirty = false; | 202 | res->backup_dirty = false; |
203 | vmw_fifo_commit(dev_priv, sizeof(*cmd)); | 203 | vmw_fifo_commit(dev_priv, sizeof(*cmd)); |
204 | 204 | ||