Skip to content

fix: give the shader core count a field it fits in - #501

Open
Panchovix wants to merge 1 commit into
Syllo:masterfrom
Panchovix:fix/gpu-info-bar-shader-core-field
Open

fix: give the shader core count a field it fits in#501
Panchovix wants to merge 1 commit into
Syllo:masterfrom
Panchovix:fix/gpu-info-bar-shader-core-field

Conversation

@Panchovix

@Panchovix Panchovix commented Aug 22, 2026

Copy link
Copy Markdown

The GPU info bar reserves 7 columns for the shader core count, and the NSHC label already takes 5 of them. The value gets 2 columns, so even the placeholder does not fit:

 NSHC N/ L2CF N/A    NEXC N/A

With 11 columns, the same width the two fields beside it use, it reads as intended and the three fields line up:

 NSHC N/A    L2CF N/A    NEXC N/A

11 also leaves room for the counts the panfrost (util_last_bit(shader)) and radeon (active CU count) backends actually report, which were being cut down as well.

The row is 35 columns wide after the change and the device box is at least 64, so nothing else moves.

While looking at this I noticed L2CF can overflow its field too: panfrost sets l2cache_size to l2_cache_features & (0xFF << 16), which can reach 8 digits against 6 columns of room. That looked like it might be a separate question about the value rather than the field, so I left it alone.

The GPU info bar reserves seven columns for the shader core count, of
which the NSHC label already takes five, so the value is cut down to two
characters. Even the placeholder does not survive it and the bar reads
NSHC N/ instead of NSHC N/A.

Eleven columns is what the two fields beside it use, and it leaves room
for the counts the panfrost and radeon backends report.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant