diff options
author | Marek Olšák <[email protected]> | 2013-12-06 22:39:48 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-12-14 17:42:08 +0100 |
commit | f0ed082babe29eee502ec81302dae5fc15347e3f (patch) | |
tree | 67c447ab9c0968b26b604958292112e1e35284b3 /src/gallium/drivers | |
parent | 072c5d0573dff817dbd7eb0f2f458167ec46bebb (diff) |
gallium/u_blitter: remove useless parameters from some functions
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/i915/i915_resource_texture.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/i915/i915_surface.c | 5 | ||||
-rw-r--r-- | src/gallium/drivers/ilo/ilo_blitter_pipe.c | 8 | ||||
-rw-r--r-- | src/gallium/drivers/r300/r300_blit.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/r600/r600_blit.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/r600_blit.c | 5 |
6 files changed, 10 insertions, 20 deletions
diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c index 3d6179495d2..109b3f59bc2 100644 --- a/src/gallium/drivers/i915/i915_resource_texture.c +++ b/src/gallium/drivers/i915/i915_resource_texture.c @@ -742,8 +742,7 @@ i915_texture_transfer_map(struct pipe_context *pipe, /* if we use staging transfers, only support textures we can render to, * because we need that for u_blitter */ if (i915->blitter && - util_blitter_is_copy_supported(i915->blitter, resource, resource, - PIPE_MASK_RGBAZS) && + util_blitter_is_copy_supported(i915->blitter, resource, resource) && (usage & PIPE_TRANSFER_WRITE) && !(usage & (PIPE_TRANSFER_READ | PIPE_TRANSFER_DONTBLOCK | PIPE_TRANSFER_UNSYNCHRONIZED))) use_staging_texture = TRUE; diff --git a/src/gallium/drivers/i915/i915_surface.c b/src/gallium/drivers/i915/i915_surface.c index bd20a5330aa..a4c1f39dd38 100644 --- a/src/gallium/drivers/i915/i915_surface.c +++ b/src/gallium/drivers/i915/i915_surface.c @@ -84,8 +84,7 @@ i915_surface_copy_render(struct pipe_context *pipe, return; } - if (!util_blitter_is_copy_supported(i915->blitter, dst, src, - PIPE_MASK_RGBAZS)) { + if (!util_blitter_is_copy_supported(i915->blitter, dst, src)) { util_resource_copy_region(pipe, dst, dst_level, dstx, dsty, dstz, src, src_level, src_box); return; @@ -94,7 +93,7 @@ i915_surface_copy_render(struct pipe_context *pipe, i915_util_blitter_save_states(i915); util_blitter_copy_texture(i915->blitter, dst, dst_level, dstx, dsty, dstz, - src, src_level, src_box, PIPE_MASK_RGBAZS, TRUE); + src, src_level, src_box); } static void diff --git a/src/gallium/drivers/ilo/ilo_blitter_pipe.c b/src/gallium/drivers/ilo/ilo_blitter_pipe.c index fa4f1582b7f..1637a30a219 100644 --- a/src/gallium/drivers/ilo/ilo_blitter_pipe.c +++ b/src/gallium/drivers/ilo/ilo_blitter_pipe.c @@ -153,22 +153,18 @@ ilo_blitter_pipe_copy_resource(struct ilo_blitter *blitter, struct pipe_resource *src, unsigned src_level, const struct pipe_box *src_box) { - const unsigned mask = PIPE_MASK_RGBAZS; - const bool copy_all_samples = true; - /* not until we allow rendertargets to be buffers */ if (dst->target == PIPE_BUFFER || src->target == PIPE_BUFFER) return false; - if (!util_blitter_is_copy_supported(blitter->pipe_blitter, dst, src, mask)) + if (!util_blitter_is_copy_supported(blitter->pipe_blitter, dst, src)) return false; ilo_blitter_pipe_begin(blitter, ILO_BLITTER_PIPE_COPY, false); util_blitter_copy_texture(blitter->pipe_blitter, dst, dst_level, dst_x, dst_y, dst_z, - src, src_level, src_box, - mask, copy_all_samples); + src, src_level, src_box); ilo_blitter_pipe_end(blitter); diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c index a0b4573d0bd..696a61dc5f5 100644 --- a/src/gallium/drivers/r300/r300_blit.c +++ b/src/gallium/drivers/r300/r300_blit.c @@ -667,8 +667,7 @@ static void r300_resource_copy_region(struct pipe_context *pipe, r300_blitter_begin(r300, R300_COPY); util_blitter_blit_generic(r300->blitter, dst_view, &dstbox, src_view, src_box, src_width0, src_height0, - PIPE_MASK_RGBAZS, PIPE_TEX_FILTER_NEAREST, NULL, - FALSE); + PIPE_MASK_RGBAZS, PIPE_TEX_FILTER_NEAREST, NULL); r300_blitter_end(r300); pipe_surface_reference(&dst_view, NULL); diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c index b80360cd86b..3fb4d3b9951 100644 --- a/src/gallium/drivers/r600/r600_blit.c +++ b/src/gallium/drivers/r600/r600_blit.c @@ -755,8 +755,7 @@ static void r600_resource_copy_region(struct pipe_context *ctx, sbox.height = util_format_get_nblocksy(src->format, src_box->height); sbox.depth = src_box->depth; src_box = &sbox; - } else if (!util_blitter_is_copy_supported(rctx->blitter, dst, src, - PIPE_MASK_RGBAZS)) { + } else if (!util_blitter_is_copy_supported(rctx->blitter, dst, src)) { if (util_format_is_subsampled_2x1_32bpp(src->format)) { src_templ.format = PIPE_FORMAT_R8G8B8A8_UINT; @@ -821,8 +820,7 @@ static void r600_resource_copy_region(struct pipe_context *ctx, r600_blitter_begin(ctx, R600_COPY_TEXTURE); util_blitter_blit_generic(rctx->blitter, dst_view, &dstbox, src_view, src_box, src_width0, src_height0, - PIPE_MASK_RGBAZS, PIPE_TEX_FILTER_NEAREST, NULL, - TRUE); + PIPE_MASK_RGBAZS, PIPE_TEX_FILTER_NEAREST, NULL); r600_blitter_end(ctx); pipe_surface_reference(&dst_view, NULL); diff --git a/src/gallium/drivers/radeonsi/r600_blit.c b/src/gallium/drivers/radeonsi/r600_blit.c index 3adbb81c03a..7491c27534f 100644 --- a/src/gallium/drivers/radeonsi/r600_blit.c +++ b/src/gallium/drivers/radeonsi/r600_blit.c @@ -528,8 +528,7 @@ static void r600_resource_copy_region(struct pipe_context *ctx, /* translate the dst box as well */ dstx = util_format_get_nblocksx(orig_info[1].format, dstx); dsty = util_format_get_nblocksy(orig_info[1].format, dsty); - } else if (!util_blitter_is_copy_supported(rctx->blitter, dst, src, - PIPE_MASK_RGBAZS)) { + } else if (!util_blitter_is_copy_supported(rctx->blitter, dst, src)) { unsigned blocksize = util_format_get_blocksize(src->format); switch (blocksize) { @@ -574,7 +573,7 @@ static void r600_resource_copy_region(struct pipe_context *ctx, r600_blitter_begin(ctx, R600_COPY); util_blitter_copy_texture(rctx->blitter, dst, dst_level, dstx, dsty, dstz, - src, src_level, psbox, PIPE_MASK_RGBAZS, TRUE); + src, src_level, psbox); r600_blitter_end(ctx); if (restore_orig[0]) |