X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Famd%2Fcompiler%2Faco_assembler.cpp;h=ee575e882c982d500e9bd8c5cd5c4899d57361bd;hb=a1622c1a11bfb7112a856c2ff9b308d0aa3e98b6;hp=08debb25ad6b2851ac6f5cb7de5d5b0606467595;hpb=99aed688d346e26b23e2e00cb6f7df9be3415ccb;p=mesa.git diff --git a/src/amd/compiler/aco_assembler.cpp b/src/amd/compiler/aco_assembler.cpp index 08debb25ad6..ee575e882c9 100644 --- a/src/amd/compiler/aco_assembler.cpp +++ b/src/amd/compiler/aco_assembler.cpp @@ -317,6 +317,7 @@ void emit_instruction(asm_context& ctx, std::vector& out, Instruction* uint32_t img_format = ac_get_tbuffer_format(ctx.chip_class, mtbuf->dfmt, mtbuf->nfmt); uint32_t encoding = (0b111010 << 26); + assert(img_format <= 0x7F); assert(!mtbuf->dlc || ctx.chip_class >= GFX10); encoding |= (mtbuf->dlc ? 1 : 0) << 15; /* DLC bit replaces one bit of the OPCODE on GFX10 */ encoding |= (mtbuf->glc ? 1 : 0) << 14;