summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2016-11-09 18:20:53 +0000
committerChristos Zoulas <christos@zoulas.com>2016-11-09 18:20:53 +0000
commit51d0675f3fba660cd784ce2e792c54daddb7130f (patch)
tree987404d0b14bf2627481a680367ab9e5424759b4
parentf784bc95740d4370dc2f12bb73b5f295fd61267d (diff)
downloadfile-git-51d0675f3fba660cd784ce2e792c54daddb7130f.tar.gz
Split SPIR into GPU
-rw-r--r--magic/Magdir/gpu16
-rw-r--r--magic/Magdir/images17
-rw-r--r--magic/Makefile.am3
3 files changed, 19 insertions, 17 deletions
diff --git a/magic/Magdir/gpu b/magic/Magdir/gpu
new file mode 100644
index 00000000..4deffaea
--- /dev/null
+++ b/magic/Magdir/gpu
@@ -0,0 +1,16 @@
+
+#------------------------------------------------------------------------------
+# $File: gpu,v 1.1 2016/11/09 18:20:53 christos Exp $
+# gpu: file(1) magic for GPU input files
+
+# Standard Portable Intermediate Representation (SPIR)
+# Documentation: https://www.khronos.org/spir
+# Typical file extension: .spv
+
+0 belong 0x07230203 Khronos SPIR-V binary, big-endian
+>4 belong x \b, version 0x%08x
+>8 belong x \b, generator 0x%08x
+
+0 lelong 0x07230203 Khronos SPIR-V binary, little-endian
+>4 lelong x \b, version 0x%08x
+>8 lelong x \b, generator 0x%08x
diff --git a/magic/Magdir/images b/magic/Magdir/images
index afe51274..3e103cec 100644
--- a/magic/Magdir/images
+++ b/magic/Magdir/images
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: images,v 1.118 2016/11/08 02:58:21 christos Exp $
+# $File: images,v 1.119 2016/11/09 18:20:53 christos Exp $
# images: file(1) magic for image formats (see also "iff", and "c-lang" for
# XPM bitmaps)
#
@@ -1460,18 +1460,3 @@
>4 belong 0x0D0A1A0A
>12 belong 0x00000000 Lytro Light Field Picture
>8 belong x \b, version %d
-
-# Standard Portable Intermediate Representation (SPIR)
-# Documentation: https://www.khronos.org/spir
-# Typical file extension: .spv
-
-0 belong 0x07230203 Khronos SPIR-V binary, big-endian
->4 belong x \b, version 0x%08x
->8 belong x \b, generator 0x%08x
-
-0 lelong 0x07230203 Khronos SPIR-V binary, little-endian
->4 lelong x \b, version 0x%08x
->8 lelong x \b, generator 0x%08x
-
-
-
diff --git a/magic/Makefile.am b/magic/Makefile.am
index 186ed835..92584f32 100644
--- a/magic/Makefile.am
+++ b/magic/Makefile.am
@@ -1,5 +1,5 @@
#
-# $File: Makefile.am,v 1.121 2016/10/30 00:38:01 christos Exp $
+# $File: Makefile.am,v 1.122 2016/11/09 18:20:53 christos Exp $
#
MAGIC_FRAGMENT_BASE = Magdir
MAGIC_DIR = $(top_srcdir)/magic
@@ -104,6 +104,7 @@ $(MAGIC_FRAGMENT_DIR)/gnome \
$(MAGIC_FRAGMENT_DIR)/gnu \
$(MAGIC_FRAGMENT_DIR)/gnumeric \
$(MAGIC_FRAGMENT_DIR)/gpt \
+$(MAGIC_FRAGMENT_DIR)/gpu \
$(MAGIC_FRAGMENT_DIR)/grace \
$(MAGIC_FRAGMENT_DIR)/graphviz \
$(MAGIC_FRAGMENT_DIR)/gringotts \