nv50/ir: add scalar field to TexInstructions

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Karol Herbst 2018-08-05 19:12:48 +02:00
parent 8d825f78fc
commit edd6c41751
2 changed files with 6 additions and 1 deletions

View file

@ -1058,6 +1058,8 @@ public:
enum TexQuery query;
const struct ImgFormatDesc *format;
bool scalar; // for GM107s TEXS, TLDS, TLD4S
} tex;
ValueRef dPdx[3];

View file

@ -612,7 +612,10 @@ void Instruction::print() const
if (asFlow()->target.bb)
PRINT(" %sBB:%i", colour[TXT_BRA], asFlow()->target.bb->getId());
} else {
PRINT("%s ", operationStr[op]);
if (asTex())
PRINT("%s%s ", operationStr[op], asTex()->tex.scalar ? "s" : "");
else
PRINT("%s ", operationStr[op]);
if (op == OP_LINTERP || op == OP_PINTERP)
PRINT("%s ", interpStr[ipa]);
switch (op) {