diff options
author | Eric Anholt <eric@anholt.net> | 2008-11-21 17:09:47 +0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-11-21 17:35:33 +0800 |
commit | 3e0164aabb48a99fce58964cad99fd3978ee84f6 (patch) | |
tree | 351bf921dd35ee641a601ee67cfdc5b4183f2bc1 /src/mesa/drivers/dri/intel/intel_tex.c | |
parent | a6aa926e3f0b6237679db0d3331690d2a96adbc2 (diff) | |
download | external_mesa3d-3e0164aabb48a99fce58964cad99fd3978ee84f6.zip external_mesa3d-3e0164aabb48a99fce58964cad99fd3978ee84f6.tar.gz external_mesa3d-3e0164aabb48a99fce58964cad99fd3978ee84f6.tar.bz2 |
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.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c index 23455a4..82f8b87 100644 --- a/src/mesa/drivers/dri/intel/intel_tex.c +++ b/src/mesa/drivers/dri/intel/intel_tex.c @@ -222,17 +222,10 @@ intelInitTextureFuncs(struct dd_function_table *functions) functions->TexSubImage1D = intelTexSubImage1D; functions->TexSubImage2D = intelTexSubImage2D; functions->TexSubImage3D = intelTexSubImage3D; -#ifdef I915 functions->CopyTexImage1D = intelCopyTexImage1D; functions->CopyTexImage2D = intelCopyTexImage2D; functions->CopyTexSubImage1D = intelCopyTexSubImage1D; functions->CopyTexSubImage2D = intelCopyTexSubImage2D; -#else - functions->CopyTexImage1D = _swrast_copy_teximage1d; - functions->CopyTexImage2D = _swrast_copy_teximage2d; - functions->CopyTexSubImage1D = _swrast_copy_texsubimage1d; - functions->CopyTexSubImage2D = _swrast_copy_texsubimage2d; -#endif functions->GetTexImage = intelGetTexImage; functions->GenerateMipmap = intelGenerateMipmap; |