diff options
author | George Kyriazis <george.kyriazis@intel.com> | 2018-03-19 17:46:13 -0500 |
---|---|---|
committer | George Kyriazis <george.kyriazis@intel.com> | 2018-04-18 10:51:38 -0500 |
commit | ffc0aeb4ec90464ac124a4209e0027b34148833c (patch) | |
tree | 9adbf2649ad26de28b800b8745d88e3859c9766d /src | |
parent | f36026ce2e5dfb5ea010e0d0988f140f50b666dd (diff) |
swr/rast: Simplify #define usage in gen source file
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/state.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/state.h b/src/gallium/drivers/swr/rasterizer/core/state.h index 47ffacf53f..084ca54837 100644 --- a/src/gallium/drivers/swr/rasterizer/core/state.h +++ b/src/gallium/drivers/swr/rasterizer/core/state.h @@ -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. }; |