Skip to content

Commit

Permalink
Update to spec 1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lisanna-dettwyler authored and bmyates committed May 6, 2024
1 parent d8256c4 commit 820ccd1
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 11 deletions.
12 changes: 10 additions & 2 deletions include/ze.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SPDX-License-Identifier: MIT
@file ze.py
@version v1.9-r1.9.1
@version v1.9-r1.9.3
"""
import platform
Expand Down Expand Up @@ -560,7 +560,7 @@ class ze_device_properties_t(Structure):
## structure (i.e. contains stype and pNext).
("type", ze_device_type_t), ## [out] generic device type
("vendorId", c_ulong), ## [out] vendor id from PCI configuration
("deviceId", c_ulong), ## [out] device id from PCI configuration
("deviceId", c_ulong), ## [out] device id from PCI configuration.
## Note, the device id uses little-endian format.
("flags", ze_device_property_flags_t), ## [out] 0 (none) or a valid combination of ::ze_device_property_flag_t
("subdeviceId", c_ulong), ## [out] sub-device id. Only valid if ::ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE
Expand Down Expand Up @@ -1243,6 +1243,9 @@ class ze_image_format_layout_v(IntEnum):
_444P = 40 ## Media Format: 444P. Format type and swizzle is ignored for this.
RGBP = 41 ## Media Format: RGBP. Format type and swizzle is ignored for this.
BRGP = 42 ## Media Format: BRGP. Format type and swizzle is ignored for this.
_8_8_8 = 43 ## 3-component 8-bit layout
_16_16_16 = 44 ## 3-component 16-bit layout
_32_32_32 = 45 ## 3-component 32-bit layout

class ze_image_format_layout_t(c_int):
def __str__(self):
Expand Down Expand Up @@ -3722,6 +3725,9 @@ def __str__(self):
class ze_image_bindless_exp_flags_v(IntEnum):
BINDLESS = ZE_BIT(0) ## Bindless images are created with ::zeImageCreate. The image handle
## created with this flag is valid on both host and device.
SAMPLED_IMAGE = ZE_BIT(1) ## Bindless sampled images are created with ::zeImageCreate by combining
## BINDLESS and SAMPLED_IMAGE.
## Create sampled image view from bindless unsampled image using SAMPLED_IMAGE.

class ze_image_bindless_exp_flags_t(c_int):
def __str__(self):
Expand All @@ -3743,6 +3749,8 @@ class ze_image_bindless_exp_desc_t(Structure):
## When the flag is passed to ::zeImageCreate, then only the memory for
## the image is allocated.
## Additional image handles can be created with ::zeImageViewCreateExt.
## When ::ZE_IMAGE_BINDLESS_EXP_FLAG_SAMPLED_IMAGE flag is passed,
## ::ze_sampler_desc_t must be attached via pNext member of ::ze_image_bindless_exp_desc_t.
]

###############################################################################
Expand Down
12 changes: 10 additions & 2 deletions include/ze_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file ze_api.h
* @version v1.9-r1.9.1
* @version v1.9-r1.9.3
*
*/
#ifndef _ZE_API_H
Expand Down Expand Up @@ -1443,7 +1443,7 @@ typedef struct _ze_device_properties_t
///< structure (i.e. contains stype and pNext).
ze_device_type_t type; ///< [out] generic device type
uint32_t vendorId; ///< [out] vendor id from PCI configuration
uint32_t deviceId; ///< [out] device id from PCI configuration
uint32_t deviceId; ///< [out] device id from PCI configuration.
///< Note, the device id uses little-endian format.
ze_device_property_flags_t flags; ///< [out] 0 (none) or a valid combination of ::ze_device_property_flag_t
uint32_t subdeviceId; ///< [out] sub-device id. Only valid if ::ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE
Expand Down Expand Up @@ -4697,6 +4697,9 @@ typedef enum _ze_image_format_layout_t
ZE_IMAGE_FORMAT_LAYOUT_444P = 40, ///< Media Format: 444P. Format type and swizzle is ignored for this.
ZE_IMAGE_FORMAT_LAYOUT_RGBP = 41, ///< Media Format: RGBP. Format type and swizzle is ignored for this.
ZE_IMAGE_FORMAT_LAYOUT_BRGP = 42, ///< Media Format: BRGP. Format type and swizzle is ignored for this.
ZE_IMAGE_FORMAT_LAYOUT_8_8_8 = 43, ///< 3-component 8-bit layout
ZE_IMAGE_FORMAT_LAYOUT_16_16_16 = 44, ///< 3-component 16-bit layout
ZE_IMAGE_FORMAT_LAYOUT_32_32_32 = 45, ///< 3-component 32-bit layout
ZE_IMAGE_FORMAT_LAYOUT_FORCE_UINT32 = 0x7fffffff

} ze_image_format_layout_t;
Expand Down Expand Up @@ -10545,6 +10548,9 @@ typedef enum _ze_image_bindless_exp_flag_t
{
ZE_IMAGE_BINDLESS_EXP_FLAG_BINDLESS = ZE_BIT(0), ///< Bindless images are created with ::zeImageCreate. The image handle
///< created with this flag is valid on both host and device.
ZE_IMAGE_BINDLESS_EXP_FLAG_SAMPLED_IMAGE = ZE_BIT(1), ///< Bindless sampled images are created with ::zeImageCreate by combining
///< BINDLESS and SAMPLED_IMAGE.
///< Create sampled image view from bindless unsampled image using SAMPLED_IMAGE.
ZE_IMAGE_BINDLESS_EXP_FLAG_FORCE_UINT32 = 0x7fffffff

} ze_image_bindless_exp_flag_t;
Expand All @@ -10564,6 +10570,8 @@ typedef struct _ze_image_bindless_exp_desc_t
///< When the flag is passed to ::zeImageCreate, then only the memory for
///< the image is allocated.
///< Additional image handles can be created with ::zeImageViewCreateExt.
///< When ::ZE_IMAGE_BINDLESS_EXP_FLAG_SAMPLED_IMAGE flag is passed,
///< ::ze_sampler_desc_t must be attached via pNext member of ::ze_image_bindless_exp_desc_t.

} ze_image_bindless_exp_desc_t;

Expand Down
2 changes: 1 addition & 1 deletion include/ze_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file ze_ddi.h
* @version v1.9-r1.9.1
* @version v1.9-r1.9.3
*
*/
#ifndef _ZE_DDI_H
Expand Down
2 changes: 1 addition & 1 deletion include/zes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SPDX-License-Identifier: MIT
@file zes.py
@version v1.9-r1.9.1
@version v1.9-r1.9.3
"""
import platform
Expand Down
2 changes: 1 addition & 1 deletion include/zes_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zes_api.h
* @version v1.9-r1.9.1
* @version v1.9-r1.9.3
*
*/
#ifndef _ZES_API_H
Expand Down
2 changes: 1 addition & 1 deletion include/zes_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zes_ddi.h
* @version v1.9-r1.9.1
* @version v1.9-r1.9.3
*
*/
#ifndef _ZES_DDI_H
Expand Down
2 changes: 1 addition & 1 deletion include/zet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SPDX-License-Identifier: MIT
@file zet.py
@version v1.9-r1.9.1
@version v1.9-r1.9.3
"""
import platform
Expand Down
2 changes: 1 addition & 1 deletion include/zet_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zet_api.h
* @version v1.9-r1.9.1
* @version v1.9-r1.9.3
*
*/
#ifndef _ZET_API_H
Expand Down
2 changes: 1 addition & 1 deletion include/zet_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-License-Identifier: MIT
*
* @file zet_ddi.h
* @version v1.9-r1.9.1
* @version v1.9-r1.9.3
*
*/
#ifndef _ZET_DDI_H
Expand Down

0 comments on commit 820ccd1

Please sign in to comment.