diff options
author | Kenneth Graunke <[email protected]> | 2017-04-04 14:51:52 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-04-10 14:31:28 -0700 |
commit | b0d1c5983b987899bf631cf427fb2de09f27bdf7 (patch) | |
tree | ca75fea31014e98c4c3bb79aa9c9753a5e7b645f /src/mesa | |
parent | 2c257ff226eb6e42079fadf3c101948d3782e5b6 (diff) |
i965/drm: Drop cliprects and dr4 from execbuf variants.
Legacy DRI1 leftovers.
Reviewed-by: Chris Wilson <[email protected]>
Acked-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_bufmgr.h | 9 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_batchbuffer.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_bufmgr_gem.c | 25 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 1 |
4 files changed, 12 insertions, 25 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h index 7418b14de0e..84e29fbc168 100644 --- a/src/mesa/drivers/dri/i965/brw_bufmgr.h +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h @@ -42,8 +42,6 @@ extern "C" { #endif -struct drm_clip_rect; - typedef struct _drm_bacon_bufmgr drm_bacon_bufmgr; typedef struct _drm_bacon_context drm_bacon_context; typedef struct _drm_bacon_bo drm_bacon_bo; @@ -198,13 +196,10 @@ void drm_bacon_bo_wait_rendering(drm_bacon_bo *bo); void drm_bacon_bufmgr_destroy(drm_bacon_bufmgr *bufmgr); /** Executes the command buffer pointed to by bo. */ -int drm_bacon_bo_exec(drm_bacon_bo *bo, int used, - struct drm_clip_rect *cliprects, int num_cliprects, int DR4); +int drm_bacon_bo_exec(drm_bacon_bo *bo, int used); /** Executes the command buffer pointed to by bo on the selected ring buffer */ -int drm_bacon_bo_mrb_exec(drm_bacon_bo *bo, int used, - struct drm_clip_rect *cliprects, int num_cliprects, int DR4, - unsigned int flags); +int drm_bacon_bo_mrb_exec(drm_bacon_bo *bo, int used, unsigned int flags); int drm_bacon_bufmgr_check_aperture_space(drm_bacon_bo ** bo_array, int count); /** diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index 67aa3c6c356..c81ad3bb401 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -488,7 +488,7 @@ do_flush_locked(struct brw_context *brw, int in_fence_fd, int *out_fence_fd) assert(in_fence_fd == -1); assert(out_fence_fd == NULL); ret = drm_bacon_bo_mrb_exec(batch->bo, 4 * USED_BATCH(*batch), - NULL, 0, 0, flags); + flags); } else { ret = drm_bacon_gem_bo_fence_exec(batch->bo, brw->hw_ctx, 4 * USED_BATCH(*batch), diff --git a/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c b/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c index 964bdf19dc8..be587ca9282 100644 --- a/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c +++ b/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c @@ -2000,7 +2000,6 @@ drm_bacon_update_buffer_offsets2 (drm_bacon_bufmgr_gem *bufmgr_gem) static int do_exec2(drm_bacon_bo *bo, int used, drm_bacon_context *ctx, - drm_clip_rect_t *cliprects, int num_cliprects, int DR4, int in_fence, int *out_fence, unsigned int flags) { @@ -2046,10 +2045,10 @@ do_exec2(drm_bacon_bo *bo, int used, drm_bacon_context *ctx, execbuf.buffer_count = bufmgr_gem->exec_count; execbuf.batch_start_offset = 0; execbuf.batch_len = used; - execbuf.cliprects_ptr = (uintptr_t)cliprects; - execbuf.num_cliprects = num_cliprects; + execbuf.cliprects_ptr = 0; + execbuf.num_cliprects = 0; execbuf.DR1 = 0; - execbuf.DR4 = DR4; + execbuf.DR4 = 0; execbuf.flags = flags; if (ctx == NULL) i915_execbuffer2_set_context_id(execbuf, 0); @@ -2108,28 +2107,22 @@ skip_execution: } int -drm_bacon_bo_exec(drm_bacon_bo *bo, int used, - drm_clip_rect_t *cliprects, int num_cliprects, - int DR4) +drm_bacon_bo_exec(drm_bacon_bo *bo, int used) { - return do_exec2(bo, used, NULL, cliprects, num_cliprects, DR4, - -1, NULL, I915_EXEC_RENDER); + return do_exec2(bo, used, NULL, -1, NULL, I915_EXEC_RENDER); } int -drm_bacon_bo_mrb_exec(drm_bacon_bo *bo, int used, - drm_clip_rect_t *cliprects, int num_cliprects, int DR4, - unsigned int flags) +drm_bacon_bo_mrb_exec(drm_bacon_bo *bo, int used, unsigned int flags) { - return do_exec2(bo, used, NULL, cliprects, num_cliprects, DR4, - -1, NULL, flags); + return do_exec2(bo, used, NULL, -1, NULL, flags); } int drm_bacon_gem_bo_context_exec(drm_bacon_bo *bo, drm_bacon_context *ctx, int used, unsigned int flags) { - return do_exec2(bo, used, ctx, NULL, 0, 0, -1, NULL, flags); + return do_exec2(bo, used, ctx, -1, NULL, flags); } int @@ -2140,7 +2133,7 @@ drm_bacon_gem_bo_fence_exec(drm_bacon_bo *bo, int *out_fence, unsigned int flags) { - return do_exec2(bo, used, ctx, NULL, 0, 0, in_fence, out_fence, flags); + return do_exec2(bo, used, ctx, in_fence, out_fence, flags); } static int diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 7d53f8756d9..1377757b609 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -1411,7 +1411,6 @@ intel_detect_pipelined_register(struct intel_screen *screen, *batch++ = MI_BATCH_BUFFER_END; drm_bacon_bo_mrb_exec(bo, ALIGN((char *)batch - (char *)bo->virtual, 8), - NULL, 0, 0, I915_EXEC_RENDER); /* Check whether the value got written. */ |