summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-04-11 15:29:41 +0200
committerMarek Olšák <[email protected]>2013-05-15 20:20:32 +0200
commit5a3fac4d2667b5d46058564151142fec158f5f82 (patch)
treef8e511f280ad4edb547ad8e755ff261298e6e37a /src/gallium/drivers/r600/r600_blit.c
parent61c995bc47b838317a4a62fba2ff2031bcb0c23e (diff)
r600g: cleanup MSAA texture support checking
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_blit.c')
-rw-r--r--src/gallium/drivers/r600/r600_blit.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index 7d32eef89ee..058bf819b8a 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -290,25 +290,10 @@ static void r600_blit_decompress_color(struct pipe_context *ctx,
{
struct r600_context *rctx = (struct r600_context *)ctx;
unsigned layer, level, checked_last_layer, max_layer;
- void *blend_decompress;
if (!rtex->dirty_level_mask)
return;
- switch (rctx->screen->msaa_texture_support) {
- case MSAA_TEXTURE_DECOMPRESSED:
- blend_decompress = rctx->custom_blend_decompress;
- break;
- case MSAA_TEXTURE_COMPRESSED:
- blend_decompress = rctx->custom_blend_fmask_decompress;
- break;
- case MSAA_TEXTURE_SAMPLE_ZERO:
- default:
- /* Nothing to do. */
- rtex->dirty_level_mask = 0;
- return;
- }
-
for (level = first_level; level <= last_level; level++) {
if (!(rtex->dirty_level_mask & (1 << level)))
continue;
@@ -328,7 +313,7 @@ static void r600_blit_decompress_color(struct pipe_context *ctx,
cbsurf = ctx->create_surface(ctx, &rtex->resource.b.b, &surf_tmpl);
r600_blitter_begin(ctx, R600_DECOMPRESS);
- util_blitter_custom_color(rctx->blitter, cbsurf, blend_decompress);
+ util_blitter_custom_color(rctx->blitter, cbsurf, rctx->custom_blend_decompress);
r600_blitter_end(ctx);
pipe_surface_reference(&cbsurf, NULL);
@@ -578,7 +563,6 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
struct pipe_sampler_view src_templ, *src_view;
unsigned dst_width, dst_height, src_width0, src_height0, src_widthFL, src_heightFL;
struct pipe_box sbox, dstbox;
- bool copy_all_samples;
/* Handle buffers first. */
if (dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER) {
@@ -690,8 +674,6 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
src_widthFL, src_heightFL);
}
- copy_all_samples = rctx->screen->msaa_texture_support != MSAA_TEXTURE_SAMPLE_ZERO;
-
u_box_3d(dstx, dsty, dstz, abs(src_box->width), abs(src_box->height),
abs(src_box->depth), &dstbox);
@@ -700,7 +682,7 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
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,
- copy_all_samples);
+ TRUE);
r600_blitter_end(ctx);
pipe_surface_reference(&dst_view, NULL);