[Mesa-dev] [PATCH v2 3/3] i965: if DEBUG_OUT_OF_BOUND_CHK is up, check that noise padding for each bo used in batchbuffer is correct

Rogovin, Kevin kevin.rogovin at intel.com
Wed Dec 13 12:29:44 UTC 2017


Hi,

> Yes. It's just the accidental writes into the read-only bo that you may miss. Your call, and I have no
> objections if such limitations are described in the comments.

I'll add the comment; since there then less code to read (indeed using brw_bo_map will not work because
it does not map the range including the padding). I've made a version at: 

https://github.com/krogueintel/asem/tree/i965-pad-gem-bos-v2-dont-use-pread

which does not use pread, but it looks so much ickier to me.

-Kevin


More information about the mesa-dev mailing list