diff options
author | Iago Toral Quiroga <[email protected]> | 2015-03-19 11:27:21 +0100 |
---|---|---|
committer | Samuel Iglesias Gonsalvez <[email protected]> | 2015-09-25 08:39:20 +0200 |
commit | 332ff009ffcbdad2402f089060623c0a86fa253c (patch) | |
tree | 97efc93b3d688f656c375c5cf2752c0b841c5d29 /src/mesa/drivers/dri/r200/r200_ioctl.h | |
parent | 4cf908f9cbaac5563dd3ff355399e2b56addbca4 (diff) |
i965: Use 64-byte offset alignment for shader storage buffers
This should be a cacheline (64 bytes) so that we can safely have the
CPU and GPU writing the same SSBO on non-cachecoherent systems (our
Atom CPUs). With UBOs, the GPU never writes, so there's no
problem. For an SSBO, the GPU and the CPU can be updating disjoint
regions of the buffer simultaneously and that will break if the
regions overlap the same cacheline.
v2:
- Use cacheline size (64 bytes) instead of 16 bytes (Kristian).
- Update commit log and add a comment in the code explaining
why we use cacheline size (Ben).
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_ioctl.h')
0 files changed, 0 insertions, 0 deletions