nv50/ir/nir: add nir type helper functions
[mesa.git] / src / gallium / drivers / nouveau / codegen / nv50_ir_emit_gm107.cpp
index 241061ab8375750adb7f84ccf9eccdd086a8250d..6eefe8f00252884b4ef61ec0540c8ae1cbc15fc4 100644 (file)
@@ -2738,6 +2738,7 @@ getTEXSMask(uint8_t mask)
    case 0xf: return 0x4;
    default:
       assert(!"invalid mask");
+      return 0;
    }
 }
 
@@ -2862,6 +2863,7 @@ void
 CodeEmitterGM107::emitTEXS()
 {
    const TexInstruction *insn = this->insn->asTex();
+   assert(!insn->tex.derivAll);
 
    switch (insn->op) {
    case OP_TEX: