mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
radv: add RADV_DEBUG=extra_md
This enables the use of UMD metadata v2. This allows tools (eg umr) import buffers. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21984>
This commit is contained in:
parent
f315774727
commit
c1050b5330
4 changed files with 5 additions and 1 deletions
|
|
@ -1063,6 +1063,8 @@ RADV driver environment variables
|
|||
validate the LLVM IR before LLVM compiles the shader
|
||||
``epilogs``
|
||||
dump fragment shader epilogs
|
||||
``extra_md``
|
||||
add extra information in bo metadatas to help tools (umr)
|
||||
``forcecompress``
|
||||
Enables DCC,FMASK,CMASK,HTILE in situations where the driver supports it
|
||||
but normally does not deem it beneficial.
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ enum {
|
|||
RADV_DEBUG_DUMP_EPILOGS = 1ull << 37,
|
||||
RADV_DEBUG_NO_FMASK = 1ull << 38,
|
||||
RADV_DEBUG_SHADOW_REGS = 1ull << 39,
|
||||
RADV_DEBUG_EXTRA_MD = 1ull << 40,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
|
|||
|
|
@ -1443,7 +1443,7 @@ radv_query_opaque_metadata(struct radv_device *device, struct radv_image *image,
|
|||
|
||||
ac_surface_compute_umd_metadata(&device->physical_device->rad_info, &image->planes[0].surface,
|
||||
image->info.levels, desc, &md->size_metadata, md->metadata,
|
||||
false);
|
||||
device->instance->debug_flags & RADV_DEBUG_EXTRA_MD);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ static const struct debug_control radv_debug_options[] = {
|
|||
{"epilogs", RADV_DEBUG_DUMP_EPILOGS},
|
||||
{"nofmask", RADV_DEBUG_NO_FMASK},
|
||||
{"shadowregs", RADV_DEBUG_SHADOW_REGS},
|
||||
{"extra_md", RADV_DEBUG_EXTRA_MD},
|
||||
{NULL, 0}};
|
||||
|
||||
const char *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue