From cb4b604ebdbaf6fb819864c12c2ae45b83c411df Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Thu, 1 Feb 2018 15:37:36 -0600 Subject: [PATCH] swr/rast: whitespace and comment cleanup Reviewed-by: Bruce Cherniak --- .../drivers/swr/rasterizer/core/api.cpp | 3 +- .../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 mDebugStructMap; -- 2.30.2