This patch adds a flag "can_use_upload" to svga_texture structure to avoid some checking of the upload availability at each transfer map time.
Tested with Lightsmark2008, Tropics, MTT glretrace, piglit.
59f1456 svga: add can_use_upload flag
src/gallium/drivers/svga/svga_resource_texture.c | 59 +++++++++++-----------
src/gallium/drivers/svga/svga_resource_texture.h | 9 +++-
2 files changed, 37 insertions(+), 31 deletions(-)
Upstream: cgit.freedesktop.org