From ee93b32fddc25d9734fd10655825419103eed772 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 30 May 2022 10:06:07 +1000 Subject: [PATCH] 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 Reviewed-by: Emma Anholt Reviewed-by: Yusuf Khan Part-of: --- src/nouveau/codegen/nv50_ir.cpp | 2 +- src/nouveau/codegen/nv50_ir.h | 4 ++-- src/nouveau/codegen/nv50_ir_driver.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nouveau/codegen/nv50_ir.cpp b/src/nouveau/codegen/nv50_ir.cpp index 95227a5eb3a..b26a72531fa 100644 --- a/src/nouveau/codegen/nv50_ir.cpp +++ b/src/nouveau/codegen/nv50_ir.cpp @@ -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; diff --git a/src/nouveau/codegen/nv50_ir.h b/src/nouveau/codegen/nv50_ir.h index 35a8f0a8a50..ec28b79b282 100644 --- a/src/nouveau/codegen/nv50_ir.h +++ b/src/nouveau/codegen/nv50_ir.h @@ -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&) 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; diff --git a/src/nouveau/codegen/nv50_ir_driver.h b/src/nouveau/codegen/nv50_ir_driver.h index 0e350ce099b..d8bd868270f 100644 --- a/src/nouveau/codegen/nv50_ir_driver.h +++ b/src/nouveau/codegen/nv50_ir_driver.h @@ -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