diff options
author | Matt Turner <[email protected]> | 2017-04-25 10:00:19 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2017-05-15 11:42:41 -0700 |
commit | 8ca8ebbf78d6e5eacbd42dc245f503e0c9787268 (patch) | |
tree | dc6e84990f54efd95b88caa471d0759125ebde44 /src/mesa/drivers/dri/i965/brw_bufmgr.c | |
parent | 0aa578714e9d664ab15d2bfb70102505928d8119 (diff) |
i965: Mark shader programs for capture in the error state.
When the GPU hangs, the kernel saves some state for us. Until now it has
not included the shader programs, which are very often the reason the
GPU hang occurred. With the programs saved in the error state, we should
be more capable of debugging hangs.
Thanks to Chris Wilson and Ben Widawsky who provided the kernel support
for this feature ("drm/i915: Copy user requested buffers into the error
state"), which will be in kernel v4.13.
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_bufmgr.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_bufmgr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c index 4b6433178d0..2f179347009 100644 --- a/src/mesa/drivers/dri/i965/brw_bufmgr.c +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c @@ -599,6 +599,7 @@ bo_unreference_final(struct brw_bo *bo, time_t time) bo->free_time = time; bo->name = NULL; + bo->kflags = 0; list_addtail(&bo->head, &bucket->head); } else { |