Bug 104477 - get_image_dim returns 0 when targetting a shared gl texture (cl_khr_gl_sharing)
Summary: get_image_dim returns 0 when targetting a shared gl texture (cl_khr_gl_sharing)
Status: RESOLVED MOVED
Alias: None
Product: Beignet
Classification: Unclassified
Component: Beignet (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Zhigang Gong
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-03 11:57 UTC by Russell Newman
Modified: 2018-10-12 21:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Russell Newman 2018-01-03 11:57:03 UTC
When using a shared gl texture in a kernel with the cl_khr_gl_sharing extension, functions to obtain the resolution of the texture return 0.

i.e.
get_image_dim
get_image_width
get_image_height

functions in kernel all return 0. This was with the gl texture marked as write_only.

The input texture (read_only) to the kernel was not a gl texture and the image dimension functions returned the correct value.

Version of Beignet: 1.3.2-1
Target hardware: UP Squared board - Intel N4200 (Apollo lake)
Linux info: Ubilinux 4 (4.9 kernel)
Comment 1 GitLab Migration User 2018-10-12 21:24:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/beignet/beignet/issues/25.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.