diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c index 19d3949a4d9..82c334af653 100644 --- a/src/intel/blorp/blorp_clear.c +++ b/src/intel/blorp/blorp_clear.c @@ -755,15 +755,15 @@ blorp_clear_stencil_as_rgba(struct blorp_batch *batch, { assert((batch->flags & BLORP_BATCH_USE_COMPUTE) == 0); + /* Stencil mask support would require piles of shader magic */ + if (stencil_mask != 0xff) + return false; + /* We only support separate W-tiled stencil for now */ if (surf->surf->format != ISL_FORMAT_R8_UINT || surf->surf->tiling != ISL_TILING_W) return false; - /* Stencil mask support would require piles of shader magic */ - if (stencil_mask != 0xff) - return false; - if (surf->surf->samples > 1) { /* Adjust x0, y0, x1, and y1 to be in units of samples */ assert(surf->surf->msaa_layout == ISL_MSAA_LAYOUT_INTERLEAVED);