radv: print a warning when RADV_TRAP_HANDLER is used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Aug 2020 08:07:45 +0000 (10:07 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 26 Aug 2020 11:27:38 +0000 (11:27 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6468>

src/amd/vulkan/radv_device.c

index 5139cf6fcbebb4cec341f6e9f34b36219170b10f..31f486d3d75615531c9fc29a595f14ad2c757561 100644 (file)
@@ -2821,6 +2821,10 @@ VkResult radv_CreateDevice(
                /* TODO: Add support for more hardware. */
                assert(device->physical_device->rad_info.chip_class == GFX8);
 
+               fprintf(stderr, "**********************************************************************\n");
+               fprintf(stderr, "* WARNING: RADV_TRAP_HANDLER is experimental and only for debugging! *\n");
+               fprintf(stderr, "**********************************************************************\n");
+
                /* To get the disassembly of the faulty shaders, we have to
                 * keep some shader info around.
                 */