1/*
2 * Copyright (C) 2019-2021 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8#include "shared/source/gmm_helper/gmm.h"
9#include "shared/source/gmm_helper/resource_info.h"
10
11#include "opencl/source/mem_obj/image.h"
12
13namespace NEO {
14template <>
15void ImageHw<Family>::appendSurfaceStateDepthParams(RENDER_SURFACE_STATE *surfaceState, Gmm *gmm) {
16    if (gmm) {
17        const bool isDepthResource = gmm->gmmResourceInfo->getResourceFlags()->Gpu.Depth;
18        surfaceState->setDepthStencilResource(isDepthResource);
19    }
20}
21} // namespace NEO