From c69267b0baad3b331d727ee35a000e48c1e4739d Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 9 Nov 2016 18:20:53 +0000 Subject: [PATCH] Split SPIR into GPU --- magic/Magdir/gpu | 16 ++++++++++++++++ magic/Magdir/images | 17 +---------------- magic/Makefile.am | 3 ++- 3 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 magic/Magdir/gpu diff --git a/magic/Magdir/gpu b/magic/Magdir/gpu new file mode 100644 index 00000000..d6835c56 --- /dev/null +++ b/magic/Magdir/gpu @@ -0,0 +1,16 @@ + +#------------------------------------------------------------------------------ +# $File: images,v 1.118 2016/11/08 02:58:21 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 7ee00ce2..f890cfc5 100644 --- a/magic/Magdir/images +++ b/magic/Magdir/images @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: images,v 1.117 2016/07/05 19:12:21 christos Exp $ +# $File: images,v 1.118 2016/11/08 02:58:21 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 9495f6a0..a756d459 100644 --- a/magic/Makefile.am +++ b/magic/Makefile.am @@ -1,5 +1,5 @@ # -# $File: Makefile.am,v 1.120 2016/10/17 19:52:29 christos Exp $ +# $File: Makefile.am,v 1.121 2016/10/30 00:38:01 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 \ -- 2.40.0