summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-04-21 12:53:16 +0200
committerMarek Olšák <[email protected]>2011-04-21 15:51:18 +0200
commit883d8a0b449b53d83cc5970d2ce50df536aef55f (patch)
tree10b09a02971b2b1194e5406e67c1c7927f2ae143 /src/gallium/drivers/svga
parent64f55216e4c11e8acb787bfe40e6dd25e862cd43 (diff)
gallium: add fallback for copying buffers to all drivers
Just to keep drivers working. Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_blit.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_blit.c b/src/gallium/drivers/svga/svga_pipe_blit.c
index c87afb6946c..c4f122f4f78 100644
--- a/src/gallium/drivers/svga/svga_pipe_blit.c
+++ b/src/gallium/drivers/svga/svga_pipe_blit.c
@@ -29,6 +29,8 @@
#include "svga_cmd.h"
#include "svga_surface.h"
+#include "util/u_surface.h"
+
#define FILE_DEBUG_FLAG DEBUG_BLIT
@@ -54,6 +56,13 @@ static void svga_surface_copy(struct pipe_context *pipe,
*/
svga_surfaces_flush( svga );
+ /* Fallback for buffers. */
+ if (dst_tex->target == PIPE_BUFFER && src_tex->target == PIPE_BUFFER) {
+ util_resource_copy_region(pipe, dst_tex, dst_level, dstx, dsty, dstz,
+ src_tex, src_level, src_box);
+ return;
+ }
+
#if 0
srcsurf = screen->get_tex_surface(screen, src_tex,
src_level, src_box->z, src_box->z,