diff options
| author | Suchita Pati <[email protected]> | 2019-04-10 23:27:42 -0500 |
|---|---|---|
| committer | Suchita Pati <[email protected]> | 2019-04-10 23:27:42 -0500 |
| commit | 73050b730b31e9f58f8c2a0bfc4b3a8cd92be7ff (patch) | |
| tree | aa5f618cf8fd6af967fdbcd25e90cf9953b08a86 /src/cuda-sim/instructions.cc | |
| parent | 170bfe92035bf44e773601e160ba95cbbabf91da (diff) | |
Adding texture Fix
Diffstat (limited to 'src/cuda-sim/instructions.cc')
| -rw-r--r-- | src/cuda-sim/instructions.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc index c85654c..d29fc8b 100644 --- a/src/cuda-sim/instructions.cc +++ b/src/cuda-sim/instructions.cc @@ -5260,9 +5260,10 @@ void tex_impl( const ptx_instruction *pI, ptx_thread_info *thread ) thread->get_vector_operand_values(src2, ptx_tex_regs, nelem); //ptx_reg should be 4 entry vector type...coordinates into texture gpgpu_t *gpu = thread->get_gpu(); + kernel_info_t &k = thread->get_kernel(); const struct textureReference* texref = gpu->get_texref(texname); - const struct cudaArray* cuArray = gpu->get_texarray(texname); - const struct textureInfo* texInfo = gpu->get_texinfo(texname); + const struct cudaArray* cuArray = k.get_texarray(texname); + const struct textureInfo* texInfo = k.get_texinfo(texname); const struct textureReferenceAttr* texAttr = gpu->get_texattr(texname); //assume always 2D f32 input |
