From db8175181856355bd6d376b77733f85f06f852d6 Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Tue, 4 Sep 2012 01:30:56 -0800 Subject: Fixing texture fetching for 1D texture with non-normalized coordinates: Adding support for the floating point input coordinate, and handling of out-of-bound coordinates. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13959] --- src/abstract_hardware_model.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/abstract_hardware_model.h') diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index b6a4111..8a08501 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -312,7 +312,7 @@ enum cudaTextureReadMode { struct textureReference { int normalized; enum cudaTextureFilterMode filterMode; - enum cudaTextureAddressMode addressMode[2]; + enum cudaTextureAddressMode addressMode[3]; struct cudaChannelFormatDesc channelDesc; }; -- cgit v1.3