summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/svga/drm/vmw_context.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2012-01-09 13:24:50 +0100
committerJakob Bornecrantz <jakob@vmware.com>2012-01-10 16:59:45 +0100
commitca21c85ab062f18649445fdbc4e494e31e5ca535 (patch)
treee1d275817f16c07d67d788a0b7d1963de16e774e /src/gallium/winsys/svga/drm/vmw_context.c
parent1c9a46dbbe74ca342ed9390683ef4a4f5acd91c5 (diff)
svga: Drop execbuf throttling
This code isn't used anymore in preference for DRI2 client side swap buffers throttling or throttling done inside the xa or xorg driver. Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/winsys/svga/drm/vmw_context.c')
-rw-r--r--src/gallium/winsys/svga/drm/vmw_context.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/gallium/winsys/svga/drm/vmw_context.c b/src/gallium/winsys/svga/drm/vmw_context.c
index 2edb5eae102..e08a48ccc3b 100644
--- a/src/gallium/winsys/svga/drm/vmw_context.c
+++ b/src/gallium/winsys/svga/drm/vmw_context.c
@@ -101,9 +101,6 @@ struct vmw_svga_winsys_context
* referred.
*/
boolean preemptive_flush;
-
- boolean throttle_set;
- uint32_t throttle_us;
};
@@ -136,7 +133,6 @@ vmw_swc_flush(struct svga_winsys_context *swc,
struct pipe_fence_handle *fence = NULL;
unsigned i;
enum pipe_error ret;
- uint32_t throttle_us;
ret = pb_validate_validate(vswc->validate);
assert(ret == PIPE_OK);
@@ -155,13 +151,10 @@ vmw_swc_flush(struct svga_winsys_context *swc,
*reloc->where = ptr;
}
- throttle_us = vswc->throttle_set ?
- vswc->throttle_us : vswc->vws->default_throttle_us;
-
if (vswc->command.used || pfence != NULL)
vmw_ioctl_command(vswc->vws,
vswc->base.cid,
- throttle_us,
+ 0,
vswc->command.buffer,
vswc->command.used,
&fence);
@@ -401,15 +394,3 @@ vmw_svga_winsys_context_create(struct svga_winsys_screen *sws)
return &vswc->base;
}
-
-
-void
-vmw_svga_context_set_throttling(struct pipe_context *pipe,
- uint32_t throttle_us)
-{
- struct svga_winsys_context *swc = svga_winsys_context(pipe);
- struct vmw_svga_winsys_context *vswc = vmw_svga_winsys_context(swc);
-
- vswc->throttle_us = throttle_us;
- vswc->throttle_set = TRUE;
-}