struct intel_mipmap_tree *src_mt = src_irb->mt;
struct intel_mipmap_tree *dst_mt = intel_image->mt;
+ /* There is support only for four and eight samples. */
+ if (src_mt->num_samples == 2 || dst_mt->num_samples == 2 ||
+ src_mt->num_samples > 8 || dst_mt->num_samples > 8)
+ return false;
+
/* BLORP is only supported for Gen6-7. */
if (brw->gen < 6 || brw->gen > 7)
return false;
if (brw->gen < 6 || brw->gen >= 8)
return mask;
+ /* There is support only for four and eight samples. */
+ if (readFb->Visual.samples == 2 || drawFb->Visual.samples == 2 ||
+ readFb->Visual.samples > 8 || drawFb->Visual.samples > 8)
+ return mask;
+
static GLbitfield buffer_bits[] = {
GL_COLOR_BUFFER_BIT,
GL_DEPTH_BUFFER_BIT,
struct intel_mipmap_tree *src,
struct intel_mipmap_tree *dst)
{
- if (brw->gen < 8) {
+ /* There is support only for four and eight samples. */
+ const bool use_blorp = brw->gen < 8 &&
+ src->num_samples != 2 && dst->num_samples != 2 &&
+ src->num_samples <= 8 && dst->num_samples <= 8;
+
+ if (use_blorp) {
brw_blorp_blit_miptrees(brw,
src, 0 /* level */, 0 /* layer */,
src->format, SWIZZLE_XYZW,
}
if (src->stencil_mt) {
- if (brw->gen >= 8) {
+ if (!use_blorp) {
brw_meta_stencil_updownsample(brw, src->stencil_mt, dst);
return;
}