v3d: Implement texture_subdata to reduce teximage upload copies.
authorEric Anholt <eric@anholt.net>
Tue, 18 Dec 2018 22:50:57 +0000 (14:50 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 19 Dec 2018 18:27:26 +0000 (10:27 -0800)
commit8ee752194c1bc4d9ad145f6bf206ee119c9498b8
tree53197a5e51de969997d52064a5777a9dbc6101a1
parente09d8aecb47e77ccbc4a90f7652350cc501fce95
v3d: Implement texture_subdata to reduce teximage upload copies.

This lets us store the non-PBO glTexImage data directly into the tiled
image without making an extra untiled memcpy for the gallium transfer.
Improves 1024x1024 TexImage perf by ~19%, mostly from not thrashing around
in the kernel mapping and unmapping the transfer's temporary area.
src/gallium/drivers/v3d/v3d_resource.c