mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 06:30:11 +01:00
iris: Align last_seqnos to 64 bits.
last_seqnos is used in atomic operations. Specially on 32 bit platorms, it tends to be slower if it's not aligned to 64 bits (seecdc331c6f9). This fixes a small regression on Bioshock. Fixes:aba3aed96e("iris: fix export of GEM handles") Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5637>
This commit is contained in:
parent
2fd746e98e
commit
293221ddda
1 changed files with 4 additions and 1 deletions
|
|
@ -203,8 +203,11 @@ struct iris_bo {
|
|||
*
|
||||
* Although this is a global field, use in multiple contexts should be
|
||||
* safe, see iris_emit_buffer_barrier_for() for details.
|
||||
*
|
||||
* Also align it to 64 bits. This will make atomic operations faster on 32
|
||||
* bit platforms.
|
||||
*/
|
||||
uint64_t last_seqnos[NUM_IRIS_DOMAINS];
|
||||
uint64_t last_seqnos[NUM_IRIS_DOMAINS] __attribute__ ((aligned (8)));
|
||||
|
||||
/**
|
||||
* Boolean of whether the GPU is definitely not accessing the buffer.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue