mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
aco: fix printing of d16 MIMG dmask
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30761>
This commit is contained in:
parent
999362f895
commit
192ef947a9
1 changed files with 5 additions and 2 deletions
|
|
@ -532,8 +532,11 @@ print_instr_format_specific(enum amd_gfx_level gfx_level, const Instruction* ins
|
|||
}
|
||||
case Format::MIMG: {
|
||||
const MIMG_instruction& mimg = instr->mimg();
|
||||
unsigned identity_dmask =
|
||||
!instr->definitions.empty() ? (1 << instr->definitions[0].size()) - 1 : 0xf;
|
||||
unsigned identity_dmask = 0xf;
|
||||
if (!instr->definitions.empty()) {
|
||||
unsigned num_channels = instr->definitions[0].bytes() / (mimg.d16 ? 2 : 4);
|
||||
identity_dmask = (1 << num_channels) - 1;
|
||||
}
|
||||
if ((mimg.dmask & identity_dmask) != identity_dmask)
|
||||
fprintf(output, " dmask:%s%s%s%s", mimg.dmask & 0x1 ? "x" : "",
|
||||
mimg.dmask & 0x2 ? "y" : "", mimg.dmask & 0x4 ? "z" : "",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue