From 386022857c663f34f273194c9a0fe52433e47572 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 10 Dec 2008 05:10:08 -0500 Subject: [PATCH] Allow SM3 shaders that are vs_3_x or vs_3_sw. --- mojoshader.c | 2 +- mojoshader_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mojoshader.c b/mojoshader.c index caa36776..c4ab4f87 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -289,7 +289,7 @@ static inline void pop_output(Context *ctx) 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) diff --git a/mojoshader_internal.h b/mojoshader_internal.h index c48aba57..69820e56 100644 --- a/mojoshader_internal.h +++ b/mojoshader_internal.h @@ -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.