<div dir="ltr">I really like this in principal.  I left comments on patches 2 and 3 which I think make things better.  My comments on 2 are a bit on the bikeshed side, but I think reasonable.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 8, 2017 at 2:54 AM,  <span dir="ltr"><<a href="mailto:kevin.rogovin@intel.com" target="_blank">kevin.rogovin@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Kevin Rogovin <<a href="mailto:kevin.rogovin@intel.com">kevin.rogovin@intel.com</a>><br>
<br>
This patch series adds a new debug option to pad each GEM BO<br>
allocated by the brw_bufmgr with random noise values which<br>
are then checked after each batchbuffer dispatch to the kernel.<br>
This can be quite valuable to find diffucult to track down<br>
heisenberg style bugs.<br>
<br>
A possible follow-up series would be to write to stderr (or<br>
another logging mechanism) if the OOB write is to a GEM BO that<br>
backs a GL buffer object; that features would be quite useful for<br>
application developers.<br>
<br>
Kevin Rogovin (3):<br>
  intel/common:add debug flag for adding and checking padding on BO's<br>
  i965: add noise padding to buffer object and function to check if<br>
    noise is correct<br>
  i965: if DEBUG_OUT_OF_BOUND_CHK is up, check that noise padding for<br>
    each bo used in batchbuffer is correct<br>
<br>
 src/intel/common/gen_debug.c                  |  1 +<br>
 src/intel/common/gen_debug.h                  |  1 +<br>
 src/mesa/drivers/dri/i965/brw_<wbr>bufmgr.c        | 68 ++++++++++++++++++++++++++-<br>
 src/mesa/drivers/dri/i965/brw_<wbr>bufmgr.h        | 12 +++++<br>
 src/mesa/drivers/dri/i965/<wbr>intel_batchbuffer.c | 15 ++++++<br>
 5 files changed, 96 insertions(+), 1 deletion(-)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>