Replay player: a compute pipeline state takes the stream's openClMode
The player refused a compute descriptor whose openClMode was true, so a stream that makes an OpenCL-mode pipeline (a guest running OpenCL C on Metal) stopped at its first one. The runtime's descriptor carries the mode (open_cl_mode_enabled), and the translator links the kernel for it: the three hidden buffers ahead of the kernel's own, its buffer indices 3 on, get_global_id with the dispatch's offset. The player now gives the stream's value to the descriptor, off where absent, and the stream doc says so. The previous commit's test is its check on lavapipe: red before this commit, green with it.
This commit is contained in:
1 parent
84503c6e40
commit
866a8dd2f2
2 files changed
+4
-2
No files matched your search
@@ -1943,8 +1943,8 @@ impl NewRuntime {
|
||||
}
|
||||
}
|
||||
}
|
||||
f.only("openClMode", Fields::bool, false)?;
|
||||
let mut d = rt::ComputePipelineDescriptor::new(rt::StageSource::Function(kernel));
|
||||
d.open_cl_mode_enabled = f.bool("openClMode")?.unwrap_or(false);
|
||||
d.stage_input = translator::stage_input(call, &f)?;
|
||||
if let Some(multiple) = f.bool("threadgroupSizeIsMultipleOfExecutionWidth")? {
|
||||
d.threadgroup_size_is_multiple_of_execution_width = multiple;
|
||||
|
||||
@@ -463,7 +463,9 @@ and the (name id, value) answer pairs.
|
||||
indexType, indexBufferIndex}`: the layouts and attributes in the vertex descriptor's form,
|
||||
Metal's raw step functions and attribute formats, and the index type and index buffer as
|
||||
Metal's `MTLStageInputOutputDescriptor` holds them. A player gives it to the pipeline; an
|
||||
attribute's buffer that no layout names takes Metal's unset layout.
|
||||
attribute's buffer that no layout names takes Metal's unset layout. A player gives
|
||||
`openClMode` to the pipeline too (off where absent), whose kernel then takes the three hidden
|
||||
buffers ahead of its own buffers as Metal's OpenCL mode does.
|
||||
- **Keys that are not Metal's property names:**
|
||||
|
||||
| key | Metal's |
|
||||
|
||||
Reference in new issue
Block a user