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/i915 | |
parent | 072c5d0573dff817dbd7eb0f2f458167ec46bebb (diff) |
gallium/u_blitter: remove useless parameters from some functions
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r-- | src/gallium/drivers/i915/i915_resource_texture.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/i915/i915_surface.c | 5 |
2 files changed, 3 insertions, 5 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 |