diff options
author | Keith Whitwell <[email protected]> | 2005-05-23 12:17:27 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-05-23 12:17:27 +0000 |
commit | 17bcf9f816db3098db42acd7f0672f64554dd6a0 (patch) | |
tree | afda81fcab4e5f6812a4a8aef7ba602f16e563c7 /src/mesa/drivers/common/driverfuncs.c | |
parent | eb9d6f44a963d985d67991deff57a6f8d7d3f0f6 (diff) |
Import Thomas Helstrom's SSE memcpy code from the via X.org driver.
Add a TextureMemCpy callback, called from texstore.c when copying
texture data via the memcpy_texture() path.
Enable this code in the via driver - 100% speedup in texdown.c results.
Diffstat (limited to 'src/mesa/drivers/common/driverfuncs.c')
-rw-r--r-- | src/mesa/drivers/common/driverfuncs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c index dcaaa9199f5..4a8ea31a48f 100644 --- a/src/mesa/drivers/common/driverfuncs.c +++ b/src/mesa/drivers/common/driverfuncs.c @@ -107,6 +107,7 @@ _mesa_init_driver_functions(struct dd_function_table *driver) driver->DeleteTexture = _mesa_delete_texture_object; driver->NewTextureImage = _mesa_new_texture_image; driver->FreeTexImageData = _mesa_free_texture_image_data; + driver->TextureMemCpy = _mesa_memcpy; driver->IsTextureResident = NULL; driver->PrioritizeTexture = NULL; driver->ActiveTexture = NULL; |