OSDN Git Service

i965: Add support for accelerated CopyTexSubImage.
authorEric Anholt <eric@anholt.net>
Fri, 21 Nov 2008 09:09:47 +0000 (17:09 +0800)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 24 Nov 2008 20:09:50 +0000 (13:09 -0700)
commit7e97362884bcaa564730b05c28fb9f33734c7449
tree7017d7dd0373c8df431942b10942f4541992c0d1
parenta4d43c20121ae384a61663c5e954e4ab6a65cf4f
i965: Add support for accelerated CopyTexSubImage.

There were hacks in EmitCopyBlit before to adjust offsets so that y=0 after
the offsets had been adjusted for a negative pitch.  It appears that those
hacks were due to an unclear and surprising aspect of the hardware: inverting
the pitch results in the blit into the specified rectangle being inverted,
without the user needing to adjust y and base offset.

Tested with piglit copytexsubimage test on 915GM and GM965.  Should fix
serious performance issues with ETQW and other applications.
src/mesa/drivers/dri/intel/intel_blit.c
src/mesa/drivers/dri/intel/intel_tex.c
src/mesa/drivers/dri/intel/intel_tex_copy.c