File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ void ConstantCoalescing::ProcessBlock(
431
431
unsigned int bufId = 0 ;
432
432
BufferType bufType = DecodeAS4GFXResource (
433
433
ldRaw->getResourceValue ()->getType ()->getPointerAddressSpace (), directIdx, bufId);
434
- if (bufType != BINDLESS_READONLY )
434
+ if (( bufType != BINDLESS_CONSTANT_BUFFER) && (bufType != BINDLESS_TEXTURE) )
435
435
{
436
436
continue ;
437
437
}
Original file line number Diff line number Diff line change @@ -127,9 +127,15 @@ namespace IGC
127
127
temp.u32Val = addressSpaceOfPtr;
128
128
129
129
// Mark buffer as it is bindless for further processing
130
- if (bufferType == BufferType::RESOURCE ||
131
- bufferType == BufferType::CONSTANT_BUFFER ||
132
- bufferType == BufferType::UAV)
130
+ if (bufferType == BufferType::RESOURCE)
131
+ {
132
+ temp.bits .bufType = IGC::BINDLESS_TEXTURE + 1 ;
133
+ }
134
+ if (bufferType == BufferType::CONSTANT_BUFFER)
135
+ {
136
+ temp.bits .bufType = IGC::BINDLESS_CONSTANT_BUFFER + 1 ;
137
+ }
138
+ if (bufferType == BufferType::UAV)
133
139
{
134
140
temp.bits .bufType = IGC::BINDLESS + 1 ;
135
141
}
@@ -524,7 +530,8 @@ namespace IGC
524
530
{
525
531
case BufferType::CONSTANT_BUFFER:
526
532
case BufferType::RESOURCE:
527
- case BufferType::BINDLESS_READONLY:
533
+ case BufferType::BINDLESS_TEXTURE:
534
+ case BufferType::BINDLESS_CONSTANT_BUFFER:
528
535
case BufferType::STATELESS_READONLY:
529
536
case BufferType::SAMPLER:
530
537
return BufferAccessType::ACCESS_READ;
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ namespace IGC
201
201
202
202
inline bool IsBindless (BufferType t)
203
203
{
204
- return t == BINDLESS || t == BINDLESS_READONLY ;
204
+ return t == BINDLESS || t == BINDLESS_CONSTANT_BUFFER || t == BINDLESS_TEXTURE ;
205
205
}
206
206
207
207
bool IsUnsignedCmp (const llvm::CmpInst::Predicate Pred);
Original file line number Diff line number Diff line change @@ -104,7 +104,8 @@ namespace IGC
104
104
SLM,
105
105
POINTER,
106
106
BINDLESS,
107
- BINDLESS_READONLY,
107
+ BINDLESS_CONSTANT_BUFFER,
108
+ BINDLESS_TEXTURE,
108
109
SAMPLER,
109
110
BINDLESS_SAMPLER,
110
111
RENDER_TARGET,
You can’t perform that action at this time.
0 commit comments