diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 6806c369deb..7452d198a27 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -8118,7 +8118,7 @@ genX(emit_3dprimitive_was)(struct iris_batch *batch, UNUSED const struct intel_device_info *devinfo = batch->screen->devinfo; UNUSED const struct iris_context *ice = batch->ice; -#if INTEL_NEEDS_WA_22014412737 || INTEL_NEEDS_WA_16014538804 +#if INTEL_WA_22014412737_GFX_VER || INTEL_WA_16014538804_GFX_VER if (intel_needs_workaround(devinfo, 22014412737) && (point_or_line_list(primitive_type) || indirect || (vertex_count == 1 || vertex_count == 2))) { diff --git a/src/intel/dev/gen_wa_helpers.py b/src/intel/dev/gen_wa_helpers.py index 9ffa4e72f12..2f782d31d08 100644 --- a/src/intel/dev/gen_wa_helpers.py +++ b/src/intel/dev/gen_wa_helpers.py @@ -249,8 +249,9 @@ def partial_gens(wa_def): # eliminate each platform specifically indicated by the WA, to see if # are left over. - for platform in bug["mesa_platforms"]: - wa_required_for_completeness.remove(platform) + for platform, desc in bug["mesa_platforms"].items(): + if desc["steppings"] == "all": + wa_required_for_completeness.remove(platform) # if any platform remains in the required set, then this wa *partially* # applies to one of the gfxvers. diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 600f5be96a6..1818d4bd718 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -3813,7 +3813,7 @@ genX(CmdExecuteCommands)( "Secondary cmd buffer not tracked in VF cache"); } -#if INTEL_NEEDS_WA_16014538804 +#if INTEL_WA_16014538804_GFX_VER if (anv_cmd_buffer_is_render_queue(container) && intel_needs_workaround(device->info, 16014538804)) anv_batch_emit(&container->batch, GENX(PIPE_CONTROL), pc); @@ -8601,7 +8601,7 @@ genX(batch_emit_post_3dprimitive_was)(struct anv_batch *batch, uint32_t primitive_topology, uint32_t vertex_count) { -#if INTEL_NEEDS_WA_22014412737 || INTEL_NEEDS_WA_16014538804 +#if INTEL_WA_22014412737_GFX_VER || INTEL_WA_16014538804_GFX_VER if (intel_needs_workaround(device->info, 22014412737) && (primitive_topology == _3DPRIM_POINTLIST || primitive_topology == _3DPRIM_LINELIST ||