summaryrefslogtreecommitdiff
path: root/src/cuda-sim/instructions.cc
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-05-22 14:00:59 -0700
committerJonathan <[email protected]>2018-05-25 09:11:55 -0700
commitff958f36689c9c217eb099326ceb8f70ed3ac447 (patch)
treef7dbebb34695678b38a0d2bc18ffbe5d31336b40 /src/cuda-sim/instructions.cc
parent4a567a94aca58fdd2298b50ae9e9da3a889e2173 (diff)
restructured texref maps to fix texture bug
Diffstat (limited to 'src/cuda-sim/instructions.cc')
-rw-r--r--src/cuda-sim/instructions.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc
index 86951ed..d362231 100644
--- a/src/cuda-sim/instructions.cc
+++ b/src/cuda-sim/instructions.cc
@@ -4100,9 +4100,9 @@ void tex_impl( const ptx_instruction *pI, ptx_thread_info *thread )
gpgpu_t *gpu = thread->get_gpu();
const struct textureReference* texref = gpu->get_texref(texname);
- const struct cudaArray* cuArray = gpu->get_texarray(texref);
- const struct textureInfo* texInfo = gpu->get_texinfo(texref);
- const struct textureReferenceAttr* texAttr = gpu->get_texattr(texref);
+ const struct cudaArray* cuArray = gpu->get_texarray(texname);
+ const struct textureInfo* texInfo = gpu->get_texinfo(texname);
+ const struct textureReferenceAttr* texAttr = gpu->get_texattr(texname);
//assume always 2D f32 input
//access array with src2 coordinates