Skip to content

Commit f6b7739

Browse files
priyankarpsys_zuul
authored andcommitted
internal change
Change-Id: I8083cbb29c754a371a5aa6ad30374308440552f2
1 parent dab494d commit f6b7739

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.hpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ namespace IGC
348348
}
349349
else if (bufType == UAV)
350350
{
351-
m_uavLoaded |= BIT(typeBti);
351+
m_uavLoaded |= (uint64_t)1 << (typeBti);
352352
}
353353
else if (bufType == RENDER_TARGET)
354354
{
@@ -380,7 +380,8 @@ namespace IGC
380380
}
381381
else if (bufType == UAV)
382382
{
383-
m_uavLoaded |= BITMASK_RANGE(0, m_pBtiLayout->GetUavIndexSize());
383+
//m_uavLoaded |= BITMASK_RANGE(0, m_pBtiLayout->GetUavIndexSize());
384+
m_uavLoaded |= ((~((0xffffffffffffffff) << (m_pBtiLayout->GetUavIndexSize() + 1))) & (~((0xffffffffffffffff) << 0)));
384385
}
385386
else if (bufType == RENDER_TARGET)
386387
{
@@ -497,12 +498,12 @@ namespace IGC
497498
CVariable* m_RETV;
498499

499500
std::vector<USC::SConstantGatherEntry> gatherMap;
500-
uint m_ConstantBufferLength;
501-
uint m_constantBufferMask;
502-
uint m_constantBufferLoaded;
503-
uint m_uavLoaded;
504-
uint m_shaderResourceLoaded[4];
505-
uint m_renderTargetLoaded;
501+
uint m_ConstantBufferLength;
502+
uint m_constantBufferMask;
503+
uint m_constantBufferLoaded;
504+
uint64_t m_uavLoaded;
505+
uint m_shaderResourceLoaded[4];
506+
uint m_renderTargetLoaded;
506507

507508
int m_cbSlot;
508509
uint m_statelessCBPushedSize;

IGC/Compiler/CodeGenPublic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ namespace IGC
273273

274274
unsigned int NOSBufferSize = 0;
275275
unsigned int ConstantBufferLoaded = 0;
276-
unsigned int UavLoaded = 0;
276+
uint64_t UavLoaded = 0;
277277
unsigned int ShaderResourceLoaded[4];
278278
unsigned int RenderTargetLoaded = 0;
279279

0 commit comments

Comments
 (0)