Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Visual artifacts may occur when running some tessellation shaders compiled with the June 2010 HLSL compiler.


Symptoms

Visual artifacts or “cracking” may occur when running hull shaders compiled with the June 2010 HLSL compiler.  The compiler may incorrectly parallelize segments of processed shader code, resulting in incorrect code generation.  This problem occurs when one component of a processed shader expression in a hull shader is determined to be parallelizable, but another part is not.

Notes:
·         When this problem occurs, you do not receive an error message.
·         Because this problem occurs during an internal optimization step, it is not possible to reliably avoid this problem by modifying your HLSL code.

↑ Back to the top


Resolution

To resolve this problem, add the following code to the beginning of the hull shader that is experiencing this problem:

#if D3DX_VERSION == 0xa2b
#pragma ruledisable 0x0802405f
#endif

Notes:
·         This resolution is specific to the HLSL compiler that ships with the June 2010 release of the DirectX SDK (D3DCompiler_43.DLL).  Compiling this code with other versions of the compiler, or modifying the code in any way, may result in undefined behavior.
·         This resolution disables a specific parallelization step during compilation.  As a result, some hull shaders may exhibit decreased performance.
·         This problem will be addressed in a future release of the HLSL compiler.

↑ Back to the top


More Information

The June 2010 HLSL compiler is included in the DirectX SDK (June 2010) release. See the DirectX Developer Center for more information.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2448404
Revision : 1
Created on : 1/7/2017
Published on : 10/22/2010
Exists online : False
Views : 681