Mesa (master): 31 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Feb 17 03:16:41 UTC 2020


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6fc0890cd9cf53dc41fee070faf4570314fdcbc3
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Mon Feb 10 16:25:11 2020 +0800

    lima: rename lima_submit to lima_job
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=57d9a51d455900946f3eac18b8d1d77cb03b972c
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Mon Feb 10 16:09:31 2020 +0800

    lima: move dump check to macro for lima_dump_command_stream_print
    
    This can prevent the execution of some function like lima_ctx_buff_va
    which is passed in as parameter when no dump case.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5502bc83b0e4d4542bc5234fe6592db575658356
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Fri Feb 7 20:32:51 2020 +0800

    lima: enable multi submit optimization
    
    Also provide a debug option to disable it.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=131c50569066152a8e90b948b0873b990d748e98
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Fri Feb 7 19:43:10 2020 +0800

    lima: optinal flush submit in lima_clear
    
    flush current submit only when there is any draw pending instead of
    flush all submits.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6ad8e590f27ce0413389f6274fa05106d45dba1
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Wed Feb 5 14:25:21 2020 +0800

    lima: use per submit dump file
    
    After multi lima_submit, commands for one lima_submit may not be
    flushed when change framebuffer. But we want to track command
    stream for one submit, so save dump file for each submit.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0dde3de25aca535a35ee58850340a0bfdab9dab
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sun Feb 9 20:07:12 2020 +0800

    lima: move framebuffer info to lima_submit
    
    draw code path does not use framebuffer info, only flush
    code path use it now.
    
    Use zsbuf/cbuf in submit instead of context.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed117ee630f449fe6d2ed9e205a6dc80bed6dfa2
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Wed Feb 5 20:05:03 2020 +0800

    lima: move clear into submit (v2)
    
    clear info is needed when submit flush and may be changed after
    framebuffer switch, so we need to move it into submit.
    
    This also fixes 5 dEQP tests as a side effect: clear info is per
    submit so clear value when one submit won't affect next submit.
    
    v2:
    remove fixed dEQP test from CI list.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b93792274f363983949502315ca693a83fdfb56
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Feb 4 22:52:59 2020 +0800

    lima: move damage_rect into lima_submit
    
    damage_rect is preserved across draws.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4b048c046cc4861d9ce7da94eeaeca341b7e2f5
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Feb 4 21:35:33 2020 +0800

    lima: move pp_max_stack_size to lima_submit
    
    pp_max_stack_size is preserved across draws.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a5b1c62db4cd3ab2dcabe6e32391c18f11dfb17
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Feb 4 18:24:37 2020 +0800

    lima: move resolve into lima_submit
    
    resolve is preserved across draws.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e5abc11f427b67084ad791a6adab5d99717c064
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Feb 4 17:30:59 2020 +0800

    lima: move plbu/vs_cmd_array into lima_submit
    
    This information is preserved across draws and needed
    when task submission.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c64994433c0da03d1dabf7cf561f1f1474d6554f
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Thu Feb 6 20:02:31 2020 +0800

    lima: track write submits of context (v3)
    
    We need to flush submit which write to the FBO before read it as
    texture.
    
    v2:
    rename lima_flush_previous_write_submit to
    lima_flush_previous_submit_writing_resouce.
    
    v3:
    delay add submit to hash_table to lima_update_submit_wb when really
    know the render target will be written.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=48fc5f841ae9c5b294d9084a274f49045c0dbae5
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sun Feb 9 16:10:18 2020 +0800

    lima: make lima_submit one time use drop data (v3)
    
    lima_submit is created by lima_submit_get() in draw/clear functions
    and freed after submit to kernel.
    
    There is a hash map to find the same lima_submit for color/depth
    buffer combination if user switch framebuffer w/o flush the command
    then switch back again.
    
    v2:
    rename lima_flush_submit to lima_flush_submit_accessing_bo.
    
    v3:
    delay flush access submit to lima_update_submit_wb when really know
    if this submit will write to the target buffer.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=545988c6172e51ea00c87abe966d5ecd03b08e98
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sun Feb 9 11:49:52 2020 +0800

    lima: add lima_submit_get
    
    Replace all usage of "ctx->submit" in draw code path with
    lima_submit_get(). This function will create new submit
    in the following changes.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0caefb6d9df8f2b53fa0703a7bd7a665dabe77b2
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sun Feb 9 10:19:49 2020 +0800

    lima: use lima_submit_create_stream_bo for plbu/vs_cmd and pp_stack
    
    lima_ctx_buff is used cross function calls in draws. But plbu/vs_cmd
    and pp_stack are used immediately after create. And we need to get
    rid of "ctx->submit" in the flush code path which exists in
    lima_ctx_buff.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed8837f946159c34573a6b924a0ba6f879c7bb60
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sun Feb 9 10:05:33 2020 +0800

    lima: adjust pp_stream to use lima_submit_create_stream_bo
    
    No need to save the bo, just map and va for use in this submit
    is enough.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e90d8b6e4d135d58e9346220a652b4835c843d07
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sun Feb 9 09:37:53 2020 +0800

    lima: add lima_submit_create_stream_bo
    
    For creating stream buffer which is used in single submit
    and freed after the submit is passed to kernel driver.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c78ba60140ec48996dc4ebcfff0674229a4afd4
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sat Feb 8 20:21:12 2020 +0800

    lima: pass submit parameter for functions in lima_submic.c (v2)
    
    "ctx->submit" won't be used directly, so remove the usage in
    lima_submit.c by directly passing the submit parameter. And
    more data in lima_context will be moved to lima_submit, so
    "ctx" will be replaced by "submit" in those functions.
    
    v2:
    rename lima_submit_flush to lima_do_submit.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=21a2ce71b132739b001442a4f9829de345311c35
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sat Feb 8 19:24:34 2020 +0800

    lima: move flush code to lima_submit.c
    
    Just code move, no content change.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=29c7235507d52d676ec1eee3ef5f9042317595c1
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sat Feb 8 18:44:00 2020 +0800

    lima: put hardware related info to lima_gpu.h
    
    For sharing with multi .c files.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=09127641f41c75f16d8fa73129153c9da6df7810
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Feb 4 15:23:11 2020 +0800

    lima: merge gp/pp submit
    
    Use single lima_submit for the submit operation. This is also
    for moving more information in lima_context to lima_submit.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=79c65fa56fd0168e3e8548e68f1de81b33742069
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Feb 4 14:32:31 2020 +0800

    lima: move syncobj from lima_submit to lima_context
    
    As there will be multi lima_submit per context, move
    syncobj out of it.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9003111bb59635ae407b251561f1d9937d434f0
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Wed Feb 12 11:07:03 2020 +0800

    lima: add missing resolve check for damage and reload
    
    If color buffer is not touched, we do not need to reload or get
    damage region from it.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=47200f5c8dda1e03ae62b8cc658574bf0b2f0fe5
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Fri Feb 7 17:07:51 2020 +0800

    lima: add render target to submit by dirty buffer flags
    
    No need to add un-touched buffer to submit.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=32f17339723d76b920e7b16d171feb66d5b807eb
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sat Feb 8 18:00:24 2020 +0800

    lima: delay plbu head command generation to flush stage (v2)
    
    Prepare for multi submit in which case only know the plb_index when
    final flush. Another need for this is proper reload detection: only
    when flush stage can we know if need to do reload, because user may
    first clear depth, then color individually, so we don't know if need
    to pack repload plbu cmd when first clear depth.
    
    v2:
    move lima_update_submit_wb before ctx->resolve change for lima_ctx_dirty
    to work in lima_submit_wb.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ccfe5f9d288fa36e85ac1140f2eae8429decaae6
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Sun Feb 2 16:48:44 2020 +0800

    lima: delay add plb buffer to submit when flush
    
    Prepare for multi submit in which case plb buffer is known
    only when flush.
    
    Keep the write back buffer update which is needed for FB
    dirty track.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=92387ca23646d2d5b8ee4666968dced0c7198f2c
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Feb 4 11:06:54 2020 +0800

    lima: pass array as parameter to PLBU and VS command macros
    
    Don't assume the ctx parameter, prepare for moving PLBU and
    VS arrary from lima_context to lima_submit and adding new
    plbu_cmd_head array.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3bbe4f7f8bd88ee92179679526664467e83c45a
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Feb 4 10:54:40 2020 +0800

    lima: remove lima_ctx_buff_va submit flags (v2)
    
    We don't have any shared lima_ctx_buff for both GP and PP,
    so no need to have these flags.
    
    v2:
    still add submit in lima_ctx_buff_va because some bo need
    to exist cross flush, so not every submit will call
    lima_ctx_buff_alloc.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f924c795b9520c49572b54bfab07731d4f54e6e
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Feb 11 10:32:38 2020 +0800

    lima: always add texture bo to submit
    
    No matter texture desc change, we need to add texture to submit.
    Otherwise texture may be freed before submit finish.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c4ff27250710a2f4880d0e527b86a4b39adeb1b
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Fri Feb 7 11:12:09 2020 +0800

    lima: use util_copy_framebuffer_state
    
    Use this helper to replace self written code.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8b53d802086f398e50762762227b9ac4c5c6293
Author: Qiang Yu <yuq825 at gmail.com>
Date:   Thu Feb 6 20:20:28 2020 +0800

    lima: remove definition of lima_is_scanout
    
    There is no implementation of this function.
    
    Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
    Signed-off-by: Qiang Yu <yuq825 at gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>



More information about the mesa-commit mailing list