aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-09-01 16:18:42 -0400
committerDave Airlie <airlied@redhat.com>2011-09-06 06:48:40 -0400
commit6bcd8d3c782b7b2c98c8f414a6bb43cf6b84e53c (patch)
treeec6f664be6a2ff92e0512494c222af6e2776130b /drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
parentf63f6a59d3905ac73aeeb617b27ac31516549ed9 (diff)
vmwgfx: Fix confusion caused by using "fence" in various places
This is needed before we introduce the fence objects. Otherwise this will be even more confusing. The plan is to use the following: seqno: A 32-bit sequence number that may be passed in the fifo. marker: Objects, carrying a seqno, that track fifo submission time. They are used for fifo lag based throttling. fence objects: Kernel space objects, possibly accessible from user-space and carrying a 32-bit seqno together with signaled status. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
index 87e43e0733bf..72d95617bc59 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
@@ -295,18 +295,18 @@ static int vmw_sync_obj_flush(void *sync_obj, void *sync_arg)
295static bool vmw_sync_obj_signaled(void *sync_obj, void *sync_arg) 295static bool vmw_sync_obj_signaled(void *sync_obj, void *sync_arg)
296{ 296{
297 struct vmw_private *dev_priv = (struct vmw_private *)sync_arg; 297 struct vmw_private *dev_priv = (struct vmw_private *)sync_arg;
298 uint32_t sequence = (unsigned long) sync_obj; 298 uint32_t seqno = (unsigned long) sync_obj;
299 299
300 return vmw_fence_signaled(dev_priv, sequence); 300 return vmw_seqno_passed(dev_priv, seqno);
301} 301}
302 302
303static int vmw_sync_obj_wait(void *sync_obj, void *sync_arg, 303static int vmw_sync_obj_wait(void *sync_obj, void *sync_arg,
304 bool lazy, bool interruptible) 304 bool lazy, bool interruptible)
305{ 305{
306 struct vmw_private *dev_priv = (struct vmw_private *)sync_arg; 306 struct vmw_private *dev_priv = (struct vmw_private *)sync_arg;
307 uint32_t sequence = (unsigned long) sync_obj; 307 uint32_t seqno = (unsigned long) sync_obj;
308 308
309 return vmw_wait_fence(dev_priv, false, sequence, false, 3*HZ); 309 return vmw_wait_seqno(dev_priv, false, seqno, false, 3*HZ);
310} 310}
311 311
312struct ttm_bo_driver vmw_bo_driver = { 312struct ttm_bo_driver vmw_bo_driver = {