X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fpanfrost%2Fpan_blit.c;h=c9fc8c83918ba44d7f53bae709ad4f6aaaa00cd4;hb=64349a60e17a03de4bb7e03d942bfc1679dfe8ab;hp=038a05b01812e2d77fee17ea9f1925dc7964dae3;hpb=d902e23d8094a01f752d3404ec484e0c059eb193;p=mesa.git diff --git a/src/gallium/drivers/panfrost/pan_blit.c b/src/gallium/drivers/panfrost/pan_blit.c index 038a05b0181..c9fc8c83918 100644 --- a/src/gallium/drivers/panfrost/pan_blit.c +++ b/src/gallium/drivers/panfrost/pan_blit.c @@ -48,9 +48,7 @@ panfrost_blitter_save( util_blitter_save_depth_stencil_alpha(blitter, ctx->depth_stencil); util_blitter_save_stencil_ref(blitter, &ctx->stencil_ref); util_blitter_save_so_targets(blitter, 0, NULL); - - /* For later */ -// util_blitter_save_sample_mask(blitter, ctx->sample_mask); + util_blitter_save_sample_mask(blitter, ctx->sample_mask); util_blitter_save_framebuffer(blitter, &ctx->pipe_framebuffer); util_blitter_save_fragment_sampler_states(blitter, @@ -59,6 +57,8 @@ panfrost_blitter_save( util_blitter_save_fragment_sampler_views(blitter, ctx->sampler_view_count[PIPE_SHADER_FRAGMENT], (struct pipe_sampler_view **)&ctx->sampler_views[PIPE_SHADER_FRAGMENT]); + util_blitter_save_fragment_constant_buffer_slot(blitter, + ctx->constant_buffer[PIPE_SHADER_FRAGMENT].cb); } static bool @@ -67,12 +67,8 @@ panfrost_u_blitter_blit(struct pipe_context *pipe, { struct panfrost_context *ctx = pan_context(pipe); - if (!util_blitter_is_blit_supported(ctx->blitter, info)) { - DBG("blit unsupported %s -> %s\n", - util_format_short_name(info->src.resource->format), - util_format_short_name(info->dst.resource->format)); - return false; - } + if (!util_blitter_is_blit_supported(ctx->blitter, info)) + unreachable("Unsupported blit\n"); /* TODO: Scissor */