Home
last modified time | relevance | path

Searched refs:m_format (Results 1 – 25 of 104) sorted by relevance

12345

/external/deqp/modules/internal/
DditAstcTests.cpp50 const CompressedTexFormat m_format; member in dit::__anon493c622e0111::AstcCase
64 , m_format (format) in AstcCase()
110 if (astc::isBlockTestTypeHDROnly(blockTestType) && isAstcSRGBFormat(m_format)) in iterate()
114 astc::generateBlockCaseTestData(generatedData, m_format, blockTestType); in iterate()
116 testDecompress(m_format, getNumBlocksFromBytes(generatedData.size()), &generatedData[0]); in iterate()
124 …verifyBlocksValid(m_format, TexDecompressionParams::ASTCMODE_LDR, getNumBlocksFromBytes(generatedD… in iterate()
126 if (!isAstcSRGBFormat(m_format)) in iterate()
127 …verifyBlocksValid(m_format, TexDecompressionParams::ASTCMODE_HDR, getNumBlocksFromBytes(generatedD… in iterate()
138 testDecompress(m_format, numBlocks, &generatedData[0]); in iterate()
140 verifyBlocksValid(m_format, TexDecompressionParams::ASTCMODE_LDR, numBlocks, &generatedData[0]); in iterate()
[all …]
/external/deqp/modules/gles3/functional/
Des3fFboDepthbufferTests.cpp54 , m_format (format) in BasicFboDepthCase()
63 checkFormatSupport(m_format); in preCheck()
92 glRenderbufferStorage(GL_RENDERBUFFER, m_format, m_width, m_height); in render()
136 deUint32 m_format; member in deqp::gles3::Functional::BasicFboDepthCase
146 , m_format (format) in DepthWriteClampCase()
155 checkFormatSupport(m_format); in preCheck()
164 glu::TransferFormat transferFmt = glu::getTransferFormat(glu::mapGLInternalFormat(m_format)); in render()
182 …glTexImage2D(GL_TEXTURE_2D, 0, m_format, m_width, m_height, 0, transferFmt.format, transferFmt.dat… in render()
222 const deUint32 m_format; member in deqp::gles3::Functional::DepthWriteClampCase
232 , m_format (format) in DepthTestClampCase()
[all …]
Des3fReadPixelsTests.cpp82 GLint m_format; member in deqp::gles3::Functional::__anon37546d670111::ReadPixelsTest
101 , m_format (format) in ReadPixelsTest()
208 GLU_CHECK_CALL(glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_FORMAT, &m_format)); in getFormatInfo()
211 if (m_format != GL_RGBA && m_format != GL_BGRA && m_format != GL_RGB) in getFormatInfo()
212 …d IMPLEMENTATION_COLOR_READ_FORMAT: " + de::toString(glu::getTextureFormatStr(m_format))).c_str()); in getFormatInfo()
217 format = glu::mapGLTransferFormat(m_format, m_type); in getFormatInfo()
249 else if (m_format == GL_RGBA || m_format == GL_BGRA || m_format == GL_RGB) in clearColor()
259 if (m_format == GL_RGBA || m_format == GL_BGRA || m_format == GL_RGB) in clearColor()
275 else if (m_format == GL_RGBA_INTEGER) in clearColor()
318 GLU_CHECK_CALL(glReadPixels(0, 0, m_width, m_height, m_format, m_type, &(pixelData[0]))); in clearColor()
[all …]
Des3fFboColorbufferTests.cpp83 , m_format (format) in FboColorbufferCase()
89 const tcu::RGBA threshold (tcu::max(getFormatThreshold(m_format), MIN_THRESHOLD)); in compare()
97 const deUint32 m_format; member in deqp::gles3::Functional::FboColorbufferCase
113 checkFormatSupport(m_format); in preCheck()
118 tcu::TextureFormat fboFormat = glu::mapGLInternalFormat(m_format); in render()
130 glRenderbufferStorage(GL_RENDERBUFFER, m_format, m_width, m_height); in render()
335 checkFormatSupport(m_format); in preCheck()
361 tcu::TextureFormat texFmt = glu::mapGLInternalFormat(m_format); in render()
380 bool isFilterable = glu::isGLInternalColorFormatFilterable(m_format); in render()
394 …glTexImage2D(cubeGLFaces[ndx], 0, m_format, size.x(), size.y(), 0, transferFmt.format, transferFmt… in render()
[all …]
Des3fTextureFormatTests.cpp100 deUint32 m_format; member in deqp::gles3::Functional::Texture2DFormatCase
113 , m_format (format) in Texture2DFormatCase()
126 , m_format (internalFormat) in Texture2DFormatCase()
142 checkSupport(m_renderCtxInfo, m_format); in init()
145 …t fmt = m_dataType ? glu::mapGLTransferFormat(m_format, m_dataType) : glu::mapGLInternalFormat(m… in init()
150 fmtName << glu::getTextureFormatStr(m_format) << ", " << glu::getTypeStr(m_dataType); in init()
152 fmtName << glu::getTextureFormatStr(m_format); in init()
159 …? new glu::Texture2D(m_renderCtx, m_format, m_dataType, m_width, m_height) // Implicit internal fo… in init()
160 : new glu::Texture2D(m_renderCtx, m_format, m_width, m_height); // Explicit internal format. in init()
263 deUint32 m_format; member in deqp::gles3::Functional::TextureCubeFormatCase
[all …]
Des3fASTCDecompressionCases.cpp247 CompressedTexFormat getFormat (void) const { return m_format; } in getFormat()
255 const CompressedTexFormat m_format; member in deqp::gles3::Functional::ASTCDecompressionCaseInternal::ASTCRenderer2D
275 , m_format (format) in ASTCRenderer2D()
376 , m_format (format) in ASTCBlockCase2D()
381 …DE_ASSERT(!(tcu::isAstcSRGBFormat(m_format) && tcu::astc::isBlockTestTypeHDROnly(m_testType))); //… in ASTCBlockCase2D()
393 generateBlockCaseTestData(m_blockData, m_format, m_testType); in init()
429 …rTarget().getPixelFormat().getColorThreshold() + (tcu::isAstcSRGBFormat(m_format) ? tcu::RGBA(2,2,… in iterate()
430 tcu::CompressedTexture compressed (m_format, imageWidth, imageHeight); in iterate()
448 …ionMode = (m_renderer->getASTCSupport() == ASTCSUPPORTLEVEL_LDR || tcu::isAstcSRGBFormat(m_format)) in iterate()
529 , m_format (format) in ASTCBlockSizeRemainderCase2D()
[all …]
/external/deqp/framework/opengl/
DgluTexture.cpp54 , m_format (format) in Texture1D()
65 , m_format (sizedFormat) in Texture1D()
97 …gl.texImage1D(GL_TEXTURE_1D, levelNdx, m_format, access.getWidth(), 0 /* border */, transferFormat… in upload()
108 , m_format (format) in Texture2D()
120 , m_format (sizedFormat) in Texture2D()
132 , m_format (getGLFormat(levels[0].getFormat())) in Texture2D()
138 if (!contextInfo.isCompressedTextureFormatSupported(m_format)) in Texture2D()
181 …gl.texImage2D(GL_TEXTURE_2D, levelNdx, m_format, access.getWidth(), access.getHeight(), 0 /* borde… in upload()
306 …gl.texStorage2D(GL_TEXTURE_2D, m_refTexture.getNumLevels(), m_format, m_refTexture.getWidth(), m_r… in upload()
325 , m_format (getGLFormat(levels[0].getFormat())) in TextureCube()
[all …]
DgluTexture.hpp61 deUint32 m_format; //!< Internal format. member in glu::Texture1D
91 deUint32 m_format; //!< Internal format. member in glu::Texture2D
148 deUint32 m_format; //!< Internal format. member in glu::TextureCube
182 deUint32 m_format; //!< Internal format. member in glu::Texture2DArray
211 deUint32 m_format; //!< Internal format. member in glu::Texture1DArray
244 deUint32 m_format; //!< Internal format. member in glu::Texture3D
275 deUint32 m_format; //!< Internal format. member in glu::TextureCubeArray
315 deUint32 m_format; //!< Internal format. member in glu::TextureBuffer
/external/deqp/framework/common/
DtcuTexture.cpp892 : m_format (format) in ConstPixelBufferAccess()
894 , m_pitch (calculatePackedPitch(m_format, m_size)) in ConstPixelBufferAccess()
901 : m_format (format) in ConstPixelBufferAccess()
903 , m_pitch (calculatePackedPitch(m_format, m_size)) in ConstPixelBufferAccess()
910 : m_format (format) in ConstPixelBufferAccess()
919 : m_format (format) in ConstPixelBufferAccess()
925 DE_ASSERT(m_format.getPixelSize() <= m_pitch.x()); in ConstPixelBufferAccess()
929 : m_format (level.getFormat()) in ConstPixelBufferAccess()
931 , m_pitch (calculatePackedPitch(m_format, m_size)) in ConstPixelBufferAccess()
982 …DE_ASSERT(!isCombinedDepthStencilType(m_format.type)); // combined types cannot be accessed direct… in getPixel()
[all …]
/external/deqp/modules/gles31/functional/
Des31fStencilTexturingTests.cpp519 , m_format (format) in UploadTex2DCase()
532 TextureLevel uploadLevel (glu::mapGLInternalFormat(m_format), width, height); in iterate()
536 checkDepthStencilFormatSupport(m_context, m_format); in iterate()
542 gl.texStorage2D(GL_TEXTURE_2D, 1, m_format, width, height); in iterate()
566 const deUint32 m_format; member in deqp::gles31::Functional::__anon9144abb40111::UploadTex2DCase
574 , m_format (format) in UploadTex2DArrayCase()
589 TextureLevel uploadLevel (glu::mapGLInternalFormat(m_format), width, height, levels); in iterate()
591 checkDepthStencilFormatSupport(m_context, m_format); in iterate()
604 gl.texStorage3D(GL_TEXTURE_2D_ARRAY, 1, m_format, width, height, levels); in iterate()
652 const deUint32 m_format; member in deqp::gles31::Functional::__anon9144abb40111::UploadTex2DArrayCase
[all …]
Des31fFboColorbufferTests.cpp97 , m_format (format) in FboColorbufferCase()
103 const tcu::RGBA threshold (tcu::max(getFormatThreshold(m_format), MIN_THRESHOLD)); in compare()
111 const deUint32 m_format; member in deqp::gles31::Functional::FboColorbufferCase
130 checkFormatSupport(m_format); in preCheck()
137 tcu::TextureFormat texFmt = glu::mapGLInternalFormat(m_format); in render()
156 bool isFilterable = glu::isGLInternalColorFormatFilterable(m_format); in render()
174 …glTexImage3D(GL_TEXTURE_CUBE_MAP_ARRAY, 0, m_format, size.x(), size.y(), size.z(), 0, transferFmt.… in render()
Des31fTextureFormatTests.cpp113 const deUint32 m_format; member in deqp::gles31::Functional::TextureCubeArrayFormatCase
128 , m_format (format) in TextureCubeArrayFormatCase()
142 , m_format (internalFormat) in TextureCubeArrayFormatCase()
161 if ((supportedExtensions.cubeMapArray && m_format != GL_SR8_EXT) || in init()
162 (supportedExtensions.cubeMapArray && m_format == GL_SR8_EXT && supportedExtensions.sRGBR8)) in init()
165 …? new glu::TextureCubeArray(m_renderCtx, m_format, m_dataType, m_size, m_depth) // Implicit intern… in init()
166 …: new glu::TextureCubeArray(m_renderCtx, m_format, m_size, m_depth); // Explicit internal forma… in init()
283 deUint32 m_format; member in deqp::gles31::Functional::TextureBufferFormatCase
294 , m_format (internalFormat) in TextureBufferFormatCase()
310 tcu::TextureFormat fmt = glu::mapGLInternalFormat(m_format); in init()
[all …]
/external/deqp/modules/gles2/functional/
Des2fTextureSpecificationTests.cpp622 , m_format (format) in BasicTexImage2DCase()
653 …glTexImage2D(GL_TEXTURE_2D, ndx, m_format, levelW, levelH, 0, m_format, m_dataType, levelData.getA… in createTexture()
657 deUint32 m_format; member in deqp::gles2::Functional::BasicTexImage2DCase
667 , m_format (format) in BasicTexImageCubeCase()
704 …glTexImage2D(s_cubeMapFaces[face], ndx, m_format, levelW, levelH, 0, m_format, m_dataType, levelDa… in createTexture()
709 deUint32 m_format; member in deqp::gles2::Functional::BasicTexImageCubeCase
719 , m_format (format) in RandomOrderTexImage2DCase()
757 …glTexImage2D(GL_TEXTURE_2D, levelNdx, m_format, levelW, levelH, 0, m_format, m_dataType, levelData… in createTexture()
761 deUint32 m_format; member in deqp::gles2::Functional::RandomOrderTexImage2DCase
771 , m_format (format) in RandomOrderTexImageCubeCase()
[all …]
/external/deqp/modules/egl/
DteglImageUtil.cpp181 …at, GLenum type, bool useTexLevel0) : m_internalFormat(internalFormat), m_format(format), m_type(t… in TextureImageSource()
192 const GLenum m_format; member in deqp::egl::Image::TextureImageSource
220 return deqp::egl::Image::getEffectiveFormat(m_format, m_type); in getEffectiveFormat()
251 *ref = Texture2D(glu::mapGLTransferFormat(m_format, m_type), IMAGE_WIDTH, IMAGE_HEIGHT); in createBuffer()
263 0, m_format, m_type, ref->getLevel(0).getDataPtr())); in createBuffer()
284 …age2D(GL_TEXTURE_2D, 0, m_internalFormat, IMAGE_WIDTH, IMAGE_HEIGHT, 0, m_format, m_type, DE_NULL), in initTexture()
316 …ge2D(faces[faceNdx], 0, m_internalFormat, IMAGE_WIDTH, IMAGE_HEIGHT, 0, m_format, m_type, DE_NULL)… in initTexture()
332 RenderbufferImageSource (GLenum format) : m_format(format) {} in RenderbufferImageSource()
336 GLenum getEffectiveFormat (void) const { return m_format; } in getEffectiveFormat()
342 GLenum m_format; member in deqp::egl::Image::RenderbufferImageSource
[all …]
DteglAndroidUtil.cpp104 AndroidNativeImageSource (GLenum format) : m_format(format), m_libui(DE_NULL) {} in AndroidNativeImageSource()
109 GLenum getEffectiveFormat (void) const { return m_format; } in getEffectiveFormat()
112 GLenum m_format; member in deqp::egl::Image::AndroidNativeImageSource
141 MovePtr<AndroidNativeClientBuffer> buffer (new AndroidNativeClientBuffer(getLibUI(), m_format)); in createBuffer()
145 const TextureFormat texFormat = glu::mapGLInternalFormat(m_format); in createBuffer()
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageAtomicOperationTests.cpp268 const tcu::TextureFormat m_format; member in vkt::image::__anona3b8e84a0111::BinaryAtomicEndResultCase
284 , m_format (format) in BinaryAtomicEndResultCase()
294 const bool uintFormat = isUintFormat(mapTextureFormat(m_format)); in initPrograms()
295 const bool intFormat = isIntFormat(mapTextureFormat(m_format)); in initPrograms()
304 const string shaderImageFormatStr = getShaderImageFormatQualifier(m_format); in initPrograms()
305 const string shaderImageTypeStr = getShaderImageType(m_format, m_imageType); in initPrograms()
342 const tcu::TextureFormat m_format; member in vkt::image::__anona3b8e84a0111::BinaryAtomicIntermValuesCase
358 , m_format (format) in BinaryAtomicIntermValuesCase()
368 const bool uintFormat = isUintFormat(mapTextureFormat(m_format)); in initPrograms()
369 const bool intFormat = isIntFormat(mapTextureFormat(m_format)); in initPrograms()
[all …]
DvktImageLoadStoreTests.cpp333 const VkFormat m_format; member in vkt::image::__anon0cfb08a90111::StoreTest
346 , m_format (format) in StoreTest()
356 const float storeColorScale = computeStoreColorScale(m_format, m_texture.size()); in initPrograms()
357 const float storeColorBias = computeStoreColorBias(m_format); in initPrograms()
358 DE_ASSERT(colorScaleAndBiasAreValid(m_format, storeColorScale, storeColorBias)); in initPrograms()
362 …const std::string signednessPrefix = isUintFormat(m_format) ? "u" : isIntFormat(m_format) ? "i" : … in initPrograms()
376 const std::string formatQualifierStr = getShaderImageFormatQualifier(mapVkFormat(m_format)); in initPrograms()
377 const std::string imageTypeStr = getShaderImageType(mapVkFormat(m_format), usedImageType); in initPrograms()
436 const VkFormat m_format; member in vkt::image::__anon0cfb08a90111::BaseTestInstance
444 , m_format (format) in BaseTestInstance()
[all …]
DvktImageQualifiersTests.cpp223 const tcu::TextureFormat m_format; member in vkt::image::__anonde164b510111::MemoryQualifierTestCase
239 , m_format(format) in MemoryQualifierTestCase()
252 const bool uintFormat = isUintFormat(mapTextureFormat(m_format)); in initPrograms()
253 const bool intFormat = isIntFormat(mapTextureFormat(m_format)); in initPrograms()
257 const std::string shaderImageFormat = getShaderImageFormatQualifier(m_format); in initPrograms()
258 const std::string shaderImageType = getShaderImageType(m_format, m_imageType); in initPrograms()
339 const tcu::TextureFormat m_format; member in vkt::image::__anonde164b510111::MemoryQualifierInstanceBase
356 , m_format(format) in MemoryQualifierInstanceBase()
375 …eviceSize bufferSizeInBytes = getNumPixels(m_imageType, m_imageSize) * tcu::getPixelSize(m_format); in iterate()
419 …tcu::ConstPixelBufferAccess resultPixelBuffer(m_format, computeGridSize.x(), computeGridSize.y(), … in iterate()
[all …]
DvktImageSizeTests.cpp174 const VkFormat m_format; member in vkt::image::__anona4fe04b70111::SizeTest
187 , m_format (format) in SizeTest()
197 const std::string formatQualifierStr = getShaderImageFormatQualifier(mapVkFormat(m_format)); in initPrograms()
198 const std::string imageTypeStr = getShaderImageType(mapVkFormat(m_format), m_texture.type()); in initPrograms()
263 const VkFormat m_format; member in vkt::image::__anona4fe04b70111::SizeTestInstance
271 , m_format (format) in SizeTestInstance()
378 …<Image>(new Image(vk, device, allocator, makeImageCreateInfo(m_texture, m_format), MemoryRequireme… in ImageSizeTestInstance()
381 …ageView(vk, device, m_image->get(), mapImageViewType(m_texture.type()), m_format, subresourceRange… in ImageSizeTestInstance()
454 const VkDeviceSize imageSizeBytes = getImageSizeBytes(m_texture.size(), m_format); in BufferSizeTestInstance()
458 m_bufferView = makeBufferView(vk, device, m_imageBuffer->get(), m_format, 0ull, imageSizeBytes); in BufferSizeTestInstance()
[all …]
/external/libkmsxx/kms++util/src/
Dextcpuframebuffer.cpp11 : m_width(width), m_height(height), m_format(format) in ExtCPUFramebuffer()
13 const PixelFormatInfo& format_info = get_pixel_format_info(m_format); in ExtCPUFramebuffer()
29 : m_width(width), m_height(height), m_format(format) in ExtCPUFramebuffer()
31 const PixelFormatInfo& format_info = get_pixel_format_info(m_format); in ExtCPUFramebuffer()
/external/deqp/modules/gles2/performance/
Des2pTextureUploadTests.cpp90 deUint32 m_format; member in deqp::gles2::Performance::TextureUploadCase
107 , m_format (format) in TextureUploadCase()
217 const tcu::TextureFormat& texFmt = glu::mapGLTransferFormat(m_format, m_type); in init()
230 …gl.texImage2D (GL_TEXTURE_2D, 0, m_format, m_texSize, m_texSize, 0, m_format, m_type, &m_texData[0… in init()
321 …gl.texImage2D(GL_TEXTURE_2D, 0, m_format, m_texSize, m_texSize, 0, m_format, m_type, &m_texData[0]… in render()
324 gl.texSubImage2D(GL_TEXTURE_2D, 0, 0, 0, m_texSize, m_texSize, m_format, m_type, &m_texData[0]); in render()
417 …gl.texImage2D(GL_TEXTURE_2D, 0, m_format, m_texSize, m_texSize, 0, m_format, m_type, &m_texData[0]… in render()
420 gl.texSubImage2D(GL_TEXTURE_2D, 0, 0, 0, m_texSize, m_texSize, m_format, m_type, &m_texData[0]); in render()
/external/deqp/external/vulkancts/modules/vulkan/memory/
DvktMemoryExternalMemoryHostTests.cpp64 VkFormat m_format; member
67 TestParams (VkFormat f, bool offset = false) : m_format(f) , m_useOffset(offset) {} in TestParams()
394 …tcu::ConstPixelBufferAccess result(mapVkFormat(m_testParams.m_format), tcu::IVec3(100,100,1), m… in iterate()
397 …tcu::PixelBufferAccess reference(mapVkFormat(m_testParams.m_format), tcu::IVec3(100, 100, 1), … in iterate()
415 m_testParams.m_format, // VkFormat format in createImage()
459 m_testParams.m_format, // VkFormat format in createImageView()
501 VkDeviceSize size = 10000 * vk::mapVkFormat(m_testParams.m_format).getPixelSize(); in createBindMemoryResultBuffer()
680 m_testParams.m_format, // VkFormat format in createRenderPass()
736 DE_ASSERT(m_testParams.m_format == VK_FORMAT_R8G8B8A8_UNORM); in iterate()
739 …const VkDeviceSize dataBufferSize = 10000 * vk::mapVkFormat(m_testParams.m_format).get… in iterate()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesShaderIntrinsicsStorage.cpp48 const std::string imageTypeStr = getShaderImageType(m_format, m_imageType); in initPrograms()
49 const std::string formatDataStr = getShaderImageDataType(m_format); in initPrograms()
50 const std::string formatQualStr = getShaderImageFormatQualifier(m_format); in initPrograms()
59 const std::string typeImgComp = getImageComponentTypeName(m_format); in initPrograms()
60 const std::string typeImgCompVec4 = getImageComponentVec4TypeName(m_format); in initPrograms()
128 …<< "%type_image_sparse = " << getOpTypeImageSparse(m_imageType, m_format, typeImgComp, false) << "… in initPrograms()
132 …<< "%type_image_sparse_with_sampler = " << getOpTypeImageSparse(m_imageType, m_format, typeImgComp… in initPrograms()
542 …n new SparseShaderIntrinsicsInstanceFetch(context, m_function, m_imageType, m_imageSize, m_format); in createInstance()
561 …rn new SparseShaderIntrinsicsInstanceRead(context, m_function, m_imageType, m_imageSize, m_format); in createInstance()
DvktSparseResourcesShaderIntrinsicsBase.hpp113 , m_format(format) in SparseShaderIntrinsicsCaseBase()
121 const tcu::TextureFormat m_format; member in vkt::sparse::SparseShaderIntrinsicsCaseBase
136 , m_format(format) in SparseShaderIntrinsicsInstanceBase()
157 const tcu::TextureFormat m_format; member in vkt::sparse::SparseShaderIntrinsicsInstanceBase
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawImageObjectUtil.cpp158 , m_format (format) in Image()
177 m_pixelAccessData.resize(width * height * vk::mapVkFormat(m_format).getPixelSize()); in readSurface()
188 …return tcu::ConstPixelBufferAccess(vk::mapVkFormat(m_format), width, height, 1, m_pixelAccessData.… in readSurface()
202 m_pixelAccessData.resize(width * height * depth * vk::mapVkFormat(m_format).getPixelSize()); in readVolume()
213 …return tcu::ConstPixelBufferAccess(vk::mapVkFormat(m_format), width, height, depth, m_pixelAccessD… in readVolume()
225 m_pixelAccessData.resize(width * vk::mapVkFormat(m_format).getPixelSize()); in readSurface1D()
237 …return tcu::ConstPixelBufferAccess(vk::mapVkFormat(m_format), width, 1, 1, m_pixelAccessData.data(… in readSurface1D()
277 bool isCombinedType = isCombinedDepthStencilType(vk::mapVkFormat(m_format).type); in readUsingBuffer()
281 bufferSize = vk::mapVkFormat(m_format).getPixelSize() * width * height * depth; in readUsingBuffer()
286 switch (m_format) in readUsingBuffer()
[all …]

12345