summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-07-25 12:38:22 +0200
committerMarek Olšák <[email protected]>2012-08-15 19:20:57 +0200
commit825b45366d5308fd3e8e71c0c1943cb6ca8f69ea (patch)
treecc921b420803f4af43eca89212f4e1d1caaa4fd1 /src/gallium/drivers
parentdacf5dc9ac1a700b86e0dc385513afaff41e7aea (diff)
gallium/u_blitter: implement blitting multisample resources
It can blit only one sample at a time (it should be called in a loop).
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/i915/i915_surface.c4
-rw-r--r--src/gallium/drivers/r300/r300_blit.c4
-rw-r--r--src/gallium/drivers/r600/r600_blit.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/i915/i915_surface.c b/src/gallium/drivers/i915/i915_surface.c
index a25676efeca..5f0783f0305 100644
--- a/src/gallium/drivers/i915/i915_surface.c
+++ b/src/gallium/drivers/i915/i915_surface.c
@@ -86,8 +86,8 @@ i915_surface_copy_render(struct pipe_context *pipe,
i915->saved_nr_sampler_views,
i915->saved_sampler_views);
- util_blitter_copy_texture(i915->blitter, dst, dst_level, dstx, dsty, dstz,
- src, src_level, src_box);
+ util_blitter_copy_texture(i915->blitter, dst, dst_level, ~0, dstx, dsty, dstz,
+ src, src_level, 0, src_box);
}
static void
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index 0bfafd93398..1053706ad57 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -577,8 +577,8 @@ static void r300_resource_copy_region(struct pipe_context *pipe,
src_view = r300_create_sampler_view_custom(pipe, src, &src_templ, src_width0, src_height0);
r300_blitter_begin(r300, R300_COPY);
- util_blitter_copy_texture_view(r300->blitter, dst_view, dstx, dsty,
- src_view, src_box,
+ util_blitter_copy_texture_view(r300->blitter, dst_view, ~0, dstx, dsty,
+ src_view, 0, src_box,
src_width0, src_height0, PIPE_MASK_RGBAZS);
r300_blitter_end(r300);
diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index 3121bb197ad..42fec3f3f0d 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -434,8 +434,8 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
}
r600_blitter_begin(ctx, R600_COPY_TEXTURE);
- util_blitter_copy_texture(rctx->blitter, dst, dst_level, dstx, dsty, dstz,
- src, src_level, psbox);
+ util_blitter_copy_texture(rctx->blitter, dst, dst_level, ~0, dstx, dsty, dstz,
+ src, src_level, 0, psbox);
r600_blitter_end(ctx);
if (restore_orig[0])