diff options
author | Kenneth Graunke <[email protected]> | 2017-09-21 13:30:47 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-09-25 15:15:13 -0700 |
commit | e1623da8185ee5d167cd331fb645e6a83961285a (patch) | |
tree | 2e2c0892c2e0ef8d81cda0fcf62d6c461cea1bb5 | |
parent | 962cc1bd17cbe34101c647c3e8bb72986810c652 (diff) |
i965: Rename do_flush_locked to submit_batch().
do_flush_locked isn't a great name - especially given that there's no
locking going on in our code relating to execbuf.
Reviewed-by: Chris Wilson <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_batchbuffer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index 053c4baabd5..d564510d06a 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -777,7 +777,7 @@ execbuffer(int fd, } static int -do_flush_locked(struct brw_context *brw, int in_fence_fd, int *out_fence_fd) +submit_batch(struct brw_context *brw, int in_fence_fd, int *out_fence_fd) { const struct gen_device_info *devinfo = &brw->screen->devinfo; __DRIscreen *dri_screen = brw->screen->driScrnPriv; @@ -865,7 +865,8 @@ do_flush_locked(struct brw_context *brw, int in_fence_fd, int *out_fence_fd) brw_check_for_reset(brw); if (ret != 0) { - fprintf(stderr, "intel_do_flush_locked failed: %s\n", strerror(-ret)); + fprintf(stderr, "i965: Failed to submit batchbuffer: %s\n", + strerror(-ret)); exit(1); } @@ -914,7 +915,7 @@ _intel_batchbuffer_flush_fence(struct brw_context *brw, brw->batch.state_relocs.reloc_count); } - ret = do_flush_locked(brw, in_fence_fd, out_fence_fd); + ret = submit_batch(brw, in_fence_fd, out_fence_fd); if (unlikely(INTEL_DEBUG & DEBUG_SYNC)) { fprintf(stderr, "waiting for idle\n"); |