mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-16 09:48:16 +02:00
The QPU prefetches the next instruction during shader execution. If the shader assembly size perfectly aligns with a page boundary, the prefetching mechanism reads past the compiled boundary, leading to an MMU error. This commit insert an explicit NOP instruction at the end of the shader and increases the qpu_inst_count by one when the instruction count exactly hits a page boundary. This ensures we don't fall off the end of the last executable instruction page and into invalid memory. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40983> |
||
|---|---|---|
| .. | ||
| ci | ||
| cle | ||
| clif | ||
| common | ||
| compiler | ||
| drm-shim | ||
| ds | ||
| perfcntrs | ||
| qpu | ||
| simulator | ||
| vulkan | ||
| .editorconfig | ||
| meson.build | ||