Skip to content

[Intel] Counter test with arrays has unexpected results on Intel #376

@hekota

Description

@hekota

This issue is for tracking of inc_counter_array.test unexpected results on Intel.

HLSL:

RWStructuredBuffer<int> Out[4] : register(u0);

[numthreads(4,1,1)]
void main(uint GI : SV_GroupIndex) {
  for (int i = 0; i < GI; i++)
    Out[GI].IncrementCounter();

  Out[GI][0] = Out[GI].IncrementCounter();
}

Expected result:

Counters: [ 1, 2, 3, 4 ]
Data:
- [ 0x0 ]
- [ 0x1 ]
- [ 0x2 ]
- [ 0x3 ]

Actual result:

Counters: [ 4, 6, 6, 4 ] 
Data: 
- [ 0x0 ] 
- [ 0x3 ] 
- [ 0x4 ] 
- [ 0x3 ] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    test-issueBug that is likely a test issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions