Repository navigation
gpuav: Add ShaderAbort support - #13756
spencer-lunarg wants to merge 1 commit into
Conversation
| ((uint32_t*)error_output_buffer_range_.offset_mapped_ptr)[glsl::error_buffer_u32_size_member_offset] = | ||
| uint32_t(error_output_buffer_range_.size / sizeof(uint32_t)); | ||
|
|
||
| cmd_buffer_id_ = gpuav_.next_cmd_buffer_id_++; |
There was a problem hiding this comment.
Just a fly bye: are you conflating a command buffer and a command buffer submission here?
I will look further tomorrow, but this has been a pitfall in the past
There was a problem hiding this comment.
similar to other issue, the ID is per command buffer, not per submission as that is enough to decode the error, but it would mean every submission of the same command buffer finds the same abort messages.
will fix to duplicate report (and get a test)
There was a problem hiding this comment.
For now don't bother doing that, since this issue is also already present for error buffers anyway: they should be associated to command buffer submissions, not global command buffer state like now. When the issue is fixed for error buffers, we can look at abort messages
I just wanted to make sure no issue goes beyond the ones we already have with our error buffers!
| "[WARNING] A device lost occurred. Trying to print an error GPU-AV might have gathered. Since GPU buffers storing " | ||
| "GPU-AV errors are in theory undefined in this context, error messages may be inaccurate or wrongly report a " | ||
| "nonexistent error. In practice, memory tends to hold up, and reads are fine.\n"; | ||
| } |
There was a problem hiding this comment.
| } | |
| } else if (abort_error_records.empty()) { | |
| // skip the error scanning loop, but just this | |
| } |
There was a problem hiding this comment.
what?
this is
if (!abort_error_records.empty()) {
// report our shader abort
} else if (is_device_lost) {
// thing broke, try to recover
}
// normal scanning logic
not sure what you are asking here
929eace to
2690ef4
Compare
This adds a new opt-in option that will work like "safe mode" but instead inject an
OpAbortKHRso that you will stop and see your error message right when it occursThis will cause a device lost so this is going to be designed for only people who need this
This makes use of https://github.com/LunarG/ShaderAbortStrip to both not redo work, but also to dog feed our new tool
closes #11943