summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/nvidia-cuda-toolkit/files/nvidia-cuda-toolkit-3.1-enum_fix.patch')
-rw-r--r--dev-util/nvidia-cuda-toolkit/files/nvidia-cuda-toolkit-3.1-enum_fix.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/files/nvidia-cuda-toolkit-3.1-enum_fix.patch b/dev-util/nvidia-cuda-toolkit/files/nvidia-cuda-toolkit-3.1-enum_fix.patch
new file mode 100644
index 000000000000..698d2c7b56e0
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/files/nvidia-cuda-toolkit-3.1-enum_fix.patch
@@ -0,0 +1,24 @@
+diff -Naur include.orig/cudaGL.h include/cudaGL.h
+--- include.orig/cudaGL.h 2010-04-28 09:31:16.000000000 +0200
++++ include/cudaGL.h 2010-05-21 00:04:47.000000000 +0200
+@@ -59,7 +59,7 @@
+ typedef enum CUGLmap_flags_enum {
+ CU_GL_MAP_RESOURCE_FLAGS_NONE = 0x00,
+ CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY = 0x01,
+- CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD = 0x02,
++ CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD = 0x02
+ } CUGLmap_flags;
+
+ CUresult CUDAAPI cuGLInit(void);
+diff -Naur include.orig/cuda_gl_interop.h include/cuda_gl_interop.h
+--- include.orig/cuda_gl_interop.h 2010-04-28 09:30:46.000000000 +0200
++++ include/cuda_gl_interop.h 2010-05-21 00:05:08.000000000 +0200
+@@ -83,7 +83,7 @@
+ {
+ cudaGLMapFlagsNone = 0, ///< Default; Assume resource can be read/written
+ cudaGLMapFlagsReadOnly = 1, ///< CUDA kernels will not write to this resource
+- cudaGLMapFlagsWriteDiscard = 2, ///< CUDA kernels will only write to and will not read from this resource
++ cudaGLMapFlagsWriteDiscard = 2 ///< CUDA kernels will only write to and will not read from this resource
+ };
+
+ extern __host__ cudaError_t CUDARTAPI cudaGLRegisterBufferObject(GLuint bufObj);