Skip to content

Commit 2580e3e

Browse files
weiyu-chengfxbot
authored andcommitted
Do not save/restore CR0 setting for IEEE macros
Change-Id: I7fa0704c51c2f5cebf0c808474ef8ce813b8b1d5
1 parent ce679af commit 2580e3e

File tree

3 files changed

+148
-195
lines changed

3 files changed

+148
-195
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3489,6 +3489,12 @@ void CEncoder::InitEncoder( bool canAbortOnSpill )
34893489
// Set up options. This must be done before creating any variable/instructions
34903490
// since some of the options affect IR building.
34913491

3492+
if (context->type == ShaderType::OPENCL_SHADER && context->m_floatDenormMode32 == FLOAT_DENORM_RETAIN &&
3493+
context->m_floatDenormMode64 == FLOAT_DENORM_RETAIN)
3494+
{
3495+
vbuilder->SetOption(vISA_hasRNEandDenorm, true);
3496+
}
3497+
34923498
// need to fold ret into the previous RTWrite/URBWrite/etc
34933499
if (context->type != ShaderType::OPENCL_SHADER && context->type != ShaderType::COMPUTE_SHADER)
34943500
{

0 commit comments

Comments
 (0)