lima: move dump check to macro for lima_dump_command_stream_print
authorQiang Yu <yuq825@gmail.com>
Mon, 10 Feb 2020 08:09:31 +0000 (16:09 +0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Feb 2020 02:54:15 +0000 (02:54 +0000)
commit57d9a51d455900946f3eac18b8d1d77cb03b972c
treef3daa84e93b2b7b059ed3c65e74d831befe54c67
parent5502bc83b0e4d4542bc5234fe6592db575658356
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@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>
src/gallium/drivers/lima/lima_util.c
src/gallium/drivers/lima/lima_util.h