Skip to content

Commit cf76b17

Browse files
trbauerigcbot
authored andcommitted
fix potential div by zero
1 parent f35b024 commit cf76b17

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

IGC/Compiler/CISACodeGen/CShader.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3309,9 +3309,7 @@ bool CShader::CompileSIMDSizeInCommon(SIMDMode simdMode)
33093309

33103310
uint32_t CShader::GetShaderThreadUsageRate()
33113311
{
3312-
uint32_t grfNum = GRF_TOTAL_NUM;
3313-
3314-
return grfNum / GRF_TOTAL_NUM;
3312+
return 1;
33153313
}
33163314

33173315
CShader* CShaderProgram::GetShader(SIMDMode simd, ShaderDispatchMode mode)

0 commit comments

Comments
 (0)