iris: set a default EDSC flag
authorRohan Garg <rohan.garg@intel.com>
Tue, 12 Apr 2022 19:07:13 +0000 (21:07 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Apr 2022 12:36:01 +0000 (12:36 +0000)
anv sets the default EDSC flag, do the same for iris too

Fixes: 5ae278da18b6 ("iris: use vtbl to avoid multiple symbols, fix state base address")

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15905>

src/gallium/drivers/iris/iris_state.c

index fa99bfa..fec6d07 100644 (file)
@@ -6370,6 +6370,8 @@ iris_upload_dirty_render_state(struct iris_context *ice,
             wm.EarlyDepthStencilControl = EDSC_PREPS;
          else if (wm_prog_data->has_side_effects)
             wm.EarlyDepthStencilControl = EDSC_PSEXEC;
+         else
+            wm.EarlyDepthStencilControl = EDSC_NORMAL;
 
          /* We could skip this bit if color writes are enabled. */
          if (wm_prog_data->has_side_effects || wm_prog_data->uses_kill)