Files
compute-runtime/opencl/source/helpers/mipmap.h
kamdiedrich fa8e720f9e Reorganization directory structure [1/n]
Change-Id: Id1a94577437a4826a32411869f516fec20314ec0
2020-02-22 21:56:09 +01:00

31 lines
547 B
C++

/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "CL/cl.h"
#include <cstdint>
namespace NEO {
class MemObj;
class Image;
uint32_t getMipLevelOriginIdx(cl_mem_object_type imageType);
uint32_t findMipLevel(cl_mem_object_type imageType, const size_t *origin);
inline bool isMipMapped(const cl_image_desc &imgDesc) {
return (imgDesc.num_mip_levels > 1);
}
bool isMipMapped(const MemObj *memObj);
uint32_t getMipOffset(Image *image, const size_t *origin);
} // namespace NEO