[Mesa-dev] [PATCH 1/2] gk110/ir: remove an unused parameter in isLIMM()

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Apr 25 20:47:02 UTC 2016


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
index 519da69..208284d 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -137,7 +137,7 @@ private:
 
    inline void srcAddr32(const ValueRef&, const int pos); // address / 4
 
-   inline bool isLIMM(const ValueRef&, DataType ty, bool mod = false);
+   inline bool isLIMM(const ValueRef&, DataType ty);
 };
 
 #define GK110_GPR_ZERO 255
@@ -186,7 +186,7 @@ void CodeEmitterGK110::defId(const ValueDef& def, const int pos)
    code[pos / 32] |= (def.get() ? DDATA(def).id : GK110_GPR_ZERO) << (pos % 32);
 }
 
-bool CodeEmitterGK110::isLIMM(const ValueRef& ref, DataType ty, bool mod)
+bool CodeEmitterGK110::isLIMM(const ValueRef& ref, DataType ty)
 {
    const ImmediateValue *imm = ref.get()->asImm();
 
@@ -767,7 +767,7 @@ CodeEmitterGK110::emitLogicOp(const Instruction *i, uint8_t subOp)
 void
 CodeEmitterGK110::emitPOPC(const Instruction *i)
 {
-   assert(!isLIMM(i->src(1), TYPE_S32, true));
+   assert(!isLIMM(i->src(1), TYPE_S32));
 
    emitForm_21(i, 0x204, 0xc04);
 
-- 
2.8.0



More information about the mesa-dev mailing list