From: Brian Paul Date: Wed, 24 May 2017 13:38:48 +0000 (-0600) Subject: svga: sync VGPU10ShaderTokens.h with upstream changes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16439085f518e039b260b0de078dd44af40f4e1f;p=mesa.git svga: sync VGPU10ShaderTokens.h with upstream changes This includes new DX 10.1 opcodes and tokens. Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/drivers/svga/include/VGPU10ShaderTokens.h b/src/gallium/drivers/svga/include/VGPU10ShaderTokens.h index 1f9746e1cc6..7ffe58ef133 100644 --- a/src/gallium/drivers/svga/include/VGPU10ShaderTokens.h +++ b/src/gallium/drivers/svga/include/VGPU10ShaderTokens.h @@ -175,6 +175,10 @@ typedef enum { VGPU10_OPCODE_DCL_INDEXABLE_TEMP = 105, VGPU10_OPCODE_DCL_GLOBAL_FLAGS = 106, VGPU10_OPCODE_IDIV = 107, + VGPU10_OPCODE_LOD = 108, + VGPU10_OPCODE_GATHER4 = 109, + VGPU10_OPCODE_SAMPLE_POS = 110, + VGPU10_OPCODE_SAMPLE_INFO = 111, VGPU10_NUM_OPCODES /* Should be the last entry. */ } VGPU10_OPCODE_TYPE; @@ -254,6 +258,12 @@ typedef enum { VGPU10_RESINFO_RETURN_UINT = 2 } VGPU10_RESINFO_RETURN_TYPE; + +typedef enum { + VGPU10_INSTRUCTION_RETURN_FLOAT = 0, + VGPU10_INSTRUCTION_RETURN_UINT = 1 +} VGPU10_INSTRUCTION_RETURN_TYPE; + typedef union { struct { unsigned int opcodeType : 11; /* VGPU10_OPCODE_TYPE */ @@ -298,6 +308,10 @@ typedef union { unsigned int : 11; unsigned int refactoringAllowed : 1; }; + struct { + unsigned int : 11; + unsigned int instReturnType : 2; /* VGPU10_INSTRUCTION_RETURN_TYPE */ + }; uint32 value; } VGPU10OpcodeToken0; @@ -447,12 +461,14 @@ typedef union { typedef enum { - VGPU10_RETURN_TYPE_UNORM = 1, - VGPU10_RETURN_TYPE_SNORM = 2, - VGPU10_RETURN_TYPE_SINT = 3, - VGPU10_RETURN_TYPE_UINT = 4, - VGPU10_RETURN_TYPE_FLOAT = 5, - VGPU10_RETURN_TYPE_MIXED = 6 + VGPU10_RETURN_TYPE_MIN = 1, + VGPU10_RETURN_TYPE_UNORM = 1, + VGPU10_RETURN_TYPE_SNORM = 2, + VGPU10_RETURN_TYPE_SINT = 3, + VGPU10_RETURN_TYPE_UINT = 4, + VGPU10_RETURN_TYPE_FLOAT = 5, + VGPU10_RETURN_TYPE_MIXED = 6, + VGPU10_RETURN_TYPE_MAX = 6 } VGPU10_RESOURCE_RETURN_TYPE; typedef union { @@ -467,17 +483,19 @@ typedef union { typedef enum { - VGPU10_NAME_UNDEFINED = 0, - VGPU10_NAME_POSITION = 1, - VGPU10_NAME_CLIP_DISTANCE = 2, - VGPU10_NAME_CULL_DISTANCE = 3, - VGPU10_NAME_RENDER_TARGET_ARRAY_INDEX = 4, - VGPU10_NAME_VIEWPORT_ARRAY_INDEX = 5, - VGPU10_NAME_VERTEX_ID = 6, - VGPU10_NAME_PRIMITIVE_ID = 7, - VGPU10_NAME_INSTANCE_ID = 8, - VGPU10_NAME_IS_FRONT_FACE = 9, - VGPU10_NAME_SAMPLE_INDEX = 10, + VGPU10_NAME_MIN = 0, + VGPU10_NAME_UNDEFINED = 0, + VGPU10_NAME_POSITION = 1, + VGPU10_NAME_CLIP_DISTANCE = 2, + VGPU10_NAME_CULL_DISTANCE = 3, + VGPU10_NAME_RENDER_TARGET_ARRAY_INDEX = 4, + VGPU10_NAME_VIEWPORT_ARRAY_INDEX = 5, + VGPU10_NAME_VERTEX_ID = 6, + VGPU10_NAME_PRIMITIVE_ID = 7, + VGPU10_NAME_INSTANCE_ID = 8, + VGPU10_NAME_IS_FRONT_FACE = 9, + VGPU10_NAME_SAMPLE_INDEX = 10, + VGPU10_NAME_MAX = 10 } VGPU10_SYSTEM_NAME; typedef union {