[Piglit] PIGLIT_CL_ENUM_NUM(cl_device_type, env->version) return zero

Jose Luis Cercós jlcercos at gmail.com
Wed May 25 15:59:15 UTC 2016


Hi community!

I have a some kind of strange error. When I execute the test
tests/cl/api/get-device-ids.c, num_device_types is always zero (please, not
that such variable should not depend on the hardware/drivers).

To check what is going on, I'm printing some variables:

env->version = 12
piglit_cl_device_type_num_1_0 = 0
piglit_cl_device_type_num_1_1 = 0
piglit_cl_device_type_num_1_2 = 0
num_device_types = 0

So it seems that piglit_cl_device_type_num_1_x variables have not be set at
all. However, I checked that the test is linked against
lib/libpiglitutil.so.0.

I'm using the last git version from here (Ubuntu 15.10):
git://anongit.freedesktop.org/git/piglit

I did not check other expansions of PIGLIT_CL_ENUM_NUM.

Any hint on what is going wrong will be welcomed.

Thanks!
Pepe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160525/3413cf52/attachment.html>


More information about the Piglit mailing list