summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_resource.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-04-15 04:08:46 +0000
committerAlyssa Rosenzweig <[email protected]>2019-04-19 22:50:20 +0000
commit31d9caa23924a6076bd3f64b9aed7e212940437d (patch)
tree86a9e072c0d3b31e56f49fd1fe0714f42a1634f5 /src/gallium/drivers/panfrost/pan_resource.c
parente008d4f011b62c38be3e1401315dabc0df7e5b29 (diff)
panfrost: Fixup vertex offsets to prevent shadow copy
Mali attribute buffers have to be 64-byte aligned. However, Gallium enforces no such requirement; for unaligned buffers, we were previously forced to create a shadow copy (slow!). To prevent this, we instead use the offseted buffer's address with the lower bits masked off, and then add those masked off bits to the src_offset. Proof of correctness included, possibly for the opportunity to say "QED" unironically. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_resource.c')
0 files changed, 0 insertions, 0 deletions