hasvk: Gate video decode behind HASVK_DEBUG=video-decode.

Assisted-by: Claude
This commit is contained in:
dancingmirrors authored and elwrcl committed 2026-07-21 22:25:24 +03:00
1 parent 31fd4c3ded
commit bd3d4fc732
3 files changed
+20 -3

No files matched your search

+9
View File
@@ -940,6 +940,15 @@ struct anv_instance {
bool no_16bit;
};
/* Parsed from the HASVK_DEBUG environment variable. */
enum anv_debug {
ANV_DEBUG_VIDEO_DECODE = BITFIELD_BIT(0),
};
extern enum anv_debug anv_debug;
#define ANV_DEBUG(name) unlikely(anv_debug & ANV_DEBUG_##name)
VkResult anv_init_wsi(struct anv_physical_device *physical_device);
void anv_finish_wsi(struct anv_physical_device *physical_device);