mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Khronos Bug 15438 generic address space language_union test issues
This commit is contained in:
committed by
Kévin Petit
parent
063aeecd9d
commit
5238c0a0ab
@@ -648,19 +648,25 @@ int test_language_union(cl_device_id deviceID, cl_context context, cl_command_qu
|
||||
NL " __local U u;"
|
||||
NL
|
||||
NL " u.gintp = &g;"
|
||||
NL " work_group_barrier(CLK_LOCAL_MEM_FENCE);"
|
||||
NL " failures += !(isFenceValid(get_fence(u.gintp)));"
|
||||
NL " failures += !to_global(u.gintp);"
|
||||
NL " failures += (*(u.gintp) != 1);"
|
||||
NL
|
||||
NL " work_group_barrier(CLK_LOCAL_MEM_FENCE);"
|
||||
NL " u.lintp = &l;"
|
||||
NL " work_group_barrier(CLK_LOCAL_MEM_FENCE);"
|
||||
NL " failures += !(isFenceValid(get_fence(u.lintp)));"
|
||||
NL " failures += !to_local(u.lintp);"
|
||||
NL " failures += (*(u.lintp) != 2);"
|
||||
NL
|
||||
NL " u.pintp = &p;"
|
||||
NL " failures += !(isFenceValid(get_fence(u.pintp)));"
|
||||
NL " failures += !to_private(u.pintp);"
|
||||
NL " failures += (*(u.pintp) != 3);"
|
||||
NL " work_group_barrier(CLK_LOCAL_MEM_FENCE);"
|
||||
NL " if(get_local_id(0) == 0) {"
|
||||
NL " u.pintp = &p;"
|
||||
NL " failures += !(isFenceValid(get_fence(u.pintp)));"
|
||||
NL " failures += !to_private(u.pintp);"
|
||||
NL " failures += (*(u.pintp) != 3);"
|
||||
NL " }"
|
||||
NL
|
||||
NL " results[tid] = (failures == 0);"
|
||||
NL "}"
|
||||
|
||||
Reference in New Issue
Block a user