nouveau/codegen: drop all ubytes from codegen.

There wasn't that many, so get rid of them in favour of real types.

Acked-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Yusuf Khan<yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16763>
This commit is contained in:
Dave Airlie
2022-05-30 10:06:07 +10:00
committed by Marge Bot
parent 1f754b7aae
commit ee93b32fdd
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ LValue::isUniform() const
return !insn->srcExists(1) && insn->getSrc(0)->isUniform();
}
Symbol::Symbol(Program *prog, DataFile f, ubyte fidx)
Symbol::Symbol(Program *prog, DataFile f, uint8_t fidx)
{
baseSym = NULL;
+2 -2
View File
@@ -790,7 +790,7 @@ public:
class Symbol : public Value
{
public:
Symbol(Program *, DataFile file = FILE_MEMORY_CONST, ubyte fileIdx = 0);
Symbol(Program *, DataFile file = FILE_MEMORY_CONST, uint8_t fileIdx = 0);
~Symbol() { }
virtual Symbol *clone(ClonePolicy<Function>&) const;
@@ -804,7 +804,7 @@ public:
// print with indirect values
int print(char *, size_t, Value *, Value *, DataType ty = TYPE_NONE) const;
inline void setFile(DataFile file, ubyte fileIndex = 0)
inline void setFile(DataFile file, uint8_t fileIndex = 0)
{
reg.file = file;
reg.fileIndex = fileIndex;
+3 -3
View File
@@ -52,9 +52,9 @@ struct nv50_ir_varying
unsigned input : 1; /* indicates direction of system values */
unsigned oread : 1; /* true if output is read from parallel TCP */
ubyte id; /* TGSI register index */
ubyte sn; /* TGSI semantic name */
ubyte si; /* TGSI semantic index */
uint8_t id; /* TGSI register index */
uint8_t sn; /* TGSI semantic name */
uint8_t si; /* TGSI semantic index */
};
#ifndef NDEBUG