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.
8ee752194c v3d: Implement texture_subdata to reduce teximage upload copies.
src/gallium/drivers/v3d/v3d_resource.c | 114 ++++++++++++++++++++++++---------
1 file changed, 85 insertions(+), 29 deletions(-)