Add check in XY_BLOCK_COPY_BLT surface width, height & depth setters

Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
This commit is contained in:
Rafal Maziejuk
2022-03-02 12:47:15 +00:00
committed by Compute-Runtime-Automation
parent 5ae968f2fd
commit 6658768149
5 changed files with 44 additions and 2 deletions

View File

@@ -3838,6 +3838,7 @@ struct XY_BLOCK_COPY_BLT {
}
inline void setDestinationSurfaceHeight(const uint32_t value) {
UNRECOVERABLE_IF(value - 1 > 0x3fff);
TheStructure.Common.DestinationSurfaceHeight = value - 1;
}
@@ -3846,6 +3847,7 @@ struct XY_BLOCK_COPY_BLT {
}
inline void setDestinationSurfaceWidth(const uint32_t value) {
UNRECOVERABLE_IF(value - 1 > 0x3fff);
TheStructure.Common.DestinationSurfaceWidth = value - 1;
}
@@ -3878,6 +3880,7 @@ struct XY_BLOCK_COPY_BLT {
}
inline void setDestinationSurfaceDepth(const uint32_t value) {
UNRECOVERABLE_IF(value - 1 > 0x7ff);
TheStructure.Common.DestinationSurfaceDepth = value - 1;
}
@@ -3934,6 +3937,7 @@ struct XY_BLOCK_COPY_BLT {
}
inline void setSourceSurfaceHeight(const uint32_t value) {
UNRECOVERABLE_IF(value - 1 > 0x3fff);
TheStructure.Common.SourceSurfaceHeight = value - 1;
}
@@ -3942,6 +3946,7 @@ struct XY_BLOCK_COPY_BLT {
}
inline void setSourceSurfaceWidth(const uint32_t value) {
UNRECOVERABLE_IF(value - 1 > 0x3fff);
TheStructure.Common.SourceSurfaceWidth = value - 1;
}
@@ -3974,6 +3979,7 @@ struct XY_BLOCK_COPY_BLT {
}
inline void setSourceSurfaceDepth(const uint32_t value) {
UNRECOVERABLE_IF(value - 1 > 0x7ff);
TheStructure.Common.SourceSurfaceDepth = value - 1;
}