Module: Mesa Branch: master Commit: 12dfba195178656aa297e23650bdf3a3bd44d2b0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=12dfba195178656aa297e23650bdf3a3bd44d2b0
Author: Mike Blumenkrantz <[email protected]> Date: Wed Nov 25 17:05:58 2020 -0500 zink: unify gfx and compute batches now that batches aren't limited and flushing is less costly, there's no reason to keep these separate the primary changes here are removing the zink_queue enum and collapsing related arrays which used it as an index, e.g., zink_batch_usage into single members remaining future work here will include removing synchronization flushes which are no longer necessary and (eventually) removing batch params from a number of functions since there is now only ever a single batch Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9765> --- src/gallium/drivers/zink/zink_batch.c | 116 +++++++++-------------- src/gallium/drivers/zink/zink_batch.h | 21 ++--- src/gallium/drivers/zink/zink_clear.c | 8 +- src/gallium/drivers/zink/zink_context.c | 140 +++++++++++----------------- src/gallium/drivers/zink/zink_context.h | 37 ++------ src/gallium/drivers/zink/zink_descriptors.c | 4 +- src/gallium/drivers/zink/zink_draw.c | 63 +++++-------- src/gallium/drivers/zink/zink_fence.c | 8 +- src/gallium/drivers/zink/zink_fence.h | 1 - src/gallium/drivers/zink/zink_program.c | 1 + src/gallium/drivers/zink/zink_program.h | 1 + src/gallium/drivers/zink/zink_query.c | 58 ++++-------- src/gallium/drivers/zink/zink_resource.c | 80 ++++++---------- src/gallium/drivers/zink/zink_resource.h | 2 +- 14 files changed, 190 insertions(+), 350 deletions(-) Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=12dfba195178656aa297e23650bdf3a3bd44d2b0 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
