Translator: note a mesh function's point size only where it outputs points
A mesh function that writes a vertex's point size recorded
PrecisionNote::DevicePointSize whatever primitive its mesh outputs. The
rasterizer reads a vertex's size for points alone, so a line or triangle
mesh's size draws nothing on any device, and the runtime already announces
the note only at draws that rasterize points (7715a47be3). The note is now
recorded only where the mesh type's topology (air.mesh_type_info) is points,
a structural test, so the artifact carries no note its draws can never meet.
Apple's compiler refuses [[point_size]] in a triangle mesh's vertex, so the
case arises only for AIR not compiled from MSL. The test derives the
triangle mesh from the owned fixture's point mesh (mesh_outputs_points) by
its topology word alone.
SEMANTICS_VERSION 2008: an artifact's precision notes change. docs/API.md's
catalogue entry and the note's rustdoc say which mesh functions record it.
Verified: engine_mesh::a_mesh_point_size_is_noted_only_where_the_mesh_
outputs_points on every committed mesh profile with the largest point set
below Metal's: the point mesh is noted, the triangle mesh is not, both store
the size; the test fails with the topology check reverted.
(cherry picked from commit adc0435c64495e2f3a3355becf055941fc529fc3)
This commit is contained in:
1 parent
661e063d4d
commit
b1625c535c
4 files changed
+65
-8
No files matched your search
+7
-5
@@ -3993,11 +3993,13 @@ bound.
|
||||
sampler slot whose word states anisotropy (under that word alone). An argument buffer's
|
||||
anisotropic sampler, which the function cannot record, is refused there (`SamplerAnisotropy`).
|
||||
- `metal2vulkan-degrade-device-point-size` (precision). `PrecisionNote::DevicePointSize`: A vertex
|
||||
function writes `[[point_size]]`, or a mesh function `set_point_size`, on a device whose
|
||||
`pointSizeRange` ends below Metal's largest point, 511 pixels (`Limits::max_point_size`: 255 on
|
||||
ANV, 256 on lavapipe). Announced at the first draw of such a pipeline that rasterizes points: a
|
||||
draw of `MTLPrimitiveTypePoint`, or a mesh draw whose mesh function outputs points. A draw of
|
||||
lines or triangles of the same pipeline is Metal's exactly and announces nothing.
|
||||
function writes `[[point_size]]`, or a mesh function that outputs points `set_point_size`, on a
|
||||
device whose `pointSizeRange` ends below Metal's largest point, 511 pixels
|
||||
(`Limits::max_point_size`: 255 on ANV, 256 on lavapipe). A line or triangle mesh's size draws
|
||||
nothing, and its function records no note. Announced at the first draw of such a pipeline that
|
||||
rasterizes points: a draw of `MTLPrimitiveTypePoint`, or a mesh draw of a mesh function that
|
||||
outputs points. A draw of lines or triangles of the same pipeline is Metal's exactly and
|
||||
announces nothing.
|
||||
- `metal2vulkan-degrade-clipped-coverage-split` (precision). `PrecisionNote::ClippedCoverageSplit`:
|
||||
A fragment function compiled for a multisampled pipeline reads `[[sample_mask]]` on a device whose
|
||||
rasterizer is not Apple's (`DriverWorkaround::ClippedCoverageNotMetals`): Apple's GPU draws a
|
||||
|
||||
Reference in new issue
Block a user