Module: Mesa Branch: main Commit: 0d85a0d7cda461110ce5d62f644010e0271a8f06 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0d85a0d7cda461110ce5d62f644010e0271a8f06
Author: Tapani Pälli <[email protected]> Date: Thu Nov 10 18:27:14 2022 +0200 anv: remove dg2 condition for Wa_22011440098 We need same workaround for MTL. Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19636> --- src/intel/vulkan/genX_cmd_buffer.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index fdbe070b927..def1cf26184 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -2287,18 +2287,17 @@ cmd_buffer_alloc_push_constants(struct anv_cmd_buffer *cmd_buffer) } #if GFX_VERx10 == 125 - /* Wa_22011440098 + /* DG2: Wa_22011440098 + * MTL: Wa_18022330953 * * In 3D mode, after programming push constant alloc command immediately * program push constant command(ZERO length) without any commit between * them. */ - if (intel_device_info_is_dg2(cmd_buffer->device->info)) { - anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_CONSTANT_ALL), c) { - /* Update empty push constants for all stages (bitmask = 11111b) */ - c.ShaderUpdateEnable = 0x1f; - c.MOCS = anv_mocs(cmd_buffer->device, NULL, 0); - } + anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_CONSTANT_ALL), c) { + /* Update empty push constants for all stages (bitmask = 11111b) */ + c.ShaderUpdateEnable = 0x1f; + c.MOCS = anv_mocs(cmd_buffer->device, NULL, 0); } #endif
