/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_cube_map_array/ |
D | esextcTextureCubeMapArrayGenerateMipMap.cpp | 223 storage_config_1.m_width = 64; in initTest() 227 …storage_config_1.m_levels = getAmountOfLevelsForTexture(storage_config_1.m_width, storage_config_1… in initTest() 232 storage_config_2.m_width = 117; in initTest() 236 …storage_config_2.m_levels = getAmountOfLevelsForTexture(storage_config_2.m_width, storage_config_2… in initTest() 241 storage_config_3.m_width = 256; in initTest() 245 …storage_config_3.m_levels = getAmountOfLevelsForTexture(storage_config_3.m_width, storage_config_3… in initTest() 250 storage_config_4.m_width = 173; in initTest() 254 …storage_config_4.m_levels = getAmountOfLevelsForTexture(storage_config_4.m_width, storage_config_4… in initTest() 279 GL_RGBA8, config.m_width, config.m_height, config.m_depth, 0, /* border */ in initTest() 288 …gl.texStorage3D(GL_TEXTURE_CUBE_MAP_ARRAY, config.m_levels, GL_RGBA8, config.m_width, config.m_hei… in initTest() [all …]
|
D | esextcTextureCubeMapArraySubImage3D.cpp | 239 …m_copy_data_buffer.assign(copy_params.m_width * copy_params.m_height * copy_params.m_depth * m_n_c… in configureDataBuffer() 246 …glw::GLuint xoffset = copy_params.m_xoffset; xoffset < copy_params.m_xoffset + copy_params.m_width; in configureDataBuffer() 264 …glw::GLuint xoffset = copy_params.m_xoffset; xoffset < copy_params.m_xoffset + copy_params.m_width; in configureDataBuffer() 297 copy_params.m_width * copy_params.m_height * copy_params.m_depth * m_n_components * in configurePixelUnpackBuffer() 383 gl.texStorage2D(GL_TEXTURE_2D, 1, GL_RGBA32UI, copy_params.m_width, copy_params.m_height); in configure2DTexture() 386 …gl.texSubImage2D(GL_TEXTURE_2D, 0, 0, 0, copy_params.m_width, copy_params.m_height, GL_RGBA_INTEGE… in configure2DTexture() 402 … copy_params.m_width, copy_params.m_height, copy_params.m_depth, GL_RGBA_INTEGER, GL_UNSIGNED_INT, in texSubImage3D() 421 copy_params.m_zoffset, 0, 0, copy_params.m_width, copy_params.m_height); in copyTexSubImage3D() 486 …<< "(" << copy_params.m_width << "," << copy_params.m_height << "," << copy_params.m_depth << ")\n" in testTexSubImage3D() 509 << "(" << copy_params.m_width << "," << copy_params.m_height << "," << copy_params.m_depth in testTexSubImage3D() [all …]
|
D | esextcTextureCubeMapArrayGetterCalls.cpp | 43 const glw::GLsizei TextureCubeMapArrayGetterCalls::m_width = 64; member in glcts::TextureCubeMapArrayGetterCalls 253 glw::GLubyte texture_data_ubyte[m_width * m_height * m_depth * m_n_components]; in iterate() 254 …memset(texture_data_ubyte, 0, m_width * m_height * m_depth * m_n_components * sizeof(glw::GLubyte)… in iterate() 260 m_width, /* width */ in iterate() 272 m_width, /* width */ in iterate() 346 m_width, /* width */ in iterate() 656 expected_property_int_value = m_width; in verifyGetTexLevelParameters()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fFboDepthbufferTests.cpp | 55 , m_width (width) in BasicFboDepthCase() 89 glRenderbufferStorage(GL_RENDERBUFFER, colorFormat, m_width, m_height); in render() 92 glRenderbufferStorage(GL_RENDERBUFFER, m_format, m_width, m_height); in render() 100 glViewport(0, 0, m_width, m_height); in render() 132 …readPixels(dst, 0, 0, m_width, m_height, glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0… in render() 137 int m_width; member in deqp::gles3::Functional::BasicFboDepthCase 147 , m_width (width) in DepthWriteClampCase() 179 glRenderbufferStorage(GL_RENDERBUFFER, colorFormat, m_width, m_height); in render() 182 …glTexImage2D(GL_TEXTURE_2D, 0, m_format, m_width, m_height, 0, transferFmt.format, transferFmt.dat… in render() 192 glViewport(0, 0, m_width, m_height); in render() [all …]
|
D | es3fTextureFormatTests.cpp | 105 int m_width; member in deqp::gles3::Functional::Texture2DFormatCase 118 , m_width (width) in Texture2DFormatCase() 131 , m_width (width) in Texture2DFormatCase() 157 log << TestLog::Message << "2D texture, " << fmtName.str() << ", " << m_width << "x" << m_height in init() 162 …? new glu::Texture2D(m_renderCtx, m_format, m_dataType, m_width, m_height) // Implicit internal fo… in init() 163 : new glu::Texture2D(m_renderCtx, m_format, m_width, m_height); // Explicit internal format. in init() 182 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in iterate() 268 int m_width; member in deqp::gles3::Functional::TextureCubeFormatCase 284 , m_width (width) in TextureCubeFormatCase() 299 , m_width (width) in TextureCubeFormatCase() [all …]
|
D | es3fReadPixelsTests.cpp | 85 const int m_width; member in deqp::gles3::Functional::__anon8543c5670111::ReadPixelsTest 103 , m_width (13) in ReadPixelsTest() 233 GLU_CHECK_CALL(glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA32UI, m_width, m_height)); in clearColor() 239 GLU_CHECK_CALL(glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA32I, m_width, m_height)); in clearColor() 313 const int rowWidth = (m_rowLength == 0 ? m_width : m_rowLength) + m_skipPixels; in clearColor() 318 GLU_CHECK_CALL(glReadPixels(0, 0, m_width, m_height, m_format, m_type, &(pixelData[0]))); in clearColor() 335 tcu::Texture2D reference(format, m_width, m_height); in iterate() 350 GLU_CHECK_CALL(glViewport(0, 0, m_width, m_height)); in iterate() 355 const int rowWidth = (m_rowLength == 0 ? m_width : m_rowLength); in iterate() 357 …const tcu::ConstPixelBufferAccess resultAccess = tcu::ConstPixelBufferAccess(format, m_width, m_he… in iterate() [all …]
|
D | es3fTextureSizeTests.cpp | 70 int m_width; member in deqp::gles3::Functional::Texture2DSizeCase 83 , m_width (width) in Texture2DSizeCase() 99 m_texture = new Texture2D(m_renderCtx, m_format, m_dataType, m_width, m_height); in init() 101 int numLevels = m_useMipmaps ? deLog2Floor32(de::max(m_width, m_height))+1 : 1; in init() 192 int m_width; member in deqp::gles3::Functional::TextureCubeSizeCase 208 , m_width (width) in TextureCubeSizeCase() 226 DE_ASSERT(m_width == m_height); in init() 227 m_texture = new TextureCube(m_renderCtx, m_format, m_dataType, m_width); in init() 239 int numLevels = m_useMipmaps ? deLog2Floor32(de::max(m_width, m_height))+1 : 1; in init()
|
D | es3fTextureSpecificationTests.cpp | 260 int m_width; member in deqp::gles3::Functional::Texture2DSpecCase 269 , m_width (width) in Texture2DSpecCase() 303 int levelW = de::max(1, m_width >> levelNdx); in verifyTexture() 442 int m_width; member in deqp::gles3::Functional::Texture2DArraySpecCase 452 , m_width (width) in Texture2DArraySpecCase() 494 int levelW = de::max(1, m_width >> levelNdx); in verifyTexture() 542 int m_width; member in deqp::gles3::Functional::Texture3DSpecCase 552 , m_width (width) in Texture3DSpecCase() 588 int levelW = de::max(1, m_width >> levelNdx); in verifyTexture() 670 int levelW = de::max(1, m_width >> ndx); in createTexture() [all …]
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuSurface.hpp | 53 int getWidth (void) const { return m_width; } in getWidth() 65 int m_width; member in tcu::Surface 72 DE_ASSERT(de::inBounds(x, 0, m_width) && de::inBounds(y, 0, m_height)); in setPixel() 74 const int pixOffset = y*m_width + x; in setPixel() 89 DE_ASSERT(de::inBounds(x, 0, m_width) && de::inBounds(y, 0, m_height)); in getPixel() 91 const int pixOffset = y*m_width + x; in getPixel() 107 …ferAccess(TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8), m_width, m_height, 1, m_p… in getAccess() 113 …return PixelBufferAccess(TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8), m_width, m… in getAccess()
|
D | tcuSurface.cpp | 29 : m_width (0) in Surface() 35 : m_width (width) in Surface() 54 m_width = width; in setSize()
|
D | tcuSurfaceAccess.cpp | 33 , m_width (width) in SurfaceAccess() 43 , m_width (surface.getWidth()) in SurfaceAccess() 53 , m_width (width) in SurfaceAccess()
|
D | tcuSurfaceAccess.hpp | 57 int getWidth (void) const { return m_width; } in getWidth() 67 int m_width; member in tcu::SurfaceAccess 73 DE_ASSERT(de::inBounds(x, 0, m_width) && de::inBounds(y, 0, m_height)); in setPixel()
|
D | tcuRenderTarget.cpp | 30 : m_width (0) in RenderTarget() 40 : m_width (width) in RenderTarget()
|
D | tcuRenderTarget.hpp | 46 int getWidth (void) const { return m_width; } in getWidth() 52 int m_width; member in tcu::RenderTarget
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
D | glcNearestEdgeTests.cpp | 89 const int m_width; member in glcts::__anoncdaab59b0111::NearestEdgeTestCase 171 , m_width {context.getRenderTarget().getWidth()} 187 if (m_width < 2 || m_height < 2) in init() 268 m_texData.resize(m_width * m_height * tcu::getPixelSize(m_texFormat)); in fillTexture() 269 tcu::PixelBufferAccess texAccess{m_texFormat, m_width, m_height, 1, m_texData.data()}; in fillTexture() 272 DE_ASSERT(m_width > 1); in fillTexture() 275 const float divX = static_cast<float>(m_width - 1); in fillTexture() 278 for (int x = 0; x < m_width; ++x) in fillTexture() 293 …gl.texImage2D(kTextureType, 0, internalFormat, m_width, m_height, 0 /* border */, m_transFormat.f… in fillTexture() 313 const float offsetWidth = offset / static_cast<float>(m_width); in renderQuad() [all …]
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/ |
D | esextcGeometryShaderLayeredRenderingFBONoAttachment.cpp | 108 const glw::GLint GeometryShaderLayeredRenderingFBONoAttachment::m_width = 128; member in glcts::GeometryShaderLayeredRenderingFBONoAttachment 258 gl.framebufferParameteri(GL_DRAW_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_WIDTH, m_width); in iterate() 267 if (m_width != width || m_height != height) in iterate() 269 …etLog() << tcu::TestLog::Message << "Framebuffer's default width/height is not equal to" << m_width in iterate() 290 m_all_layers_data = new glw::GLint[m_n_layers * m_width * m_height * m_n_texture_components]; in iterate() 292 for (int n = 0; n < m_n_layers * m_width * m_height; ++n) in iterate() 302 gl.texStorage3D(GL_TEXTURE_2D_ARRAY, 1 /* levels */, GL_RGBA32I, m_width, m_height, m_n_layers); in iterate() 323 gl.viewport(0 /* x */, 0 /* y */, m_width /* width */, m_height /* height */); in iterate() 334 m_layer_data = new glw::GLint[m_width * m_height * m_n_texture_components]; in iterate() 345 m_width, m_height, m_n_layers, GL_RGBA_INTEGER, GL_INT, m_all_layers_data); in iterate() [all …]
|
D | esextcGeometryShaderLayeredRenderingBoundaryCondition.cpp | 37 const glw::GLint GeometryShaderLayeredRenderingBoundaryCondition::m_width = 4; member in glcts::GeometryShaderLayeredRenderingBoundaryCondition 323 unsigned char buffer[m_width * m_height * m_max_depth * m_texture_components]; in iterate() 330 gl.texStorage3D(m_textures_info[i].m_texture_target, 1, GL_RGBA8, m_width, m_height, in iterate() 332 …gl.texSubImage3D(m_textures_info[i].m_texture_target, 0, 0, 0, 0, m_width, m_height, m_textures_in… in iterate() 384 gl.viewport(0, 0, m_width, m_height); in iterate() 441 gl.viewport(0, 0, m_width, m_height); in iterate() 444 …gl.readPixels(0 /* x */, 0 /* y */, m_width /* width */, m_height /* height */, GL_RGBA, GL_UNSIGN… in iterate() 455 …if (!comparePixels(m_width, m_height, m_texture_components, buffer, expectedData, nTexture, nLayer… in iterate()
|
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
D | gl4cTextureBarrierTests.cpp | 121 , m_width(0) in TextureBarrierBasicOutline() 152 m_width = renderTarget.getWidth(); in init() 156 m_width = m_width >= 16383 ? 16382 : m_width; in init() 167 gl.texStorage2D(GL_TEXTURE_2D, 1, GL_R32UI, m_width, m_height); in init() 170 m_reference[i] = new GLuint[m_width * m_height]; in init() 172 m_actual = new GLuint[m_width * m_height]; in init() 344 …if ((static_cast<GLint>(x) < 0) || (x >= m_width) || (static_cast<GLint>(y) < 0) || (y >= m_height… in texel() 350 return image[x + y * m_width]; in texel() 360 for (GLuint x = 0; x < m_width; ++x) in initTextureData() 367 gl.texSubImage2D(GL_TEXTURE_2D, 0, 0, 0, m_width, m_height, GL_RED_INTEGER, GL_UNSIGNED_INT, in initTextureData() [all …]
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fTextureSpecificationTests.cpp | 367 const int m_width; member in deqp::gles2::Functional::TextureSpecCase 399 , m_width (width) in TextureSpecCase() 422 DE_ASSERT(m_width <= 256 && m_height <= 256); in iterate() 423 if (renderTarget.getWidth() < m_width || renderTarget.getHeight() < m_height) in iterate() 486 …int numLevels = (m_flags & MIPMAPS) ? de::max(deLog2Floor32(m_width), deLog2Floor32(m_height))+1 :… in verifyTex2D() 492 int levelW = de::max(1, m_width >> levelNdx); in verifyTex2D() 524 …int numLevels = (m_flags & MIPMAPS) ? de::max(deLog2Floor32(m_width), deLog2Floor32(m_height))+1 :… in verifyTexCube() 530 int levelW = de::max(1, m_width >> levelNdx); in verifyTexCube() 631 …int numLevels = (m_flags & MIPMAPS) ? de::max(deLog2Floor32(m_width), deLog2Floor32(m_height))… in createTexture() 645 int levelW = de::max(1, m_width >> ndx); in createTexture() [all …]
|
D | es2fTextureSizeTests.cpp | 69 int m_width; member in deqp::gles2::Functional::Texture2DSizeCase 82 , m_width (width) in Texture2DSizeCase() 98 m_texture = new Texture2D(m_renderCtx, m_format, m_dataType, m_width, m_height); in init() 100 int numLevels = m_useMipmaps ? deLog2Floor32(de::max(m_width, m_height))+1 : 1; in init() 191 int m_width; member in deqp::gles2::Functional::TextureCubeSizeCase 207 , m_width (width) in TextureCubeSizeCase() 225 DE_ASSERT(m_width == m_height); in init() 226 m_texture = new TextureCube(m_renderCtx, m_format, m_dataType, m_width); in init() 238 int numLevels = m_useMipmaps ? deLog2Floor32(de::max(m_width, m_height))+1 : 1; in init()
|
D | es2fTextureFormatTests.cpp | 86 const int m_width; member in deqp::gles2::Functional::Texture2DFormatCase 98 , m_width (width) in Texture2DFormatCase() 119 log << TestLog::Message << "2D texture, " << fmtName.str() << ", " << m_width << "x" << m_height in init() 123 m_texture = new Texture2D(m_renderCtx, m_format, m_dataType, m_width, m_height); in init() 142 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in iterate() 226 const int m_width; member in deqp::gles2::Functional::TextureCubeFormatCase 242 , m_width (width) in TextureCubeFormatCase() 268 …log << TestLog::Message << "Cube map texture, " << fmtName.str() << ", " << m_width << "x" << m_he… in init() 272 DE_ASSERT(m_width == m_height); in init() 274 ? new TextureCube(m_renderCtx, m_format, m_dataType, m_width) // Implicit internal format. in init() [all …]
|
D | es2fFboCompletenessTests.cpp | 237 GLsizei m_width; //< The common width of images member in deqp::gles2::Functional::ES2Checker 243 , m_width (-1) in ES2Checker() 253 if (m_width == -1) in check() 255 m_width = image->width; in check() 258 else if (image->width != m_width || image->height != m_height) in check()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassSubpassDependencyTests.cpp | 470 const deUint32 m_width; member in vkt::__anoncd8768a40111::ExternalDependencyTestInstance 502 , m_width (testConfig.imageSize.x()) in ExternalDependencyTestInstance() 506 …or(), m_imageMemories, context.getUniversalQueueFamilyIndex(), m_format, m_width, m_height, testCo… in ExternalDependencyTestInstance() 509 … (createBuffer(context.getDeviceInterface(), context.getDevice(), m_format, m_width, m_height)) in ExternalDependencyTestInstance() 512 …ontext.getDeviceInterface(), context.getDevice(), m_renderPasses, m_imageViews, m_width, m_height)) in ExternalDependencyTestInstance() 517 …vice(), m_renderPasses, m_renderPipelineLayouts, context.getBinaryCollection(), m_width, m_height)) in ExternalDependencyTestInstance() 817 { m_width, m_height } // VkExtent2D extent in iterateInternal() 893 { m_width, m_height, 1u } // VkExtent3D imageExtent in iterateInternal() 924 const tcu::ConstPixelBufferAccess access (format, m_width, m_height, 1, ptr); in iterateInternal() 925 tcu::TextureLevel reference (format, m_width, m_height); in iterateInternal() [all …]
|
D | vktRenderPassSparseRenderTargetTests.cpp | 416 const deUint32 m_width; member in vkt::__anon78dae1790111::SparseRenderTargetTestInstance 443 , m_width (32u) in SparseRenderTargetTestInstance() 447 …SparseQueue(), context.getSparseQueueFamilyIndex(), *m_bindSemaphore, m_format, m_width, m_height)) in SparseRenderTargetTestInstance() 449 …r (createBuffer(context.getDeviceInterface(), context.getDevice(), m_format, m_width, m_height)) in SparseRenderTargetTestInstance() 452 …text.getDeviceInterface(), context.getDevice(), *m_renderPass, *m_dstImageView, m_width, m_height)) in SparseRenderTargetTestInstance() 454 …ass, testConfig.format, *m_renderPipelineLayout, context.getBinaryCollection(), m_width, m_height)) in SparseRenderTargetTestInstance() 485 VkRect2D renderArea = makeRect2D(m_width, m_height); in iterateInternal() 518 copyImageToBuffer(vkd, *commandBuffer, *m_dstImage, *m_dstBuffer, tcu::IVec2(m_width, m_height)); in iterateInternal() 527 const tcu::ConstPixelBufferAccess access (format, m_width, m_height, 1, ptr); in iterateInternal() 528 tcu::TextureLevel reference (format, m_width, m_height); in iterateInternal() [all …]
|
D | vktRenderPassSampleReadTests.cpp | 760 const deUint32 m_width; member in vkt::__anonfd259d420111::SampleReadTestInstance 803 , m_width (32u) in SampleReadTestInstance() 807 …nt), VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT, m_width, m_height)) in SampleReadTestInstance() 811 …pleCountBitFromSampleCount(m_sampleCount), VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, m_width, m_height)) in SampleReadTestInstance() 814 …T_1_BIT, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT, m_width, m_height)) in SampleReadTestInstance() 817 …teBuffer(context.getDeviceInterface(), context.getDevice(), VK_FORMAT_R32_UINT, m_width, m_height)) in SampleReadTestInstance() 820 …Pass, *m_srcImageView, *m_dstMultisampleImageView, *m_dstSinglesampleImageView, m_width, m_height)) in SampleReadTestInstance() 822 …, *m_renderPass, *m_renderPipelineLayout, context.getBinaryCollection(), m_width, m_height, m_samp… in SampleReadTestInstance() 825 … *m_renderPass, *m_subpassPipelineLayout, context.getBinaryCollection(), m_width, m_height, m_samp… in SampleReadTestInstance() 871 { m_width, m_height } in iterateInternal() [all …]
|