Skip to content

Commit 5494b21

Browse files
authored
adding support for user defined pitch for 2D linear pitched images (#396)
* adding support for user defined pitch for 2D linear pitched images * typo fix * updated documentation to indicate pitch units * fix symbol
1 parent 7c1d6c3 commit 5494b21

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

scripts/core/EXT_EXP_BindlessImages.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ API
2727
* ${x}_device_pitched_alloc_exp_properties_t
2828
* ${x}_image_bindless_exp_desc_t
2929
* ${x}_image_pitched_exp_desc_t
30+
* ${x}_custom_pitch_exp_desc_t
3031
* ${x}_pitched_alloc_2dimage_linear_pitch_exp_info_t
3132

3233
* Functions

scripts/core/bindlessimages.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ base: $x_base_properties_t
9494
members:
9595
- type: size_t
9696
name: pitchAlign
97-
desc: "[out] Required pitch Aligment."
97+
desc: "[out] Required pitch Aligment in Bytes."
9898
- type: size_t
9999
name: maxSupportedPitch
100-
desc: "[out] Maximum allowed pitch."
100+
desc: "[out] Maximum allowed pitch in Bytes."
101101
details:
102-
- "This structure may be passed to $xDeviceGetImageProperties via the pNext member of x_device_pitched_alloc_exp_properties_t."
102+
- "This structure may be passed to $xDeviceGetImageProperties in conjunction with the $x_device_pitched_alloc_exp_properties_t via its pNext member"
103103
--- #--------------------------------------------------------------------------
104104
type: function
105105
desc: "Retrieves pitch information that can be used to allocate USM memory for a given image."
@@ -157,3 +157,19 @@ params:
157157
- type: "uint64_t*"
158158
name: pDeviceOffset
159159
desc: "[out] bindless device offset for image"
160+
--- #--------------------------------------------------------------------------
161+
type: struct
162+
desc: "Specify user defined pitch for pitched linear image allocations. This structure may be passed to $xImageCreate in conjunction with $x_image_pitched_exp_desc_t via its pNext member"
163+
class: $xDevice
164+
version: "1.15"
165+
name: $x_custom_pitch_exp_desc_t
166+
base: $x_base_desc_t
167+
members:
168+
- type: size_t
169+
name: rowPitch
170+
desc: |
171+
[in] user programmed aligned pitch for pitched linear image allocations. This pitch should satisfy the pitchAlign requirement in $x_pitched_alloc_2dimage_linear_pitch_exp_info_t
172+
- type: size_t
173+
name: slicePitch
174+
desc: |
175+
[in] user programmed slice pitch , must be multiple of rowPitch. For 2D image arrary or a slice of a 3D image array - this pitch should be >= rowPitch * image_height . For 1D iamge array >= rowPitch.

scripts/core/common.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,10 @@ etors:
689689
desc: $x_device_usablemem_size_ext_properties_t
690690
version: "1.15"
691691
value: "0x00020041"
692+
- name: CUSTOM_PITCH_EXP_DESC
693+
desc: $x_custom_pitch_exp_desc_t
694+
version: "1.15"
695+
value: "0x00020042"
692696
--- #--------------------------------------------------------------------------
693697
type: enum
694698
desc: "External memory type flags"

0 commit comments

Comments
 (0)