Driver: moved programs allocation logic to a static variable

This commit is contained in:
Philippe Tillet
2015-07-30 14:35:41 -07:00
parent d3f82e535f
commit 21a2566904
18 changed files with 92 additions and 55 deletions

View File

@@ -48,10 +48,14 @@ Context::Context(Device const & device) : backend_(device.backend_), device_(dev
}
bool Context::operator==(Context const & other) const
{ return h_==other.h_; }
{
return h_==other.h_;
}
bool Context::operator<(Context const & other) const
{ return h_<other.h_; }
{
return h_<other.h_;
}
Device const & Context::device() const
{ return device_; }