From: Christos Zoulas Date: Wed, 9 Nov 2016 18:20:53 +0000 (+0000) Subject: Split SPIR into GPU X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51d0675f3fba660cd784ce2e792c54daddb7130f;p=file Split SPIR into GPU --- 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 \