svga: Drop execbuf throttling
authorJakob Bornecrantz <jakob@vmware.com>
Mon, 9 Jan 2012 12:24:50 +0000 (13:24 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Tue, 10 Jan 2012 15:59:45 +0000 (16:59 +0100)
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>

src/gallium/targets/dri-vmwgfx/target.c
src/gallium/winsys/svga/drm/vmw_context.c
src/gallium/winsys/svga/drm/vmw_context.h
src/gallium/winsys/svga/drm/vmw_screen.c
src/gallium/winsys/svga/drm/vmw_screen.h

index 442e31bba95e3878e46f67010b5aab8ce3576f17..e01e4652adaacd8c8bfc6c8e918d12a7a6f3f793 100644 (file)
@@ -19,7 +19,6 @@ create_screen(int fd)
    if (!screen)
       return NULL;
 
-   vmw_winsys_screen_set_throttling(screen, 0);
    screen = sw_screen_wrap(screen);
 
    screen = debug_screen_wrap(screen);
index 2edb5eae102849bf4e53976aa8accac017981ed9..e08a48ccc3b99e60d00ae009f9aaceae71bd4418 100644 (file)
@@ -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;
-}
index aed8b93734b2c3cf61ea2d2c67eb65104e04b1ef..b27e0b8f4be0f211b66047f20dc155e3b918ac10 100644 (file)
@@ -52,8 +52,4 @@ struct pipe_screen;
 struct svga_winsys_context *
 vmw_svga_winsys_context_create(struct svga_winsys_screen *sws);
 
-void
-vmw_svga_context_set_throttling(struct pipe_context *pipe,
-                               uint32_t throttle_us);
-
 #endif /* VMW_CONTEXT_H_ */
index cc3003d252f644cecb37661c3e8ce395c2ab9762..f7799cec32d113712dfbedb31dd2640a9b9caa45 100644 (file)
@@ -73,13 +73,3 @@ vmw_winsys_destroy(struct vmw_winsys_screen *vws)
    vmw_ioctl_cleanup(vws);
    FREE(vws);
 }
-
-void
-vmw_winsys_screen_set_throttling(struct pipe_screen *screen,
-                                uint32_t throttle_us)
-{
-   struct vmw_winsys_screen  *vws =
-      vmw_winsys_screen(svga_winsys_screen(screen));
-
-   vws->default_throttle_us = throttle_us;
-}
index 1ddebf208ced666c8c4ccba2e397a503c77e31fe..bdc1c7ba3de590d1760fdc46b353559390f333ba 100644 (file)
@@ -59,7 +59,6 @@ struct vmw_winsys_screen
    struct svga_winsys_screen base;
 
    boolean use_old_scanout_flag;
-   uint32_t default_throttle_us;
 
    struct {
       int drm_fd;