summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/panfrost/pan_varyings.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-08-22 08:02:52 -0700
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-08-22 13:31:39 -0700
commiteeebf5c2dfbf68e8db5a9926bba7ae55ed7c1b54 (patch)
tree5efb6afacfd5857b70caeeda839a72fdaf171f4c /src/gallium/drivers/panfrost/pan_varyings.c
parentf4678f3c620d52b55522494e306196e8047f8136 (diff)
panfrost: Remove vertex buffer offset from its size
The offset is added to the base address, so we need to subtract it from the size to maintain the same end address and thus prevent a buffer overflow: end_address = start_address + size start_address' = start_address + offset size' = size - offset end_address' = start_address' + size' = (start_address + offset) + (size - offset) = (start_address + size) + (offset - offset) = start_address + size = end_address QED. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_varyings.c')
0 files changed, 0 insertions, 0 deletions