Shader info: show stage I/O even when instruction decoding fails
Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit e6ebec9ccf0bc27cfe0b5509ec3d07a0969eb25f)
This commit is contained in:
1 parent
803ada0162
commit
d02932f322
1 file changed
+5
-3
@@ -113,6 +113,11 @@ pub fn run(paths: Vec<PathBuf>, verbose: bool, disasm: bool) -> Result<()> {
|
|||||||
for n in &programs {
|
for n in &programs {
|
||||||
*t.native_stages.entry(n.stage).or_default() += 1;
|
*t.native_stages.entry(n.stage).or_default() += 1;
|
||||||
list.push(format!("{:?} {} B", n.stage, n.code.len()));
|
list.push(format!("{:?} {} B", n.stage, n.code.len()));
|
||||||
|
if disasm {
|
||||||
|
listing.push(format!(" {:?} stage I/O: {:?}", n.stage, n.io));
|
||||||
|
listing.extend(n.layout.iter().map(|p| format!(" {p:?}")));
|
||||||
|
listing.extend(n.used.iter().map(|u| format!(" {u:?}")));
|
||||||
|
}
|
||||||
match gfx10::decode(&n.code) {
|
match gfx10::decode(&n.code) {
|
||||||
Ok(insts) => {
|
Ok(insts) => {
|
||||||
t.decoded += 1;
|
t.decoded += 1;
|
||||||
@@ -122,9 +127,6 @@ pub fn run(paths: Vec<PathBuf>, verbose: bool, disasm: bool) -> Result<()> {
|
|||||||
*t.unnamed.entry(key).or_default() += 1;
|
*t.unnamed.entry(key).or_default() += 1;
|
||||||
}
|
}
|
||||||
if disasm {
|
if disasm {
|
||||||
listing
|
|
||||||
.extend(n.layout.iter().map(|p| format!(" {p:?}")));
|
|
||||||
listing.extend(n.used.iter().map(|u| format!(" {u:?}")));
|
|
||||||
listing.extend(
|
listing.extend(
|
||||||
insts.iter().map(|i| format_instruction(i, n.wave64)),
|
insts.iter().map(|i| format_instruction(i, n.wave64)),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user