i965: extend fast texture upload
authorFrank Henigman <fjhenigman@google.com>
Tue, 8 Oct 2013 01:17:39 +0000 (21:17 -0400)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 11 Oct 2013 01:16:41 +0000 (18:16 -0700)
commit49ed5991ee002762f963104facdc6b291f14a9b5
tree0c94f006701e26086e1cc60402db9bc1fc03ac89
parent0fda1cb498b1308f09679b1947fd038f680dffb8
i965: extend fast texture upload

Extend the fast texture upload from BGRA X-tiled to include RGBA,
Alpha/Luminance, and Y-tiled.  Speed improvements, measured with
mesa demos teximage program, on 256 x 256 texture, in MB/s, on a
Sandy Bridge (Ivy is comparable):

              before  after   increase
BGRA/X-tiled   3266    4524    1.39x
BGRA/Y-tiled   1739    3971    2.28x
RGBA/X-tiled    474    4694    9.90x
RGBA/Y-tiled    477    3368    7.06x
   L/X-tiled   1268    1516    1.20x
   L/Y-tiled   1439    1581    1.10x

v2: Cosmetic changes only: reformat and reword comments, make doxygen-friendly,
    rename variables, use existing macros, add an assert.

Signed-off-by: Frank Henigman <fjhenigman@google.com>
Reviewed-and-tested-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/intel_tex_subimage.c