diff options
| author | Tor Aamodt <[email protected]> | 2010-10-09 09:22:16 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-10-09 09:22:16 -0800 |
| commit | 9aba275f0c2f9f7d125cb1364d991dbdcb6195c8 (patch) | |
| tree | 1d4f1e522830cb2a4fb5161122aee331bddac4ac /src/cuda-sim/ptx_ir.h | |
| parent | 4fce546cc9778b889bd07cf852be29b70a44f47d (diff) | |
refactoring: moving texture reference mappings into gpgpu_t
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7835]
Diffstat (limited to 'src/cuda-sim/ptx_ir.h')
| -rw-r--r-- | src/cuda-sim/ptx_ir.h | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/src/cuda-sim/ptx_ir.h b/src/cuda-sim/ptx_ir.h index 612326c..07f2e36 100644 --- a/src/cuda-sim/ptx_ir.h +++ b/src/cuda-sim/ptx_ir.h @@ -1009,6 +1009,7 @@ private: virtual void pre_decode(); friend class function_info; + static unsigned g_num_ptx_inst_uid; }; class param_info { @@ -1343,56 +1344,6 @@ void copy_args_into_buffer_list( const ptx_instruction * pI, void copy_buffer_list_into_frame(ptx_thread_info * thread, arg_buffer_list_t &arg_values); void copy_buffer_to_frame(ptx_thread_info * thread, const arg_buffer_t &a); -#if !defined(__CUDA_RUNTIME_API_H__) -/*******************************/ -// These declarations should be identical to those in ./../../cuda-sim-dev/libcuda/texture_types.h -enum cudaChannelFormatKind { - cudaChannelFormatKindSigned, - cudaChannelFormatKindUnsigned, - cudaChannelFormatKindFloat -}; - -struct cudaChannelFormatDesc { - int x; - int y; - int z; - int w; - enum cudaChannelFormatKind f; -}; - -struct cudaArray { - void *devPtr; - int devPtr32; - struct cudaChannelFormatDesc desc; - int width; - int height; - int size; //in bytes - unsigned dimensions; -}; - -enum cudaTextureAddressMode { - cudaAddressModeWrap, - cudaAddressModeClamp -}; - -enum cudaTextureFilterMode { - cudaFilterModePoint, - cudaFilterModeLinear -}; - -enum cudaTextureReadMode { - cudaReadModeElementType, - cudaReadModeNormalizedFloat -}; - -struct textureReference { - int normalized; - enum cudaTextureFilterMode filterMode; - enum cudaTextureAddressMode addressMode[2]; - struct cudaChannelFormatDesc channelDesc; -}; -/**********************************/ -#endif struct textureInfo { unsigned int texel_size; //size in bytes, e.g. (channelDesc.x+y+z+w)/8 |
