Skip to content

direct compute: accept EXEC as the destination of s_bitreplicate_b64_b32 #3170

Done

Description

@Leyukaka

Part of #2935 (instruction coverage). Target branch main. I am taking it. This is the direct C++ path; #3030 (merged) covered s_bitreplicate_b64_b32 in gfx2hlsl.py.

Gap. Captured compute programs set EXEC from a lane pattern with s_bitreplicate_b64_b32 exec, <constant>, for example 0xff00ff00. Direct compute refuses it with "bitreplicate requires an aligned general scalar pair or compute VCC".

Measured on a local capture of 2,689 compute requests (counts and instruction shape only), with compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests on main 6057071b (the commits since then do not touch gfx1013_compute_native.cpp or gfx1013_direct_compute.inl):

Plan:

  • Accept EXEC (s126/s127) as the destination pair in compute, written like any other EXEC pair write.
  • Odd pairs, other special registers and graphics stay refused.

Tests: a hardware readback that sets EXEC from four patterns, stores under it, restores EXEC and stores the saved EXEC words, plus a refusal control.

AI-assisted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions