Translator: the open_cl_lines variant goes; the runtime never asks for it
LoweringInputs::open_cl_lines, VariantKey::open_cl_lines and metal2vulkan-air's
SpecRequest::open_cl_lines named the 1D images of a kernel of OpenCL mode that a 1D texture is
bound for, which then kept their 1D type and operations. metal2vulkan-runtime never asks for
that variant: it refuses a 1D texture bound for such a kernel (Gap::OpenClLineTexture, the
encoder's check of interface.open_cl_mode), since no reading of one is documented Metal, and
nothing else in the tree sets the field.
Consumer search: reims-vgpu cc1f47b30b (its development, read only): git grep -n open_cl_lines
-> 0 hits (its only OpenCL hits are its own open_cl_mode fields and the
RGFX_COMPUTE_PIPELINE_OPENCL_MODE flag). Its generated link-order.txt names
VariantKey::lowering_inputs' closures, not the field.
Deleted:
- metal2vulkan-air: SpecRequest::open_cl_lines; canon::opencl::entry's lines argument (every 1D
image of the kernel now takes its 2D texture's type); canon::opencl_1d's kept parameters
(site, of_params, kept_params), so expand rewrites every 1D operation it lists; the doc lines
that named the variant. Entry::open_cl_1d_images stays: its doc drops the variant.
- metal2vulkan: LoweringInputs::open_cl_lines, VariantKey::open_cl_lines (is_empty and
lowering_inputs), the function key's "open-cl-lines" part (appended only when set, so every
surviving key hashes the same bytes), and compile.rs's plumbing: InputsFrom::open_cl_lines,
StageEntry::open_cl_lines, the lines half of the stage entries' (mode, lines) match,
given_inputs' clearing and the request's lines.
- Tests: the variant's half of the AIR test (renamed
opencl_1d_images_take_their_2d_textures_types, which keeps its OpenCL-mode type names and
open_cl_1d_images assertions), the api round-trip values, and the field in every
SpecRequest and LoweringInputs literal (air canon tests, memory plan tests, air_canon,
validation's check.rs).
- docs/API.md's OpenCL image paragraph named the variant; it now says each Mac's reading of a
1D texture there, which the kernel does not take.
Public surface: python3 scripts/api-signatures/signatures.py --bless removes exactly the three
field records (metal2vulkan-air::SpecRequest.open_cl_lines,
metal2vulkan::cache::VariantKey.open_cl_lines, metal2vulkan::pipeline::LoweringInputs.open_cl_lines),
a breaking change of the two published crates. refusal_surface.py reads no such field:
--check passes unchanged, docs/REFUSALS.md does not move.
Output: none moves for any input the runtime makes. A kernel compiled with an empty set, the
only one anything sent, specializes and keys as before; SEMANTICS_VERSION stays (as at
a7dd2e846e for the binder's inputs). The per-parameter meter ticks of kept_params go with it.
Search at 9db78abe7d: git grep -n open_cl_lines -- crates docs: 37 hits across compile.rs,
cache/mod.rs, lower_inputs.rs, key.rs, the AIR canon and the tests; 0 after.
This commit is contained in:
1 parent
2a9bad3c81
commit
a7166b2ded
19 files changed
+46
-220
No files matched your search
+3
-6
@@ -878,12 +878,9 @@ through buffer arguments it reads at any index.
|
||||
image, `get_image_width` and `get_image_array_size` is the 2D texture's at row 0 (a sampled
|
||||
coordinate at the row's centre), as both Macs answer. A real 1D texture bound for an
|
||||
`image1d_t`, or a 1D array texture for an `image1d_array_t`, which Apple's OpenCL never binds,
|
||||
takes the kernel's variant that declares that slot as the 1D texture
|
||||
(`VariantKey::open_cl_lines`): each read, sample and size
|
||||
query answers the 1D texture's values, of the layer an array access names, as a Radeon Pro
|
||||
5300M (macOS 26.7.1) answers (an Intel UHD Graphics 630 reads layer 0 of the array, an M3 Max
|
||||
texel 0 at every coordinate). Under the identity domains no variant is made: the kernel reads
|
||||
each 1D image as the 2D texture, and a consumer refuses a 1D
|
||||
is read differently by each Mac (a Radeon Pro 5300M, macOS 26.7.1, answers the 1D texture's
|
||||
values, an Intel UHD Graphics 630 layer 0 of the array, an M3 Max texel 0 at every
|
||||
coordinate): the kernel reads each 1D image as the 2D texture, and a consumer refuses a 1D
|
||||
texture bound for it (the runtime's `Gap::OpenClLineTexture`), since no reading of one is
|
||||
documented Metal. Apple's OpenCL binds an image of most
|
||||
channel orders as a swizzled view (on an M3 Max, macOS 27.0.1, with `CL_UNORM_INT8`: `CL_R`,
|
||||
|
||||
Reference in new issue
Block a user