svga: relax restriction of compressed formats for texture upload
authorCharmaine Lee <charmainel@vmware.com>
Fri, 16 Sep 2016 16:50:20 +0000 (09:50 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2016 16:24:13 +0000 (10:24 -0600)
commit8a6391477efcede5639e31db2ff42abe37aaabd1
tree0eb71ec77007378676e7a81382a524d55e977510
parent15dee0fc1ddfc02ca5e073f67323907c87136263
svga: relax restriction of compressed formats for texture upload

This patch relaxes the restriction of compressed formats for texture
upload buffer. For now, 3D texture with compressed format
is still not supported in the texture upload buffer path.

As Brian noted, ETQW does many texture updates with glCompressedTexSubImage.
This patch greatly improves the performance of the ETQW trace.

Tested with ETQW, MTT piglit, glretrace, conform, viewperf

v2: Per Brian's suggestion, removed the subregion boundary check.

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