mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 15:50:38 +08:00
Limit blitter max height.
Change-Id: I957d5501cac8b837391f88d6e20d1bf47e681ae5 Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
0884a341c8
commit
3243b9d69d
@@ -1241,3 +1241,8 @@ TEST_F(ScratchSpaceControllerTest, whenScratchSpaceControllerIsDestroyedThenItRe
|
||||
EXPECT_NE(nullptr, scratchSpaceController.privateScratchAllocation);
|
||||
//no memory leak is expected
|
||||
}
|
||||
|
||||
TEST(BcsConstantsTests, givenBlitConstantsThenTheyHaveDesiredValues) {
|
||||
EXPECT_EQ(BlitterConstants::maxBlitWidth, 0x7FC0u);
|
||||
EXPECT_EQ(BlitterConstants::maxBlitHeight, 0x3FC0u);
|
||||
}
|
||||
|
||||
@@ -50,8 +50,8 @@ constexpr uint64_t maxSvmAddress = is64bit ? maxNBitValue(47) : maxNBitValue(32)
|
||||
} // namespace MemoryConstants
|
||||
|
||||
namespace BlitterConstants {
|
||||
constexpr uint64_t maxBlitWidth = 0x7FC0; // 0x7FFF aligned to cacheline size
|
||||
constexpr uint64_t maxBlitHeight = 0x7FFF;
|
||||
constexpr uint64_t maxBlitWidth = 0x7FC0; // 0x7FFF aligned to cacheline size
|
||||
constexpr uint64_t maxBlitHeight = 0x3FC0; // 0x4000 aligned to cacheline size
|
||||
enum class BlitDirection : uint32_t {
|
||||
BufferToHostPtr,
|
||||
HostPtrToBuffer,
|
||||
|
||||
Reference in New Issue
Block a user