radv: add initial trap handler support with RADV_TRAP_HANDLER=1
A trap handler is used to handle shader exceptions like memory violations, divide by zero etc. The trap handler shader code will help to identify the faulty shader/instruction and to report more information for better debugging. This has only been tested on GFX8, though it should work on GFX6-GFX7. It seems we need a different implemenation for GFX9+. 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/6384>
This commit is contained in:

committed by
Marge Bot

parent
8fd2f5c16d
commit
af3230e39e
@@ -82,4 +82,7 @@ radv_print_spirv(const char *data, uint32_t size, FILE *fp);
|
||||
void
|
||||
radv_dump_enabled_options(struct radv_device *device, FILE *f);
|
||||
|
||||
bool radv_trap_handler_init(struct radv_device *device);
|
||||
void radv_trap_handler_finish(struct radv_device *device);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user