File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -456,6 +456,9 @@ ScalarVisaModule::GetVariableLocation(const llvm::Instruction* pInst) const
456
456
index = m_pShader->m_pBtiLayout ->GetTextureIndex (index);
457
457
IGC_ASSERT_MESSAGE (index < TEXTURE_REGISTER_NUM, " Bad texture index" );
458
458
return VISAVariableLocation (TEXTURE_REGISTER_BEGIN + index, this );
459
+ case BindlessUAVResourceType:
460
+ IGC_ASSERT_MESSAGE (index < TEXTURE_REGISTER_NUM, " Bad texture index" );
461
+ return VISAVariableLocation (TEXTURE_REGISTER_BEGIN + index, this );
459
462
default :
460
463
IGC_ASSERT_MESSAGE (0 , " Unknown texture resource" );
461
464
return VISAVariableLocation (this );
Original file line number Diff line number Diff line change
1
+ // UNSUPPORTED: system-windows
2
+
3
+ // RUN: ocloc compile -file %s -options "-g" -internal_options "-cl-intel-use-bindless-mode" -device dg2 2>&1 | FileCheck %s
4
+
5
+ // Check that kernel build is successful in "-g" mode.
6
+
7
+ // CHECK: Build succeeded
8
+
9
+ const sampler_t sampler =
10
+ CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST ;
11
+
12
+ kernel void test (const global float * a ,
13
+ global float * c ,
14
+ read_only image2d_t input ,
15
+ sampler_t sampler
16
+ ) {
17
+ const int gid = get_global_id (0 );
18
+
19
+ int2 coord = {get_global_id (0 ), get_global_id (1 )};
20
+ float4 data = read_imagef (input , coord );
21
+ c [gid ] = a [gid ] + data .x ;
22
+ }
You can’t perform that action at this time.
0 commit comments