Fix image from subbuffer offsets

- change 32 bit offset to size_t to account for offsets bigger
than 4 GB in SurfaceOffsets
- change ImageInfo offset to size_t type
- fix hostptr offseting in subbuffer creation - null hostptr
shouldn't be offseted

Change-Id: I18a5b8eacbd8c9e40c1f2effe5ded4fa8b453395
This commit is contained in:
Hoppe, Mateusz
2018-05-25 15:06:44 +02:00
committed by sys_ocldev
parent 95e5aba86a
commit d019638119
8 changed files with 106 additions and 13 deletions

View File

@@ -218,7 +218,7 @@ struct ImageInfo {
size_t rowPitch;
size_t slicePitch;
uint32_t qPitch;
uint32_t offset;
size_t offset;
uint32_t xOffset;
uint32_t yOffset;
uint32_t yOffsetForUVPlane;