diff options
| author | Tor Aamodt <[email protected]> | 2010-10-09 20:14:19 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-10-09 20:14:19 -0800 |
| commit | 619ce55dd498d3aba98e7d216c26fcd6503ab286 (patch) | |
| tree | f7a8c321e717f93f81a87b15057b540c6bed31a8 /src/abstract_hardware_model.h | |
| parent | 9aba275f0c2f9f7d125cb1364d991dbdcb6195c8 (diff) | |
refactor: renaming some texture reference variables after moving to gpgpu_t
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7840]
Diffstat (limited to 'src/abstract_hardware_model.h')
| -rw-r--r-- | src/abstract_hardware_model.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 62a59e0..5ccdaf3 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -222,26 +222,23 @@ public: void gpgpu_ptx_sim_bindNameToTexture(const char* name, const struct textureReference* texref); const char* gpgpu_ptx_sim_findNamefromTexture(const struct textureReference* texref); unsigned ptx_set_tex_cache_linesize(unsigned linesize); - const struct cudaArray* gpgpu_ptx_sim_accessArrayofTexture(struct textureReference* texref); - const struct textureReference* gpgpu_ptx_sim_accessTextureofName(const char* name); - int gpgpu_ptx_sim_sizeofTexture(const char* name); const struct textureReference* get_texref(const std::string &texname) const { - std::map<std::string, const struct textureReference*>::const_iterator t=NameToTextureMap.find(texname); - assert( t != NameToTextureMap.end() ); + std::map<std::string, const struct textureReference*>::const_iterator t=m_NameToTextureRef.find(texname); + assert( t != m_NameToTextureRef.end() ); return t->second; } const struct cudaArray* get_texarray( const struct textureReference *texref ) const { - std::map<const struct textureReference*,const struct cudaArray*>::const_iterator t=TextureToArrayMap.find(texref); - assert(t != TextureToArrayMap.end()); + std::map<const struct textureReference*,const struct cudaArray*>::const_iterator t=m_TextureRefToCudaArray.find(texref); + assert(t != m_TextureRefToCudaArray.end()); return t->second; } const struct textureInfo* get_texinfo( const struct textureReference *texref ) const { - std::map<const struct textureReference*, const struct textureInfo*>::const_iterator t=TextureToInfoMap.find(texref); - assert(t != TextureToInfoMap.end()); + std::map<const struct textureReference*, const struct textureInfo*>::const_iterator t=m_TextureRefToTexureInfo.find(texref); + assert(t != m_TextureRefToTexureInfo.end()); return t->second; } @@ -253,10 +250,10 @@ protected: unsigned long long m_dev_malloc; - std::map<const struct textureReference*,const struct cudaArray*> TextureToArrayMap; // texture bindings - std::map<const struct textureReference*, const struct textureInfo*> TextureToInfoMap; - std::map<std::string, const struct textureReference*> NameToTextureMap; - unsigned int g_texcache_linesize; + std::map<std::string, const struct textureReference*> m_NameToTextureRef; + std::map<const struct textureReference*,const struct cudaArray*> m_TextureRefToCudaArray; + std::map<const struct textureReference*, const struct textureInfo*> m_TextureRefToTexureInfo; + unsigned int m_texcache_linesize; }; struct gpgpu_ptx_sim_kernel_info |
