radv: Switch to the new common vk_error helpers

Also, change every vk_error to use the closest object instead of
fetching all the way back to the instance.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13045>
This commit is contained in:
Jason Ekstrand
2021-09-24 15:19:16 -05:00
committed by Marge Bot
parent 9e299b50ab
commit 7a2516568d
17 changed files with 97 additions and 161 deletions

View File

@@ -45,24 +45,23 @@ enum {
RADV_DEBUG_NO_DYNAMIC_BOUNDS = 1ull << 14,
RADV_DEBUG_NO_OUT_OF_ORDER = 1ull << 15,
RADV_DEBUG_INFO = 1ull << 16,
RADV_DEBUG_ERRORS = 1ull << 17,
RADV_DEBUG_STARTUP = 1ull << 18,
RADV_DEBUG_CHECKIR = 1ull << 19,
RADV_DEBUG_NOBINNING = 1ull << 20,
RADV_DEBUG_NO_NGG = 1ull << 21,
RADV_DEBUG_DUMP_META_SHADERS = 1ull << 22,
RADV_DEBUG_NO_MEMORY_CACHE = 1ull << 23,
RADV_DEBUG_DISCARD_TO_DEMOTE = 1ull << 24,
RADV_DEBUG_LLVM = 1ull << 25,
RADV_DEBUG_FORCE_COMPRESS = 1ull << 26,
RADV_DEBUG_HANG = 1ull << 27,
RADV_DEBUG_IMG = 1ull << 28,
RADV_DEBUG_NO_UMR = 1ull << 29,
RADV_DEBUG_INVARIANT_GEOM = 1ull << 30,
RADV_DEBUG_NO_DISPLAY_DCC = 1ull << 31,
RADV_DEBUG_NO_TC_COMPAT_CMASK = 1ull << 32,
RADV_DEBUG_NO_VRS_FLAT_SHADING = 1ull << 33,
RADV_DEBUG_NO_ATOC_DITHERING = 1ull << 34,
RADV_DEBUG_STARTUP = 1ull << 17,
RADV_DEBUG_CHECKIR = 1ull << 18,
RADV_DEBUG_NOBINNING = 1ull << 19,
RADV_DEBUG_NO_NGG = 1ull << 20,
RADV_DEBUG_DUMP_META_SHADERS = 1ull << 21,
RADV_DEBUG_NO_MEMORY_CACHE = 1ull << 22,
RADV_DEBUG_DISCARD_TO_DEMOTE = 1ull << 23,
RADV_DEBUG_LLVM = 1ull << 24,
RADV_DEBUG_FORCE_COMPRESS = 1ull << 25,
RADV_DEBUG_HANG = 1ull << 26,
RADV_DEBUG_IMG = 1ull << 27,
RADV_DEBUG_NO_UMR = 1ull << 28,
RADV_DEBUG_INVARIANT_GEOM = 1ull << 29,
RADV_DEBUG_NO_DISPLAY_DCC = 1ull << 30,
RADV_DEBUG_NO_TC_COMPAT_CMASK = 1ull << 31,
RADV_DEBUG_NO_VRS_FLAT_SHADING = 1ull << 32,
RADV_DEBUG_NO_ATOC_DITHERING = 1ull << 33,
};
enum {