Ian Romanick
5ffbee84a4
intel/compiler: Add id parameter to shader_perf_log callback
...
There are two problems with the current architecture.
In OpenGL, the id is supposed to be a unique identifier for a particular
log source. This is done so that applications can (theoretically)
filter particular log messages. The debug callback infrastructure in
Mesa assigns a uniqe value when a value of 0 is passed in. This causes
the id to get set once to a unique value for each message.
By passing a stack variable that is initialized to 0 on every call,
every time the same message is logged, it will have a different id.
This isn't great, but it's also not catastrophic.
When threaded shader compiles are used, the id *pointer* is saved and
dereferenced at a possibly much later time on a possibly different
thread. This causes one thread to access the stack from a different
thread... and that stack frame might not be valid any more. :(
I have not observed any crashes related to this particular issue.
Reviewed-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12136 >
2021-08-01 23:58:08 +00:00
..
2021-07-14 09:56:46 -07:00
2021-07-14 09:56:59 -07:00
2021-04-20 20:06:33 +00:00
2021-04-20 20:06:33 +00:00
2021-04-02 18:33:07 +00:00
2021-04-20 20:06:33 +00:00
2021-05-04 03:39:45 +00:00
2021-04-20 20:06:33 +00:00
2021-07-16 15:59:56 +00:00
2021-08-01 23:58:08 +00:00
2020-03-06 10:20:39 -08:00
2021-08-01 23:58:08 +00:00
2021-04-20 20:06:33 +00:00
2021-04-20 20:06:33 +00:00
2021-06-30 16:17:18 +00:00
2021-04-20 20:06:33 +00:00
2021-07-16 15:59:56 +00:00
2021-07-16 15:59:56 +00:00
2021-04-02 18:33:07 +00:00
2021-07-22 21:06:33 +00:00
2021-07-16 15:59:56 +00:00
2021-07-22 21:06:33 +00:00
2021-04-20 20:06:33 +00:00
2021-07-16 15:59:56 +00:00
2021-07-14 09:57:06 -07:00
2021-07-22 23:38:04 +00:00
2021-04-20 20:06:33 +00:00
2020-12-01 16:19:08 -06:00
2021-07-14 09:57:01 -07:00
2021-08-01 23:58:08 +00:00
2020-04-17 08:21:40 -07:00
2021-04-20 20:06:33 +00:00
2020-03-06 10:20:39 -08:00
2021-05-22 21:55:33 +00:00
2021-07-23 15:53:57 +00:00
2021-06-25 00:18:29 +00:00
2021-07-14 09:57:04 -07:00
2020-03-06 10:20:57 -08:00
2021-06-23 07:34:22 +00:00
2020-04-23 00:53:14 +00:00
2018-10-15 18:10:27 -07:00
2021-06-03 02:36:17 +00:00
2021-08-01 23:58:08 +00:00
2021-06-28 09:44:40 +00:00
2021-04-20 20:06:34 +00:00
2021-04-20 20:06:33 +00:00
2021-04-02 18:33:07 +00:00
2018-12-11 21:26:23 -06:00
2020-11-03 10:42:29 +00:00
2021-05-12 21:19:11 +00:00
2021-07-16 15:59:56 +00:00
2020-04-28 23:01:03 -07:00
2021-04-20 20:06:33 +00:00
2021-07-14 09:56:46 -07:00
2019-06-11 12:12:07 -07:00
2021-06-03 05:12:33 +00:00
2021-03-08 16:59:55 +00:00
2021-04-02 18:33:07 +00:00
2020-08-29 16:41:05 +00:00
2021-03-08 16:59:55 +00:00
2021-06-08 09:23:55 -07:00
2021-04-20 20:06:33 +00:00
2021-07-08 17:34:41 +00:00
2021-06-22 21:09:25 +00:00
2021-01-06 14:34:41 +00:00
2021-06-22 21:09:25 +00:00
2021-07-21 11:34:49 -07:00
2021-07-08 17:34:41 +00:00
2021-06-22 21:09:25 +00:00
2021-06-08 09:23:55 -07:00
2021-06-22 21:09:25 +00:00
2021-04-02 18:33:07 +00:00
2019-09-17 23:39:18 +03:00
2021-07-23 15:53:57 +00:00
2021-07-21 11:02:15 -07:00
2019-10-24 16:19:23 +02:00
2020-03-06 10:20:39 -08:00
2021-04-20 20:06:33 +00:00
2021-07-12 13:27:41 +00:00
2021-07-12 13:27:41 +00:00
2021-04-20 20:06:33 +00:00
2021-07-12 11:39:03 +00:00
2021-07-16 15:59:56 +00:00
2021-05-19 14:38:13 +00:00
2021-04-02 18:33:07 +00:00
2020-03-06 10:20:39 -08:00
2021-04-20 20:06:33 +00:00
2020-05-20 20:19:18 +00:00
2020-03-06 10:20:59 -08:00
2021-08-01 23:58:08 +00:00
2020-10-09 15:26:14 +02:00
2021-06-03 04:05:07 +00:00
2021-03-24 23:18:46 +00:00
2020-03-06 10:21:01 -08:00
2020-03-06 10:20:59 -08:00
2021-07-13 14:06:33 +00:00
2021-06-04 19:08:57 +00:00
2020-09-28 11:43:10 -07:00
2019-02-28 16:58:20 -06:00
2021-04-20 20:06:33 +00:00
2021-04-08 18:20:10 +00:00
2021-04-20 20:06:33 +00:00
2021-03-24 23:18:46 +00:00
2021-06-11 21:19:06 +00:00
2021-04-20 20:06:33 +00:00
2021-03-24 23:18:46 +00:00
2021-08-01 23:58:08 +00:00
2021-05-19 14:38:13 +00:00
2021-04-20 20:06:33 +00:00
2021-04-02 18:33:07 +00:00
2021-06-03 04:05:07 +00:00
2021-06-03 04:05:07 +00:00
2021-07-21 11:02:15 -07:00
2021-04-20 20:06:34 +00:00
2021-05-17 09:46:45 +00:00
2021-04-20 20:06:33 +00:00
2021-04-20 20:06:33 +00:00
2021-04-20 20:06:33 +00:00
2021-04-20 20:06:33 +00:00
2021-04-20 20:06:33 +00:00
2021-04-20 20:06:33 +00:00
2021-04-20 20:06:33 +00:00
2021-04-20 20:06:33 +00:00