diff options
author | Jason Ekstrand <[email protected]> | 2020-03-26 12:57:36 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-31 08:12:07 +0000 |
commit | 896a7c28eb4b993751bb49659de7511b3fc68756 (patch) | |
tree | 5dde5918dafbf11f6010ce57f74229d72ab035ec /src/intel/tools/i965_asm.h | |
parent | 63bec07e14d1cd8e01bf45bcda341bb364620cfc (diff) |
anv/allocator: Use util_dynarray for blocks in anv_state_stream
When we originally wrote a bunch of the allocation data structures, we
re-used the GPU memory for CPU-side data structures. It's a bit more
memory efficient and usually ok. However, this has a couple of
problems:
1. It makes it MUCH more likely that the GPU will accidentlly stomp
CPU-side data structures and cause nearly impossible to debug
crashes.
2. With discrete GPUs, the memory will be mapped somehow and that map
may be across the BAR so it could have horribly slow CPU access.
This is bad for our CPU-side data structures.
In the case of anv_state_stream, it also made the data structure
massively more complex than it needed to be.
Reviewed-by: Lionel Landwerlin <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4336>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4336>
Diffstat (limited to 'src/intel/tools/i965_asm.h')
0 files changed, 0 insertions, 0 deletions