From 736e74a728dd2cc8bf0c7a432ec5a4990527abdf Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Tue, 21 Jan 2014 12:13:04 +0800 Subject: [PATCH] GBE: fix some incorrect gen ir output messages. Signed-off-by: Zhigang Gong --- backend/src/ir/instruction.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/ir/instruction.cpp b/backend/src/ir/instruction.cpp index a3e096f..83a43b6 100644 --- a/backend/src/ir/instruction.cpp +++ b/backend/src/ir/instruction.cpp @@ -507,7 +507,7 @@ namespace ir { this->outOpcode(out); out << "." << this->getDstType() << "." << this->getSrcType() - << " surface id " << this->getImageIndex() + << " surface id " << (int)this->getImageIndex() << " coord u %" << this->getSrc(fn, 0) << " coord v %" << this->getSrc(fn, 1) << " coord w %" << this->getSrc(fn, 2) @@ -515,7 +515,7 @@ namespace ir { << " %" << this->getDst(fn, 1) << " %" << this->getDst(fn, 2) << " %" << this->getDst(fn, 3) - << " sampler idx " << (int)this->samplerIdx; + << " sampler idx " << (int)this->getSamplerIndex(); } Tuple src; Tuple dst; @@ -555,7 +555,7 @@ namespace ir { INLINE void out(std::ostream &out, const Function &fn) const { this->outOpcode(out); out << "." << this->getSrcType() - << " surface id " << this->getImageIndex() + << " surface id " << (int)this->getImageIndex() << " coord u %" << this->getSrc(fn, 0) << " coord v %" << this->getSrc(fn, 1) << " coord w %" << this->getSrc(fn, 2) @@ -638,7 +638,7 @@ namespace ir { this->outOpcode(out); out << "." << this->getInfoType() << " %" << this->getDst(fn, 0) - << " surface id " << this->getImageIndex() + << " surface id " << (int)this->getImageIndex() << " info reg %" << this->getSrc(fn, 0); } -- 2.7.4