mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
5ae968f2fd
commit
6658768149
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user