i965: implement blit path for PBO glDrawPixels
authorAlexander Monakov <amonakov@gmail.com>
Sun, 3 Nov 2013 21:34:32 +0000 (01:34 +0400)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Nov 2013 20:20:59 +0000 (12:20 -0800)
commit279e8d264109303f0e8248ab4c3703c71f65983f
treee0eefc1ffe9d4bf73ae30ccabe5e7c69e4e494e5
parent19c2f406498f0a683fe475967f285e1572172a0a
i965: implement blit path for PBO glDrawPixels

This patch implements accelerated path for glDrawPixels from a PBO in
i965. The code follows what intel_pixel_read, intel_pixel_copy,
intel_pixel_bitmap and intel_tex_image are doing. Piglit quick.tests
show no regressions. In my testing on IVB, performance improvement is
huge (about 30x, didn't measure exactly) since generic path goes via
_mesa_unpack_color_span_float, memcpy, extract_float_rgba.

Signed-off-by: Alexander Monakov <amonakov@ispras.ru>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_pixel.c
src/mesa/drivers/dri/i965/intel_pixel_draw.c