Skip to content

Commit 326c0c0

Browse files
bcheng0127sys_zuul
authored andcommitted
Send security issue
Change-Id: I6f4cbba0858121d2d0bfe8a932a995f5205248ac
1 parent 2f0a2a4 commit 326c0c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3716,7 +3716,9 @@ namespace IGC
37163716

37173717
bool clearHDCWritesBeforeEOT = m_program->m_DriverInfo->UsesSparseAliasedResidency() &&
37183718
context->platform.WaInsertHDCFenceBeforeEOTWhenSparseAliasedResources();
3719-
clearHDCWritesBeforeEOT |= context->type == ShaderType::PIXEL_SHADER &&
3719+
clearHDCWritesBeforeEOT |= ((context->type == ShaderType::PIXEL_SHADER) ||
3720+
(context->type == ShaderType::COMPUTE_SHADER) ||
3721+
(context->type == ShaderType::OPENCL_SHADER)) &&
37203722
context->platform.NeedsHDCFenceBeforeEOTInPixelShader();
37213723
clearHDCWritesBeforeEOT |= IGC_IS_FLAG_ENABLED(ForceMemoryFenceBeforeEOT);
37223724

@@ -3725,6 +3727,7 @@ namespace IGC
37253727
SaveOption(vISA_clearHDCWritesBeforeEOT, true);
37263728
}
37273729

3730+
37283731
// Disable multi-threaded latencies in the vISA scheduler when not in 3D
37293732
if (context->type == ShaderType::OPENCL_SHADER)
37303733
{

0 commit comments

Comments
 (0)