Fix issues from review comments and those relevant to texelFetch

This commit is contained in:
Rex Xu
2015-09-16 11:44:02 +08:00
parent 30f9258d5e
commit 04db3f5aa4
4 changed files with 45 additions and 26 deletions

View File

@@ -138,11 +138,6 @@ public:
bool isConstantScalar(Id resultId) const { return getOpCode(resultId) == OpConstant; }
unsigned int getConstantScalar(Id resultId) const { return module.getInstruction(resultId)->getImmediateOperand(0); }
bool isSignedType(Id typeId) const
{
assert(getTypeClass(typeId) == OpTypeInt);
return module.getInstruction(typeId)->getImmediateOperand(1) == 0u;
}
int getTypeNumColumns(Id typeId) const
{