소스 검색

swr/rast: Disable use of __forceinline by default

- Was not useful to inline in release builds
- FORCEINLINE can be used if absolutely necessary

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
tags/19.1-branchpoint
Alok Hota 7 년 전
부모
커밋
78bab66479
1개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 12
    1
      src/gallium/drivers/swr/rasterizer/common/os.h

+ 12
- 1
src/gallium/drivers/swr/rasterizer/common/os.h 파일 보기

@@ -59,8 +59,16 @@
#define INLINE inline
#pragma inline_depth(0)
#else
#define INLINE __forceinline
// Use of __forceinline increases compile time dramatically in release builds
// and provides almost 0 measurable benefit. Disable until we have a compelling
// use-case
// #define INLINE __forceinline
#define INLINE inline
#endif
#ifndef FORCEINLINE
#define FORCEINLINE __forceinline
#endif

#define DEBUGBREAK __debugbreak()

#define PRAGMA_WARNING_PUSH_DISABLE(...) \
@@ -124,6 +132,9 @@ typedef unsigned int DWORD;
#ifndef INLINE
#define INLINE __inline
#endif
#ifndef FORCEINLINE
#define FORCEINLINE INLINE
#endif
#define DEBUGBREAK asm("int $3")

#if !defined(__CYGWIN__)

Loading…
취소
저장