mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
nv50/ir: add scalar field to TexInstructions
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
8d825f78fc
commit
edd6c41751
2 changed files with 6 additions and 1 deletions
|
|
@ -1058,6 +1058,8 @@ public:
|
|||
|
||||
enum TexQuery query;
|
||||
const struct ImgFormatDesc *format;
|
||||
|
||||
bool scalar; // for GM107s TEXS, TLDS, TLD4S
|
||||
} tex;
|
||||
|
||||
ValueRef dPdx[3];
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue