svga: add can_use_upload flag
authorCharmaine Lee <charmainel@vmware.com>
Fri, 30 Sep 2016 23:41:12 +0000 (16:41 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Nov 2016 20:29:22 +0000 (14:29 -0600)
commit59f14563a306b33171ea2d8fa73aa3a4363761a3
tree0a2450bf8858798a66201bcc2bb3e1f8a5ab5bf4
parent3dfb4243bdefcdfa94b0165199a50a739e8c6679
svga: add can_use_upload flag

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.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c
src/gallium/drivers/svga/svga_resource_texture.h