iris: omask can kill
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 2 Dec 2018 23:41:13 +0000 (15:41 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index 399bdf8d9ca3528e4e7be6bcec628d58c767b6de..f41bf1430c70cb6904b763b635219bc0466e19dd 100644 (file)
@@ -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;