Correct expectations of horizontal alignment programmed value

change value in mock to verify non-default value programming

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-01-19 17:03:53 +00:00
committed by Compute-Runtime-Automation
parent 3162c52250
commit ac39f424ce
8 changed files with 16 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2021 Intel Corporation
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -43,7 +43,7 @@ class MockGmmResourceInfo : public GmmResourceInfo {
uint32_t getHAlign() override { return 4u; }
uint32_t getHAlignSurfaceState() override { return 1u; }
uint32_t getHAlignSurfaceState() override { return getHAlignSurfaceStateResult; }
uint32_t getVAlignSurfaceState() override { return 1u; }
@@ -111,6 +111,7 @@ class MockGmmResourceInfo : public GmmResourceInfo {
GMM_RES_COPY_BLT requestedResCopyBlt = {};
uint32_t cpuBltCalled = 0u;
uint8_t cpuBltResult = 1u;
static constexpr uint32_t getHAlignSurfaceStateResult = 2u;
protected:
MockGmmResourceInfo();