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
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to