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)
commitffc0aeb4ec90464ac124a4209e0027b34148833c
tree9adbf2649ad26de28b800b8745d88e3859c9766d
parentf36026ce2e5dfb5ea010e0d0988f140f50b666dd
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>
src/gallium/drivers/swr/rasterizer/core/state.h