File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1976,17 +1976,17 @@ class MTLDevice : public offloadtest::Device {
19761976 } else if (P.isRaster ()) {
19771977 auto FormatOrErr = toFormat (P.Bindings .RTargetBufferPtr ->Format ,
19781978 P.Bindings .RTargetBufferPtr ->Channels );
1979- if (!FormatOrErr)
1980- return FormatOrErr.takeError ();
1981- PipelineDesc.RTFormats .push_back (*FormatOrErr);
19821979
19831980 llvm::SmallVector<Format> RTFormats;
1981+ if (!FormatOrErr)
1982+ return FormatOrErr.takeError ();
19841983 RTFormats.push_back (*FormatOrErr);
19851984
19861985 if (P.isTraditionalRaster ()) {
19871986 TraditionalRasterPipelineCreateDesc PipelineDesc = {};
19881987 PipelineDesc.Topology = P.Bindings .Topology ;
19891988 PipelineDesc.DSFormat = Format::D32FloatS8Uint;
1989+ PipelineDesc.RTFormats = RTFormats;
19901990 for (auto &Shader : P.Shaders ) {
19911991 ShaderContainer SC = {};
19921992 SC .EntryPoint = Shader.Entry ;
You can’t perform that action at this time.
0 commit comments