radeonsi: remove redundant si_shader_info::uses_derivatives
[mesa.git] / src / gallium / drivers / panfrost / pan_blit.c
index 038a05b01812e2d77fee17ea9f1925dc7964dae3..c9fc8c83918ba44d7f53bae709ad4f6aaaa00cd4 100644 (file)
@@ -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 */