File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4326,10 +4326,11 @@ namespace IGC
4326
4326
4327
4327
CodeGenContext* pCtx = m_program->GetContext ();
4328
4328
bool needsDenormRetainForMathInstructions =
4329
- (pCtx->m_floatDenormMode16 == FLOAT_DENORM_FLUSH_TO_ZERO) ||
4330
- (pCtx->m_floatDenormMode32 == FLOAT_DENORM_FLUSH_TO_ZERO) ||
4331
- (pCtx->m_floatDenormMode64 == FLOAT_DENORM_FLUSH_TO_ZERO) ||
4332
- (pCtx->m_floatDenormModeBFTF == FLOAT_DENORM_FLUSH_TO_ZERO);
4329
+ (context->type != ShaderType::OPENCL_SHADER) &&
4330
+ ((pCtx->m_floatDenormMode16 == FLOAT_DENORM_FLUSH_TO_ZERO) ||
4331
+ (pCtx->m_floatDenormMode32 == FLOAT_DENORM_FLUSH_TO_ZERO) ||
4332
+ (pCtx->m_floatDenormMode64 == FLOAT_DENORM_FLUSH_TO_ZERO) ||
4333
+ (pCtx->m_floatDenormModeBFTF == FLOAT_DENORM_FLUSH_TO_ZERO));
4333
4334
4334
4335
if (m_program->m_Platform ->hasCorrectlyRoundedMacros () && needsDenormRetainForMathInstructions)
4335
4336
{
You can’t perform that action at this time.
0 commit comments