Move GMM-OCL types conversions to new helper + includes cleanup

Change-Id: I13e5917a32a5cd894ee42a848407fe20bf1daa06
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-12-03 14:43:03 +01:00
committed by sys_ocldev
parent 6847893e02
commit ec21f06427
38 changed files with 124 additions and 108 deletions

View File

@@ -5,35 +5,11 @@
*
*/
#include "core/helpers/hw_info.h"
#
#include "runtime/gmm_helper/gmm.h"
#include "runtime/gmm_helper/gmm_helper.h"
#include "runtime/gmm_helper/resource_info.h"
#include "runtime/helpers/surface_formats.h"
#include "GL/gl.h"
#include "GL/glext.h"
using namespace NEO;
namespace NEO {
GMM_CUBE_FACE_ENUM GmmHelper::getCubeFaceIndex(uint32_t target) {
switch (target) {
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
return __GMM_CUBE_FACE_NEG_X;
case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
return __GMM_CUBE_FACE_POS_X;
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
return __GMM_CUBE_FACE_NEG_Y;
case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
return __GMM_CUBE_FACE_POS_Y;
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
return __GMM_CUBE_FACE_NEG_Z;
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
return __GMM_CUBE_FACE_POS_Z;
}
return __GMM_NO_CUBE_MAP;
}
} // namespace NEO
void Gmm::applyAuxFlagsForImage(ImageInfo &imgInfo) {}
void Gmm::applyAuxFlagsForBuffer(bool preferRenderCompression) {}