Allow SM3 shaders that are vs_3_x or vs_3_sw.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 10 Dec 2008 05:10:08 -0500
changeset 493 e2c930ab84b5
parent 492 29bfa3448549
child 494 309f60d7cf8c
Allow SM3 shaders that are vs_3_x or vs_3_sw.
mojoshader.c
mojoshader_internal.h
--- a/mojoshader.c	Wed Dec 10 05:06:56 2008 -0500
+++ b/mojoshader.c	Wed Dec 10 05:10:08 2008 -0500
@@ -289,7 +289,7 @@
 
 static inline uint32 ver_ui32(const uint8 major, const uint8 minor)
 {
-    return ( (((uint32) major) << 16) | (((minor) == 0xFF) ? 0 : (minor)) );
+    return ( (((uint32) major) << 16) | (((minor) == 0xFF) ? 1 : (minor)) );
 } // version_ui32
 
 static inline int shader_version_supported(const uint8 maj, const uint8 min)
--- a/mojoshader_internal.h	Wed Dec 10 05:06:56 2008 -0500
+++ b/mojoshader_internal.h	Wed Dec 10 05:10:08 2008 -0500
@@ -23,7 +23,7 @@
 // This is the highest shader version we currently support.
 
 #define MAX_SHADER_MAJOR 3
-#define MAX_SHADER_MINOR 0
+#define MAX_SHADER_MINOR 255  // vs_3_sw
 
 
 // If SUPPORT_PROFILE_* isn't defined, we assume an implicit desire to support.