diff options
author | George Kyriazis <[email protected]> | 2018-02-01 15:37:36 -0600 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-02-16 10:54:00 -0600 |
commit | cb4b604ebdbaf6fb819864c12c2ae45b83c411df (patch) | |
tree | d23e6e13871435d18bce45fdb7c01b1ff81df486 | |
parent | 5df4d987806fc14fc614a7f0bb110bb1939d7580 (diff) |
swr/rast: whitespace and comment cleanup
Reviewed-by: Bruce Cherniak <[email protected]>
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/api.cpp | 3 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/JitManager.h | 38 |
2 files changed, 21 insertions, 20 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp b/src/gallium/drivers/swr/rasterizer/core/api.cpp index 5e27e4d1f0b..e5e9897daa2 100644 --- a/src/gallium/drivers/swr/rasterizer/core/api.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/api.cpp @@ -921,7 +921,7 @@ void SetupPipeline(DRAW_CONTEXT *pDC) }; - // disable clipper if viewport transform is disabled + // Disable clipper if viewport transform is disabled if (pState->state.frontendState.vpTransformDisable) { pState->pfnProcessPrims = pfnBinner; @@ -930,6 +930,7 @@ void SetupPipeline(DRAW_CONTEXT *pDC) #endif } + // Disable rasterizer and backend if no pixel, no depth/stencil, and no attributes if ((pState->state.psState.pfnPixelShader == nullptr) && (pState->state.depthStencilState.depthTestEnable == FALSE) && (pState->state.depthStencilState.depthWriteEnable == FALSE) && diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h index ddd6864051c..3660249d421 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h +++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h @@ -136,38 +136,38 @@ struct JitManager JitCache mCache; // Need to be rebuilt after a JIT and before building new IR - llvm::Module* mpCurrentModule; - bool mIsModuleFinalized; - uint32_t mJitNumber; + llvm::Module* mpCurrentModule; + bool mIsModuleFinalized; + uint32_t mJitNumber; - uint32_t mVWidth; + uint32_t mVWidth; // Built in types. - llvm::Type* mInt8Ty; - llvm::Type* mInt32Ty; - llvm::Type* mInt64Ty; - llvm::Type* mFP32Ty; + llvm::Type* mInt8Ty; + llvm::Type* mInt32Ty; + llvm::Type* mInt64Ty; + llvm::Type* mFP32Ty; - llvm::Type* mSimtFP32Ty; - llvm::Type* mSimtInt32Ty; + llvm::Type* mSimtFP32Ty; + llvm::Type* mSimtInt32Ty; - llvm::Type* mSimdVectorInt32Ty; - llvm::Type* mSimdVectorTy; + llvm::Type* mSimdVectorInt32Ty; + llvm::Type* mSimdVectorTy; #if USE_SIMD16_SHADERS - llvm::Type* mSimd16FP32Ty; - llvm::Type* mSimd16Int32Ty; + llvm::Type* mSimd16FP32Ty; + llvm::Type* mSimd16Int32Ty; - llvm::Type* mSimd16VectorFP32Ty; - llvm::Type* mSimd16VectorInt32Ty; + llvm::Type* mSimd16VectorFP32Ty; + llvm::Type* mSimd16VectorInt32Ty; #endif // fetch shader types - llvm::FunctionType* mFetchShaderTy; + llvm::FunctionType* mFetchShaderTy; - JitInstructionSet mArch; - std::string mCore; + JitInstructionSet mArch; + std::string mCore; // Debugging support std::unordered_map<llvm::StructType*, llvm::DIType*> mDebugStructMap; |