Mesa (main): nouveau/codegen: drop all ubytes from codegen.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 3 04:03:09 UTC 2022
Module: Mesa
Branch: main
Commit: ee93b32fddc25d9734fd10655825419103eed772
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee93b32fddc25d9734fd10655825419103eed772
Author: Dave Airlie <airlied at redhat.com>
Date: Mon May 30 10:06:07 2022 +1000
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 at redhat.com>
Reviewed-by: Emma Anholt <emma at anholt.net>
Reviewed-by: Yusuf Khan<yusisamerican at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16763>
---
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<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;
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
More information about the mesa-commit
mailing list