iris: Assert about blits with color masking
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Jan 2019 09:53:00 +0000 (01:53 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:11 +0000 (10:26 -0800)
st/mesa never asks for this today, but in theory someone might, and we
don't support it.

src/gallium/drivers/iris/iris_blit.c

index 6756ae0aeb80594a63ff1912c4b223ca93c1eb12..c386da298de6082830184e5cdec3062d9126cc03 100644 (file)
@@ -256,6 +256,10 @@ iris_blit(struct pipe_context *ctx, const struct pipe_blit_info *info)
    const struct gen_device_info *devinfo = &screen->devinfo;
    enum blorp_batch_flags blorp_flags = 0;
 
+   /* We don't support color masking. */
+   assert((info->mask & PIPE_MASK_RGBA) == PIPE_MASK_RGBA ||
+          (info->mask & PIPE_MASK_RGBA) == 0);
+
    if (info->render_condition_enable) {
       if (ice->state.predicate == IRIS_PREDICATE_STATE_DONT_RENDER)
          return;