2019-01-10 22:36:57 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2019-01-10 22:36:57 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/gen11/hw_cmds_base.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/mem_obj/image.inl"
|
2019-01-10 22:36:57 +08:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
2021-12-09 04:25:47 +08:00
|
|
|
using Family = ICLFamily;
|
2019-01-10 22:36:57 +08:00
|
|
|
static auto gfxCore = IGFX_GEN11_CORE;
|
|
|
|
|
|
|
|
template <>
|
2021-02-12 01:29:50 +08:00
|
|
|
void ImageHw<Family>::appendSurfaceStateParams(RENDER_SURFACE_STATE *surfaceState, uint32_t rootDeviceIndex, bool useGlobalAtomics) {
|
2019-01-10 22:36:57 +08:00
|
|
|
if (hasAlphaChannel(&imageFormat)) {
|
|
|
|
surfaceState->setSampleTapDiscardDisable(RENDER_SURFACE_STATE::SAMPLE_TAP_DISCARD_DISABLE_ENABLE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace NEO
|
2021-12-09 04:25:47 +08:00
|
|
|
|
|
|
|
// factory initializer
|
|
|
|
#include "opencl/source/mem_obj/image_factory_init.inl"
|