nouveau: Drop ConverterCommon::Subroutine
Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24175>
This commit is contained in:
parent
c631635f43
commit
51dfde7b96
2 changed files with 0 additions and 39 deletions
|
|
@ -30,30 +30,6 @@ ConverterCommon::ConverterCommon(Program *prog, nv50_ir_prog_info *info,
|
|||
info(info),
|
||||
info_out(info_out) {}
|
||||
|
||||
ConverterCommon::Subroutine *
|
||||
ConverterCommon::getSubroutine(unsigned ip)
|
||||
{
|
||||
std::map<unsigned, Subroutine>::iterator it = sub.map.find(ip);
|
||||
|
||||
if (it == sub.map.end())
|
||||
it = sub.map.insert(std::make_pair(
|
||||
ip, Subroutine(new Function(prog, "SUB", ip)))).first;
|
||||
|
||||
return &it->second;
|
||||
}
|
||||
|
||||
ConverterCommon::Subroutine *
|
||||
ConverterCommon::getSubroutine(Function *f)
|
||||
{
|
||||
unsigned ip = f->getLabel();
|
||||
std::map<unsigned, Subroutine>::iterator it = sub.map.find(ip);
|
||||
|
||||
if (it == sub.map.end())
|
||||
it = sub.map.insert(std::make_pair(ip, Subroutine(f))).first;
|
||||
|
||||
return &it->second;
|
||||
}
|
||||
|
||||
uint8_t
|
||||
ConverterCommon::translateInterpMode(const struct nv50_ir_varying *var, operation& op)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,25 +30,10 @@ class ConverterCommon : public BuildUtil
|
|||
public:
|
||||
ConverterCommon(Program *, nv50_ir_prog_info *, nv50_ir_prog_info_out *);
|
||||
protected:
|
||||
struct Subroutine
|
||||
{
|
||||
Subroutine(Function *f) : f(f) { }
|
||||
Function *f;
|
||||
ValueMap values;
|
||||
};
|
||||
|
||||
Subroutine *getSubroutine(unsigned ip);
|
||||
Subroutine *getSubroutine(Function *);
|
||||
|
||||
uint8_t translateInterpMode(const struct nv50_ir_varying *var, operation& op);
|
||||
|
||||
void handleUserClipPlanes();
|
||||
|
||||
struct {
|
||||
std::map<unsigned, Subroutine> map;
|
||||
Subroutine *cur;
|
||||
} sub;
|
||||
|
||||
struct nv50_ir_prog_info *info;
|
||||
struct nv50_ir_prog_info_out *info_out;
|
||||
Value *fragCoord[4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue