summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-01-16 01:53:00 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:11 -0800
commit7837fec740f93745174f1d4a6071a7d14fb07820 (patch)
tree304635b067ed03d1675683df7da5a64b9670e58c /src/gallium
parent0f677b0d876b6b2d9270dd9baca0f674532b4a70 (diff)
iris: Assert about blits with color masking
st/mesa never asks for this today, but in theory someone might, and we don't support it.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/iris/iris_blit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_blit.c b/src/gallium/drivers/iris/iris_blit.c
index 6756ae0aeb8..c386da298de 100644
--- a/src/gallium/drivers/iris/iris_blit.c
+++ b/src/gallium/drivers/iris/iris_blit.c
@@ -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;