summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-12-02 15:41:13 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:10 -0800
commit480c62bc7e693bfdce5fa7bfff3f5ebd16818c98 (patch)
treea6b80047b4f2e88db4d7e74b6f4b1c894b68842a
parentbd031eb2e8a348d0ef69034e1d8f0d09e2bde283 (diff)
iris: omask can kill
-rw-r--r--src/gallium/drivers/iris/iris_state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 399bdf8d9ca..f41bf1430c7 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -3331,7 +3331,9 @@ iris_store_fs_state(struct iris_context *ice,
iris_pack_command(GENX(3DSTATE_PS_EXTRA), psx_state, psx) {
psx.PixelShaderValid = true;
psx.PixelShaderComputedDepthMode = wm_prog_data->computed_depth_mode;
- psx.PixelShaderKillsPixel = wm_prog_data->uses_kill;
+ // XXX: alpha test / alpha to coverage :/
+ psx.PixelShaderKillsPixel = wm_prog_data->uses_kill ||
+ wm_prog_data->uses_omask;
psx.AttributeEnable = wm_prog_data->num_varying_inputs != 0;
psx.PixelShaderUsesSourceDepth = wm_prog_data->uses_src_depth;
psx.PixelShaderUsesSourceW = wm_prog_data->uses_src_w;