vk/pack: Generate length macros for structs
authorKristian Høgsberg <kristian.h.kristensen@intel.com>
Tue, 26 May 2015 18:02:28 +0000 (11:02 -0700)
committerKristian Høgsberg <kristian.h.kristensen@intel.com>
Tue, 26 May 2015 18:27:31 +0000 (11:27 -0700)
src/vulkan/gen75_pack.h
src/vulkan/gen7_pack.h
src/vulkan/gen8_pack.h

index 4978d5977b70bfdc16bdb9215f54d1f73cba8d62..1f041ab1a721d18cea9b65753ed7fd7b9f5cd8e8 100644 (file)
@@ -6949,6 +6949,22 @@ GEN75_PIPE_CONTROL_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN75_3DSTATE_CONSTANT_BODY_length 0x00000006
+
+#define GEN75_BINDING_TABLE_EDIT_ENTRY_length 0x00000001
+
+#define GEN75_GATHER_CONSTANT_ENTRY_length 0x00000001
+
+#define GEN75_VERTEX_BUFFER_STATE_length 0x00000004
+
+#define GEN75_VERTEX_ELEMENT_STATE_length 0x00000002
+
+#define GEN75_SO_DECL_ENTRY_length 0x00000002
+
+#define GEN75_SO_DECL_length 0x00000001
+
+#define GEN75_SCISSOR_RECT_length 0x00000002
+
 struct GEN75_SCISSOR_RECT {
    uint32_t                                     ScissorRectangleYMin;
    uint32_t                                     ScissorRectangleXMin;
@@ -6974,6 +6990,8 @@ GEN75_SCISSOR_RECT_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN75_SF_CLIP_VIEWPORT_length 0x00000010
+
 struct GEN75_SF_CLIP_VIEWPORT {
    float                                        ViewportMatrixElementm00;
    float                                        ViewportMatrixElementm11;
@@ -7044,6 +7062,8 @@ GEN75_SF_CLIP_VIEWPORT_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN75_BLEND_STATE_length 0x00000002
+
 struct GEN75_BLEND_STATE {
    uint32_t                                     ColorBufferBlendEnable;
    uint32_t                                     IndependentAlphaBlendEnable;
@@ -7167,6 +7187,8 @@ GEN75_BLEND_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN75_CC_VIEWPORT_length 0x00000002
+
 struct GEN75_CC_VIEWPORT {
    float                                        MinimumDepth;
    float                                        MaximumDepth;
@@ -7188,6 +7210,8 @@ GEN75_CC_VIEWPORT_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN75_COLOR_CALC_STATE_length 0x00000006
+
 struct GEN75_COLOR_CALC_STATE {
    uint32_t                                     StencilReferenceValue;
    uint32_t                                     BackFaceStencilReferenceValue;
@@ -7241,6 +7265,8 @@ GEN75_COLOR_CALC_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN75_DEPTH_STENCIL_STATE_length 0x00000003
+
 struct GEN75_DEPTH_STENCIL_STATE {
    uint32_t                                     StencilTestEnable;
 #define     COMPAREFUNCTION_ALWAYS                             0
@@ -7337,6 +7363,10 @@ GEN75_DEPTH_STENCIL_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN75_MEMORY_OBJECT_CONTROL_STATE_length 0x00000001
+
+#define GEN75_VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS_length 0x00000001
+
 struct GEN75_VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS {
 #define     Highestpriority                                    0
 #define     Secondhighestpriority                              1
@@ -7365,6 +7395,8 @@ GEN75_VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS_pack(__gen_user_data *data, void
 
 }
 
+#define GEN75_INTERFACE_DESCRIPTOR_DATA_length 0x00000008
+
 struct GEN75_INTERFACE_DESCRIPTOR_DATA {
    uint32_t                                     KernelStartPointer;
 #define     Multiple                                           0
@@ -7449,6 +7481,10 @@ GEN75_INTERFACE_DESCRIPTOR_DATA_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN75_PALETTE_ENTRY_length 0x00000001
+
+#define GEN75_RENDER_SURFACE_STATE_length 0x00000008
+
 struct GEN75_RENDER_SURFACE_STATE {
 #define     SURFTYPE_1D                                        0
 #define     SURFTYPE_2D                                        1
@@ -7608,6 +7644,8 @@ GEN75_RENDER_SURFACE_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN75_SAMPLER_BORDER_COLOR_STATE_length 0x00000014
+
 struct GEN75_SAMPLER_BORDER_COLOR_STATE {
    uint32_t                                     BorderColorRedDX100GL;
    uint32_t                                     BorderColorAlpha;
@@ -7659,6 +7697,8 @@ GEN75_SAMPLER_BORDER_COLOR_STATE_pack(__gen_user_data *data, void * restrict dst
 
 }
 
+#define GEN75_SAMPLER_STATE_length 0x00000004
+
 struct GEN75_SAMPLER_STATE {
    uint32_t                                     SamplerDisable;
 #define     DX10OGL                                            0
index d13d92e39988f4bf4af40a97a039575b81cf3a48..34203d1d8201fb2893c0dc00a2f63e3b4f5dcebd 100644 (file)
@@ -5708,6 +5708,18 @@ GEN7_PIPE_CONTROL_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN7_3DSTATE_CONSTANT_BODY_length 0x00000006
+
+#define GEN7_VERTEX_BUFFER_STATE_length 0x00000004
+
+#define GEN7_VERTEX_ELEMENT_STATE_length 0x00000002
+
+#define GEN7_SO_DECL_ENTRY_length 0x00000002
+
+#define GEN7_SO_DECL_length 0x00000001
+
+#define GEN7_SCISSOR_RECT_length 0x00000002
+
 struct GEN7_SCISSOR_RECT {
    uint32_t                                     ScissorRectangleYMin;
    uint32_t                                     ScissorRectangleXMin;
@@ -5733,6 +5745,8 @@ GEN7_SCISSOR_RECT_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN7_SF_CLIP_VIEWPORT_length 0x00000010
+
 struct GEN7_SF_CLIP_VIEWPORT {
    float                                        ViewportMatrixElementm00;
    float                                        ViewportMatrixElementm11;
@@ -5803,6 +5817,8 @@ GEN7_SF_CLIP_VIEWPORT_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN7_BLEND_STATE_length 0x00000002
+
 struct GEN7_BLEND_STATE {
    uint32_t                                     ColorBufferBlendEnable;
    uint32_t                                     IndependentAlphaBlendEnable;
@@ -5926,6 +5942,8 @@ GEN7_BLEND_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN7_CC_VIEWPORT_length 0x00000002
+
 struct GEN7_CC_VIEWPORT {
    float                                        MinimumDepth;
    float                                        MaximumDepth;
@@ -5947,6 +5965,8 @@ GEN7_CC_VIEWPORT_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN7_COLOR_CALC_STATE_length 0x00000006
+
 struct GEN7_COLOR_CALC_STATE {
    uint32_t                                     StencilReferenceValue;
    uint32_t                                     BackFaceStencilReferenceValue;
@@ -6000,6 +6020,8 @@ GEN7_COLOR_CALC_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN7_DEPTH_STENCIL_STATE_length 0x00000003
+
 struct GEN7_DEPTH_STENCIL_STATE {
    uint32_t                                     StencilTestEnable;
 #define     COMPAREFUNCTION_ALWAYS                             0
@@ -6096,6 +6118,10 @@ GEN7_DEPTH_STENCIL_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN7_MEMORY_OBJECT_CONTROL_STATE_length 0x00000001
+
+#define GEN7_INTERFACE_DESCRIPTOR_DATA_length 0x00000008
+
 struct GEN7_INTERFACE_DESCRIPTOR_DATA {
    uint32_t                                     KernelStartPointer;
 #define     Multiple                                           0
@@ -6180,6 +6206,10 @@ GEN7_INTERFACE_DESCRIPTOR_DATA_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN7_PALETTE_ENTRY_length 0x00000001
+
+#define GEN7_SAMPLER_BORDER_COLOR_STATE_length 0x00000004
+
 struct GEN7_SAMPLER_BORDER_COLOR_STATE {
    uint32_t                                     BorderColorRedDX100GL;
    uint32_t                                     BorderColorAlpha;
@@ -6219,6 +6249,8 @@ GEN7_SAMPLER_BORDER_COLOR_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN7_SAMPLER_STATE_length 0x00000004
+
 struct GEN7_SAMPLER_STATE {
    uint32_t                                     SamplerDisable;
 #define     DX10OGL                                            0
index 844b0ce6aed230ab5aec6f06360ccedbc65a5773..59dbce8d4f691181862c7e75584aabf607147943 100644 (file)
@@ -7651,6 +7651,24 @@ GEN8_PIPE_CONTROL_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN8_3DSTATE_CONSTANT_BODY_length 0x0000000a
+
+#define GEN8_BINDING_TABLE_EDIT_ENTRY_length 0x00000001
+
+#define GEN8_GATHER_CONSTANT_ENTRY_length 0x00000001
+
+#define GEN8_VERTEX_BUFFER_STATE_length 0x00000004
+
+#define GEN8_VERTEX_ELEMENT_STATE_length 0x00000002
+
+#define GEN8_SO_DECL_ENTRY_length 0x00000002
+
+#define GEN8_SO_DECL_length 0x00000001
+
+#define GEN8_SF_OUTPUT_ATTRIBUTE_DETAIL_length 0x00000001
+
+#define GEN8_SCISSOR_RECT_length 0x00000002
+
 struct GEN8_SCISSOR_RECT {
    uint32_t                                     ScissorRectangleYMin;
    uint32_t                                     ScissorRectangleXMin;
@@ -7676,6 +7694,8 @@ GEN8_SCISSOR_RECT_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN8_SF_CLIP_VIEWPORT_length 0x00000010
+
 struct GEN8_SF_CLIP_VIEWPORT {
    float                                        ViewportMatrixElementm00;
    float                                        ViewportMatrixElementm11;
@@ -7763,6 +7783,8 @@ GEN8_SF_CLIP_VIEWPORT_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN8_BLEND_STATE_length 0x00000011
+
 struct GEN8_BLEND_STATE_ENTRY {
    uint32_t                                     LogicOpEnable;
    uint32_t                                     LogicOpFunction;
@@ -7848,6 +7870,10 @@ GEN8_BLEND_STATE_pack(__gen_user_data *data, void * restrict dst,
    GEN8_BLEND_STATE_ENTRY_pack(data, &dw[1], &values->Entry);
 }
 
+#define GEN8_BLEND_STATE_ENTRY_length 0x00000001
+
+#define GEN8_CC_VIEWPORT_length 0x00000002
+
 struct GEN8_CC_VIEWPORT {
    float                                        MinimumDepth;
    float                                        MaximumDepth;
@@ -7869,6 +7895,8 @@ GEN8_CC_VIEWPORT_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN8_COLOR_CALC_STATE_length 0x00000006
+
 struct GEN8_COLOR_CALC_STATE {
    uint32_t                                     StencilReferenceValue;
    uint32_t                                     BackFaceStencilReferenceValue;
@@ -7922,6 +7950,10 @@ GEN8_COLOR_CALC_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN8_MEMORY_OBJECT_CONTROL_STATE_length 0x00000001
+
+#define GEN8_VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS_length 0x00000001
+
 struct GEN8_VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS {
 #define     UseCacheabilityControlsfrompagetableUCwithFenceifcoherentcycle       0
 #define     UncacheableUCnoncacheable                          1
@@ -7956,6 +7988,8 @@ GEN8_VEB_DI_IECP_COMMAND_SURFACE_CONTROL_BITS_pack(__gen_user_data *data, void *
 
 }
 
+#define GEN8_INTERFACE_DESCRIPTOR_DATA_length 0x00000008
+
 struct GEN8_INTERFACE_DESCRIPTOR_DATA {
    uint32_t                                     KernelStartPointer;
    uint32_t                                     KernelStartPointerHigh;
@@ -8054,6 +8088,10 @@ GEN8_INTERFACE_DESCRIPTOR_DATA_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN8_PALETTE_ENTRY_length 0x00000001
+
+#define GEN8_RENDER_SURFACE_STATE_length 0x00000010
+
 struct GEN8_RENDER_SURFACE_STATE {
 #define     SURFTYPE_1D                                        0
 #define     SURFTYPE_2D                                        1
@@ -8263,6 +8301,8 @@ GEN8_RENDER_SURFACE_STATE_pack(__gen_user_data *data, void * restrict dst,
 
 }
 
+#define GEN8_SAMPLER_STATE_length 0x00000004
+
 struct GEN8_SAMPLER_STATE {
    uint32_t                                     SamplerDisable;
 #define     DX10OGL                                            0