mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-15 10:14:56 +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;
|
||||
}
|
||||
|
||||
|
||||
@@ -4115,6 +4115,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setDestinationSurfaceHeight(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x3fff);
|
||||
TheStructure.Common.DestinationSurfaceHeight = value - 1;
|
||||
}
|
||||
|
||||
@@ -4123,6 +4124,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setDestinationSurfaceWidth(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x3fff);
|
||||
TheStructure.Common.DestinationSurfaceWidth = value - 1;
|
||||
}
|
||||
|
||||
@@ -4155,11 +4157,12 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setDestinationSurfaceDepth(const uint32_t value) {
|
||||
TheStructure.Common.DestinationSurfaceDepth = value;
|
||||
UNRECOVERABLE_IF(value - 1 > 0x7ff);
|
||||
TheStructure.Common.DestinationSurfaceDepth = value - 1;
|
||||
}
|
||||
|
||||
inline uint32_t getDestinationSurfaceDepth() const {
|
||||
return (TheStructure.Common.DestinationSurfaceDepth);
|
||||
return (TheStructure.Common.DestinationSurfaceDepth + 1);
|
||||
}
|
||||
|
||||
inline void setDestinationHorizontalAlign(const uint32_t value) {
|
||||
@@ -4211,6 +4214,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setSourceSurfaceHeight(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x3fff);
|
||||
TheStructure.Common.SourceSurfaceHeight = value - 1;
|
||||
}
|
||||
|
||||
@@ -4219,6 +4223,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setSourceSurfaceWidth(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x3fff);
|
||||
TheStructure.Common.SourceSurfaceWidth = value - 1;
|
||||
}
|
||||
|
||||
@@ -4251,6 +4256,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setSourceSurfaceDepth(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x7ff);
|
||||
TheStructure.Common.SourceSurfaceDepth = value - 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -3872,6 +3872,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setDestinationSurfaceHeight(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x3fff);
|
||||
TheStructure.Common.DestinationSurfaceHeight = value - 1;
|
||||
}
|
||||
|
||||
@@ -3880,6 +3881,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setDestinationSurfaceWidth(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x3fff);
|
||||
TheStructure.Common.DestinationSurfaceWidth = value - 1;
|
||||
}
|
||||
|
||||
@@ -3912,6 +3914,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setDestinationSurfaceDepth(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x7ff);
|
||||
TheStructure.Common.DestinationSurfaceDepth = value - 1;
|
||||
}
|
||||
|
||||
@@ -3968,6 +3971,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setSourceSurfaceHeight(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x3fff);
|
||||
TheStructure.Common.SourceSurfaceHeight = value - 1;
|
||||
}
|
||||
|
||||
@@ -3976,6 +3980,7 @@ struct XY_BLOCK_COPY_BLT {
|
||||
}
|
||||
|
||||
inline void setSourceSurfaceWidth(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value - 1 > 0x3fff);
|
||||
TheStructure.Common.SourceSurfaceWidth = value - 1;
|
||||
}
|
||||
|
||||
@@ -4008,6 +4013,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