diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-07-12 14:37:38 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-07-12 22:25:37 -0700 |
commit | 09c4037ddada76ad07cca2fd6b46f5451fa55f1b (patch) | |
tree | 5a965e3b6fd5dcd556bf8909f33840cb1e5a4c7c /src/gallium/drivers/virgl/virgl_protocol.h | |
parent | aa139210792b8380ae937e932248ee0aba6a0e4c (diff) |
anv: Fix pool allocator when first alloc needs to grow
When using softpin, the first allocation was not calculating the
padding and offset correctly for the case the first allocation needed
to grow. We were missing initialize the state.end right after
expanding the pool for the first time.
This is not a problem for non-softpin since there we don't use
leftover padding so the ends would re-arrange incrementally.
This fixes running dEQP-VK.ssbo.phys.layout.random.16bit.scalar.13 in
SKL -- the test uses a shader larger than the initial size for the
instruction pool.
Fixes: dfc9ab2ccd9 "anv/allocator: Add padding information."
Reviewed-by: Rafael Antognolli <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_protocol.h')
0 files changed, 0 insertions, 0 deletions