From: Kenneth Graunke Date: Wed, 30 Dec 2015 21:22:32 +0000 (-0800) Subject: Revert "nir/spirv: Update to the 1.0 GLSL.std.450 header" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f23116bfa4dc61b77e31361b2fe3aa2ce052611;p=mesa.git Revert "nir/spirv: Update to the 1.0 GLSL.std.450 header" This reverts commit b33f5d388979f23c583c78f10a18a941cb04ce04, and also removes the (empty) case statements for the new built-ins. It doesn't look like glslang has updated yet, so updating the header just breaks everything, as we no longer agree on opcode numbers. --- diff --git a/src/glsl/nir/spirv/GLSL.std.450.h b/src/glsl/nir/spirv/GLSL.std.450.h index 779d108205e..d1c9b5c1d44 100644 --- a/src/glsl/nir/spirv/GLSL.std.450.h +++ b/src/glsl/nir/spirv/GLSL.std.450.h @@ -27,8 +27,8 @@ #ifndef GLSLstd450_H #define GLSLstd450_H -const int GLSLstd450Version = 100; -const int GLSLstd450Revision = 1; +const int GLSLstd450Version = 99; +const int GLSLstd450Revision = 3; enum GLSLstd450 { GLSLstd450Bad = 0, // Don't use @@ -74,55 +74,52 @@ enum GLSLstd450 { GLSLstd450Modf = 35, // second operand needs an OpVariable to write to GLSLstd450ModfStruct = 36, // no OpVariable operand GLSLstd450FMin = 37, - GLSLstd450NMin = 38, - GLSLstd450UMin = 39, - GLSLstd450SMin = 40, - GLSLstd450FMax = 41, - GLSLstd450NMax = 42, - GLSLstd450UMax = 43, - GLSLstd450SMax = 44, - GLSLstd450FClamp = 45, - GLSLstd450NClamp = 46, - GLSLstd450UClamp = 47, - GLSLstd450SClamp = 48, - GLSLstd450FMix = 49, - GLSLstd450IMix = 50, - GLSLstd450Step = 51, - GLSLstd450SmoothStep = 52, + GLSLstd450UMin = 38, + GLSLstd450SMin = 39, + GLSLstd450FMax = 40, + GLSLstd450UMax = 41, + GLSLstd450SMax = 42, + GLSLstd450FClamp = 43, + GLSLstd450UClamp = 44, + GLSLstd450SClamp = 45, + GLSLstd450FMix = 46, + GLSLstd450IMix = 47, + GLSLstd450Step = 48, + GLSLstd450SmoothStep = 49, - GLSLstd450Fma = 53, - GLSLstd450Frexp = 54, // second operand needs an OpVariable to write to - GLSLstd450FrexpStruct = 55, // no OpVariable operand - GLSLstd450Ldexp = 56, + GLSLstd450Fma = 50, + GLSLstd450Frexp = 51, // second operand needs an OpVariable to write to + GLSLstd450FrexpStruct = 52, // no OpVariable operand + GLSLstd450Ldexp = 53, - GLSLstd450PackSnorm4x8 = 57, - GLSLstd450PackUnorm4x8 = 58, - GLSLstd450PackSnorm2x16 = 59, - GLSLstd450PackUnorm2x16 = 60, - GLSLstd450PackHalf2x16 = 61, - GLSLstd450PackDouble2x32 = 62, - GLSLstd450UnpackSnorm2x16 = 63, - GLSLstd450UnpackUnorm2x16 = 64, - GLSLstd450UnpackHalf2x16 = 65, - GLSLstd450UnpackSnorm4x8 = 66, - GLSLstd450UnpackUnorm4x8 = 67, - GLSLstd450UnpackDouble2x32 = 68, + GLSLstd450PackSnorm4x8 = 54, + GLSLstd450PackUnorm4x8 = 55, + GLSLstd450PackSnorm2x16 = 56, + GLSLstd450PackUnorm2x16 = 57, + GLSLstd450PackHalf2x16 = 58, + GLSLstd450PackDouble2x32 = 59, + GLSLstd450UnpackSnorm2x16 = 60, + GLSLstd450UnpackUnorm2x16 = 61, + GLSLstd450UnpackHalf2x16 = 62, + GLSLstd450UnpackSnorm4x8 = 63, + GLSLstd450UnpackUnorm4x8 = 64, + GLSLstd450UnpackDouble2x32 = 65, - GLSLstd450Length = 69, - GLSLstd450Distance = 70, - GLSLstd450Cross = 71, - GLSLstd450Normalize = 72, - GLSLstd450FaceForward = 73, - GLSLstd450Reflect = 74, - GLSLstd450Refract = 75, + GLSLstd450Length = 66, + GLSLstd450Distance = 67, + GLSLstd450Cross = 68, + GLSLstd450Normalize = 69, + GLSLstd450FaceForward = 70, + GLSLstd450Reflect = 71, + GLSLstd450Refract = 72, - GLSLstd450FindILsb = 76, - GLSLstd450FindSMsb = 77, - GLSLstd450FindUMsb = 78, + GLSLstd450FindILsb = 73, + GLSLstd450FindSMsb = 74, + GLSLstd450FindUMsb = 75, - GLSLstd450InterpolateAtCentroid = 79, - GLSLstd450InterpolateAtSample = 80, - GLSLstd450InterpolateAtOffset = 81, + GLSLstd450InterpolateAtCentroid = 76, + GLSLstd450InterpolateAtSample = 77, + GLSLstd450InterpolateAtOffset = 78, GLSLstd450Count }; diff --git a/src/glsl/nir/spirv/vtn_glsl450.c b/src/glsl/nir/spirv/vtn_glsl450.c index 820aed7f66a..8905bdfbdde 100644 --- a/src/glsl/nir/spirv/vtn_glsl450.c +++ b/src/glsl/nir/spirv/vtn_glsl450.c @@ -274,9 +274,6 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint, case GLSLstd450Atan: case GLSLstd450Atan2: case GLSLstd450ModfStruct: - case GLSLstd450NMin: - case GLSLstd450NMax: - case GLSLstd450NClamp: case GLSLstd450Frexp: case GLSLstd450FrexpStruct: case GLSLstd450FindILsb: