swr/rast: Simplify #define usage in gen source file
authorGeorge Kyriazis <george.kyriazis@intel.com>
Mon, 19 Mar 2018 22:46:13 +0000 (17:46 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 18 Apr 2018 15:51:38 +0000 (10:51 -0500)
Removed preprocessor defines from structures passed to LLVM jitted code.

The python scripts do not understand the preprocessor defines and ignores
them. So for fields that are compiled out due to a preprocessor define
the LLVM script accounts for them anyway because it doesn't know what
the defines are set to. The sanitize defines for open source are fine
in that they're safely used.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/state.h

index 47ffacf53ff6589a1ada11eb36dc84b4666a3c2a..084ca5483751aa20d665eb529fd034e6971adb74 100644 (file)
@@ -234,13 +234,12 @@ struct SWR_VS_CONTEXT
     uint32_t InstanceID;        // IN: Instance ID, constant across all verts of the SIMD
     simdscalari VertexID;       // IN: Vertex ID
     simdscalari mask;           // IN: Active mask for shader
-#if USE_SIMD16_FRONTEND
+
+    // SIMD16 Frontend fields.
     uint32_t AlternateOffset;   // IN: amount to offset for interleaving even/odd simd8 in simd16vertex output
-#if USE_SIMD16_VS
     simd16scalari mask16;       // IN: Active mask for shader (16-wide)
     simd16scalari VertexID16;   // IN: Vertex ID (16-wide)
-#endif
-#endif
+
     SWR_SHADER_STATS stats;     // OUT: shader statistics used for archrast.
 };