Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10271>
rsd->properties.bifrost.pixel_kill_operation =
MALI_PIXEL_KILL_FORCE_EARLY;
}
- rsd->properties.bifrost.allow_forward_pixel_to_kill = true;
+
+ /* We can only allow blit shader fragments to kill if they write all
+ * colour outputs. This is true for our colour (non-Z/S) blit shaders,
+ * but obviously not true for Z/S shaders. */
+
+ rsd->properties.bifrost.allow_forward_pixel_to_kill = !(z || s);
+
rsd->preload.fragment.coverage = true;
rsd->preload.fragment.sample_mask_id = ms;
}