st/mesa: avoid sw fallback for getting/decompressing textures
authorBrian Paul <brianp@vmware.com>
Fri, 7 Feb 2014 16:32:05 +0000 (09:32 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Feb 2014 16:54:43 +0000 (09:54 -0700)
commitf47e5962885d9f7de23a8c9c9ba035017e24ffd6
tree00e30db24709ee9d293907cfd4e675981698b82c
parent5125165dde6ea6c3599810a92d6bcd4a5650adfd
st/mesa: avoid sw fallback for getting/decompressing textures

If st_GetTexImage() is to decompress the texture, avoid the fallback
path even if prefer_blit_based_texture_transfer = false.  For drivers
that returned PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER = 0, we
were always taking the fallback path for texture decompression rather
than rendering a quad.  The later is a lot faster.

Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_texture.c