Home
last modified time | relevance | path

Searched refs:texFormat (Results 1 - 25 of 90) sorted by relevance

1234

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
H A DvktSampleVerifierUtil.cpp679 void getPackInfo (const TextureFormat texFormat,
686 switch (texFormat.type)
778 TextureFormat texFormat,
783 TextureSwizzle readSwizzle = getChannelReadSwizzle(texFormat.order);
784 const TextureChannelClass chanClass = getTextureChannelClass(texFormat.type);
786 DE_ASSERT(getTextureChannelClass(texFormat.type) < 2);
796 const bool isPacked = isPackedType(texFormat.type);
800 getPackInfo(texFormat, bitSizes, bitOffsets, baseTypeBytes);
804 if (texFormat.type == TextureFormat::UNORM_INT_1010102_REV ||
805 texFormat
[all...]
H A DvktTextureFilteringTests.cpp233 const tcu::TextureFormat texFormat = vk::mapVkFormat(m_testParameters.format); in Texture2DFilteringTestInstance() local
234 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(texFormat); in Texture2DFilteringTestInstance()
236 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in Texture2DFilteringTestInstance()
263 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in Texture2DFilteringTestInstance()
277 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in Texture2DFilteringTestInstance()
449 const tcu::TextureFormat texFormat = vk::mapVkFormat(m_testParameters.format); in TextureCubeFilteringTestInstance() local
450 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(texFormat); in TextureCubeFilteringTestInstance()
452 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in TextureCubeFilteringTestInstance()
484 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in TextureCubeFilteringTestInstance()
503 if (texFormat in TextureCubeFilteringTestInstance()
697 const tcu::TextureFormat texFormat = vk::mapVkFormat(m_testParameters.format); Texture2DArrayFilteringTestInstance() local
920 const tcu::TextureFormat texFormat = vk::mapVkFormat(m_testParameters.format); Texture3DFilteringTestInstance() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/
H A DvktSampleVerifierUtil.cpp679 void getPackInfo (const TextureFormat texFormat,
686 switch (texFormat.type)
778 TextureFormat texFormat,
783 TextureSwizzle readSwizzle = getChannelReadSwizzle(texFormat.order);
784 const TextureChannelClass chanClass = getTextureChannelClass(texFormat.type);
786 DE_ASSERT(getTextureChannelClass(texFormat.type) < 2);
796 const bool isPacked = isPackedType(texFormat.type);
800 getPackInfo(texFormat, bitSizes, bitOffsets, baseTypeBytes);
804 if (texFormat.type == TextureFormat::UNORM_INT_1010102_REV ||
805 texFormat
[all...]
H A DvktTextureFilteringTests.cpp232 const tcu::TextureFormat texFormat = vk::mapVkFormat(m_testParameters.format); in Texture2DFilteringTestInstance() local
233 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(texFormat); in Texture2DFilteringTestInstance()
235 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in Texture2DFilteringTestInstance()
262 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in Texture2DFilteringTestInstance()
276 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in Texture2DFilteringTestInstance()
448 const tcu::TextureFormat texFormat = vk::mapVkFormat(m_testParameters.format); in TextureCubeFilteringTestInstance() local
449 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(texFormat); in TextureCubeFilteringTestInstance()
451 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in TextureCubeFilteringTestInstance()
483 if (texFormat.order == tcu::TextureFormat::DS && m_testParameters.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT) in TextureCubeFilteringTestInstance()
502 if (texFormat in TextureCubeFilteringTestInstance()
696 const tcu::TextureFormat texFormat = vk::mapVkFormat(m_testParameters.format); Texture2DArrayFilteringTestInstance() local
919 const tcu::TextureFormat texFormat = vk::mapVkFormat(m_testParameters.format); Texture3DFilteringTestInstance() local
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A Dtexture_format_table.h38 DXGI_FORMAT texFormat,
56 DXGI_FORMAT texFormat; member
72 texFormat(DXGI_FORMAT_UNKNOWN), in Format()
84 DXGI_FORMAT texFormat, in Format()
94 texFormat(texFormat), in Format()
82 Format(GLenum internalFormat, angle::FormatID formatID, DXGI_FORMAT texFormat, DXGI_FORMAT srvFormat, DXGI_FORMAT uavFormat, DXGI_FORMAT rtvFormat, DXGI_FORMAT dsvFormat, DXGI_FORMAT blitSRVFormat, GLenum swizzleFormat, InitializeTextureDataFunction internalFormatInitializer) Format() argument
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_cb_eglimage.c273 mesa_format texFormat; in st_bind_egl_image() local
299 texFormat = MESA_FORMAT_R8G8B8X8_UNORM; in st_bind_egl_image()
302 texFormat = MESA_FORMAT_R_UNORM8; in st_bind_egl_image()
309 texFormat = MESA_FORMAT_R_UNORM16; in st_bind_egl_image()
315 texFormat = MESA_FORMAT_RG_UNORM16; in st_bind_egl_image()
319 texFormat = MESA_FORMAT_B10G10R10A2_UNORM; in st_bind_egl_image()
325 texFormat = MESA_FORMAT_RGBA_UNORM16; in st_bind_egl_image()
330 texFormat = MESA_FORMAT_R_UNORM8; in st_bind_egl_image()
336 texFormat = MESA_FORMAT_RG_RB_UNORM8; in st_bind_egl_image()
339 texFormat in st_bind_egl_image()
[all...]
H A Dst_copytex.c46 * \param texFormat what texture format to use, if texture doesn't exist
52 GLuint cubeFace, GLenum texFormat) in st_copy_framebuffer_to_texture()
82 texFormat, in st_copy_framebuffer_to_texture()
103 texFormat, in st_copy_framebuffer_to_texture()
127 texFormat, in st_copy_framebuffer_to_texture()
49 st_copy_framebuffer_to_texture(GLenum srcBuffer, GLint fbWidth, GLint fbHeight, GLenum texTarget, GLint texLevel, GLuint cubeFace, GLenum texFormat) st_copy_framebuffer_to_texture() argument
H A Dst_vdpau.c195 mesa_format texFormat; in st_vdpau_map_surface() local
243 texFormat = st_pipe_format_to_mesa_format(res->format); in st_vdpau_map_surface()
247 texFormat); in st_vdpau_map_surface()
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fTextureBorderClampTests.cpp219 static de::MovePtr<glu::Texture2D> createTextureFromInternalFormat (glu::RenderContext& renderCtx, deUint32 texFormat, const tcu::IVec2& size) in createTextureFromInternalFormat()
221 return de::MovePtr<glu::Texture2D>(new glu::Texture2D(renderCtx, texFormat, size.x(), size.y())); in createTextureFromInternalFormat()
224 static de::MovePtr<glu::Texture2D> createTextureFromFormatAndType (glu::RenderContext& renderCtx, deUint32 texFormat, deUint32 type, const tcu::IVec2& size) in createTextureFromFormatAndType()
226 return de::MovePtr<glu::Texture2D>(new glu::Texture2D(renderCtx, texFormat, type, size.x(), size.y())); in createTextureFromFormatAndType()
254 static de::MovePtr<glu::Texture3D> createTextureFromInternalFormat (glu::RenderContext& renderCtx, deUint32 texFormat, const tcu::IVec3& size) in createTextureFromInternalFormat()
256 return de::MovePtr<glu::Texture3D>(new glu::Texture3D(renderCtx, texFormat, size.x(), size.y(), size.z())); in createTextureFromInternalFormat()
259 static de::MovePtr<glu::Texture3D> createTextureFromFormatAndType (glu::RenderContext& renderCtx, deUint32 texFormat, deUint32 type, const tcu::IVec3& size) in createTextureFromFormatAndType()
261 return de::MovePtr<glu::Texture3D>(new glu::Texture3D(renderCtx, texFormat, type, size.x(), size.y(), size.z())); in createTextureFromFormatAndType()
284 de::MovePtr<T> genDefaultTexture (glu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, deUint32 texFormat, const typename TextureTraits<T>::SizeType& size) in genDefaultTexture() argument
288 if (isDepthFormat(texFormat, tc in genDefaultTexture()
[all...]
/third_party/mesa3d/src/gallium/frontends/wgl/
H A Dstw_ext_rendertexture.c108 GLenum texFormat, srcBuffer, target; in wglBindTexImageARB() local
156 texFormat = translate_texture_format(fb->textureFormat); in wglBindTexImageARB()
157 if (texFormat == GL_NONE) { in wglBindTexImageARB()
184 fb->textureFace, texFormat); in wglBindTexImageARB()
/third_party/vk-gl-cts/modules/gles3/performance/
H A Des3pTextureCases.cpp95 const tcu::TextureFormat texFormat = glu::mapGLInternalFormat(m_internalFormat); in init() local
96 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(texFormat); in init()
97 const glu::Precision samplerPrec = (texFormat.type == tcu::TextureFormat::FLOAT || in init()
98 texFormat.type == tcu::TextureFormat::UNSIGNED_INT32 || in init()
99 texFormat.type == tcu::TextureFormat::SIGNED_INT32) in init()
101 const glu::DataType samplerType = glu::getSampler2DType(texFormat); in init()
/third_party/mesa3d/src/mesa/main/
H A Dtexstorage.c145 GLenum internalFormat, mesa_format texFormat) in initialize_texture_fields()
165 0, internalFormat, texFormat); in initialize_texture_fields()
444 mesa_format texFormat; in texture_storage() local
457 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0, in texture_storage()
465 sizeOK = st_TestProxyTexImage(ctx, target, levels, 0, texFormat, in texture_storage()
472 internalformat, texFormat); in texture_storage()
498 if (_mesa_sparse_texture_error_check(ctx, dims, texObj, texFormat, target, in texture_storage()
510 internalformat, texFormat)) { in texture_storage()
141 initialize_texture_fields(struct gl_context *ctx, struct gl_texture_object *texObj, GLint levels, GLsizei width, GLsizei height, GLsizei depth, GLenum internalFormat, mesa_format texFormat) initialize_texture_fields() argument
H A Dtexparam.c1711 mesa_format texFormat; in get_tex_level_parameter_image() local
1732 texFormat = img->TexFormat; in get_tex_level_parameter_image()
1745 if (_mesa_is_format_compressed(texFormat)) { in get_tex_level_parameter_image()
1747 *params = _mesa_compressed_format_to_glenum(ctx, texFormat); in get_tex_level_parameter_image()
1778 *params = _mesa_get_format_bits(texFormat, pname); in get_tex_level_parameter_image()
1787 *params = _mesa_get_format_bits(texFormat, pname); in get_tex_level_parameter_image()
1790 *params = MIN2(_mesa_get_format_bits(texFormat, in get_tex_level_parameter_image()
1792 _mesa_get_format_bits(texFormat, in get_tex_level_parameter_image()
1797 *params = _mesa_get_format_bits(texFormat, in get_tex_level_parameter_image()
1806 *params = _mesa_get_format_bits(texFormat, pnam in get_tex_level_parameter_image()
1912 mesa_format texFormat = texObj->_BufferObjectFormat; get_tex_level_parameter_buffer() local
[all...]
H A Dtextureview.c312 GLenum internalFormat, mesa_format texFormat, in initialize_texture_fields()
337 0, internalFormat, texFormat, in initialize_texture_fields()
539 mesa_format texFormat; in texture_view() local
543 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0, in texture_view()
545 if (texFormat == MESA_FORMAT_NONE) return; in texture_view()
626 sizeOK = st_TestProxyTexImage(ctx, target, 1, 0, texFormat, in texture_view()
688 internalformat, texFormat, in texture_view()
307 initialize_texture_fields(struct gl_context *ctx, GLenum target, struct gl_texture_object *texObj, GLint levels, GLsizei width, GLsizei height, GLsizei depth, GLenum internalFormat, mesa_format texFormat, GLuint numSamples, GLboolean fixedSampleLocations) initialize_texture_fields() argument
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DD3D11FormatTablesTest.cpp72 bool texSuccess = SUCCEEDED(device->CheckFormatSupport(formatInfo.texFormat, &texSupport)); in TEST_P()
79 const auto &dxgiSupport = rx::d3d11::GetDXGISupport(formatInfo.texFormat, featureLevel); in TEST_P()
177 rx::d3d11::MakeValidSize(image, formatInfo.texFormat, &reqWidth, &reqHeight, &level); in TEST_P()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
H A Drenderer9_utils.cpp427 if (d3dFormatInfo.texFormat != D3DFMT_UNKNOWN) in GenerateTextureFormatCaps()
432 adapter, deviceType, adapterFormat, 0, D3DRTYPE_TEXTURE, d3dFormatInfo.texFormat)); in GenerateTextureFormatCaps()
438 D3DRTYPE_TEXTURE, d3dFormatInfo.texFormat)) && in GenerateTextureFormatCaps()
440 D3DRTYPE_CUBETEXTURE, d3dFormatInfo.texFormat)); in GenerateTextureFormatCaps()
446 d3dFormatInfo.texFormat)) && in GenerateTextureFormatCaps()
449 d3dFormatInfo.texFormat)); in GenerateTextureFormatCaps()
455 D3DRTYPE_TEXTURE, d3dFormatInfo.texFormat)); in GenerateTextureFormatCaps()
/third_party/vk-gl-cts/modules/egl/
H A DteglAndroidUtil.cpp295 const TextureFormat texFormat = glu::mapGLInternalFormat(m_format);
298 *ref = Texture2D(texFormat, 64, 64);
314 const int rowPitch = texFormat.getPixelSize() * desc.stride;
316 PixelBufferAccess nativeBuffer (texFormat, desc.width, desc.height, 1, rowPitch, slicePitch, bufferData);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
H A DvktImageMismatchedWriteOpTests.cpp573 const TextureFormat texFormat = mapVkFormat(m_params->vkFormat); in getBufferFormat() local
574 return makeBufferFormat(getTextureChannelClass(texFormat.type), is64BitIntegerFormat(m_params->vkFormat)); in getBufferFormat()
805 const auto texFormat = mapVkFormat(m_params->vkFormat); in populate() local
806 const auto bitDepth = tcu::getTextureFormatBitDepth(texFormat); in populate()
807 const auto channelClass = tcu::getTextureChannelClass(texFormat.type); in populate()
843 tcu::PixelBufferAccess floatsAccess (texFormat, 1, 1, 1, floatsData); in populate()
871 tmpFloats = ut::gluePixels(floatsAccess.getPixel(0, 0), sfloatColor, tcu::getNumUsedChannels(texFormat.order)); in populate()
879 tmpFloats = ut::gluePixels(floatsAccess.getPixel(0, 0), ufloatColor, tcu::getNumUsedChannels(texFormat.order)); in populate()
955 const tcu::TextureFormat texFormat = mapVkFormat(m_params->vkFormat); in compare() local
956 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(texFormat in compare()
[all...]
H A DvktImageMismatchedFormatsTests.cpp81 const tcu::TextureFormat texFormat = mapVkFormat(format); in getFormatInfo() local
83 result.VectorWidth = getNumUsedChannels(texFormat.order); in getFormatInfo()
84 result.BytesPerPixel = getPixelSize(texFormat); in getFormatInfo()
85 result.ChannelClass = tcu::getTextureChannelClass(texFormat.type); in getFormatInfo()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
H A DvktImageMismatchedWriteOpTests.cpp576 const TextureFormat texFormat = mapVkFormat(m_params->vkFormat); in getBufferFormat() local
577 return makeBufferFormat(getTextureChannelClass(texFormat.type), is64BitIntegerFormat(m_params->vkFormat)); in getBufferFormat()
808 const auto texFormat = mapVkFormat(m_params->vkFormat); in populate() local
809 const auto bitDepth = tcu::getTextureFormatBitDepth(texFormat); in populate()
810 const auto channelClass = tcu::getTextureChannelClass(texFormat.type); in populate()
846 tcu::PixelBufferAccess floatsAccess (texFormat, 1, 1, 1, floatsData); in populate()
874 tmpFloats = ut::gluePixels(floatsAccess.getPixel(0, 0), sfloatColor, tcu::getNumUsedChannels(texFormat.order)); in populate()
882 tmpFloats = ut::gluePixels(floatsAccess.getPixel(0, 0), ufloatColor, tcu::getNumUsedChannels(texFormat.order)); in populate()
958 const tcu::TextureFormat texFormat = mapVkFormat(m_params->vkFormat); in compare() local
959 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(texFormat in compare()
[all...]
H A DvktImageMismatchedFormatsTests.cpp81 const tcu::TextureFormat texFormat = mapVkFormat(format); in getFormatInfo() local
83 result.VectorWidth = getNumUsedChannels(texFormat.order); in getFormatInfo()
84 result.BytesPerPixel = getPixelSize(texFormat); in getFormatInfo()
85 result.ChannelClass = tcu::getTextureChannelClass(texFormat.type); in getFormatInfo()
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
H A Des31cSampleShadingTests.cpp170 GLenum internalFormat, tcu::TextureFormat const& texFormat, const char* m_sampler,
202 tcu::TextureFormat const& texFormat, const char* sampler, in SampleShadingRenderCase()
209 , m_texFormat(texFormat) in SampleShadingRenderCase()
476 const char* format, tcu::TextureFormat const& texFormat, const char* sampler,
498 tcu::TextureFormat const& texFormat, const char* sampler, in SampleShadingRenderFormatTests()
504 , m_texFormat(texFormat) in SampleShadingRenderFormatTests()
200 SampleShadingRenderCase(Context& context, const char* name, const char* description, glu::GLSLVersion glslVersion, GLenum internalFormat, tcu::TextureFormat const& texFormat, const char* sampler, const char* outType, GLfloat min, GLfloat max, const char* extension, GLfloat sampleShading) SampleShadingRenderCase() argument
496 SampleShadingRenderFormatTests(Context& context, glu::GLSLVersion glslVersion, GLenum internalFormat, const char* format, tcu::TextureFormat const& texFormat, const char* sampler, const char* outType, GLfloat min, GLfloat max, const char* extension) SampleShadingRenderFormatTests() argument
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRender.cpp980 void ShaderRenderCaseInstance::uploadImage (const tcu::TextureFormat& texFormat,
1001 offsetMultiples.push_back(texFormat.getPixelSize());
1261 void ShaderRenderCaseInstance::uploadSparseImage (const tcu::TextureFormat& texFormat,
1288 offsetMultiples.push_back(texFormat.getPixelSize());
1293 allocateAndBindSparseImage(vk, vkDevice, physicalDevice, instance, imageCreateInfo, *imageMemoryBindSemaphore, sparseQueue, m_memAlloc, m_allocations, texFormat, sparseImage);
1384 tcu::TextureFormat texFormat;
1392 texFormat = texture.getFormat();
1411 texFormat = texture.getFormat();
1445 texFormat = texture.getFormat();
1472 texFormat
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
H A DvktShaderRender.cpp982 void ShaderRenderCaseInstance::uploadImage (const tcu::TextureFormat& texFormat,
1003 offsetMultiples.push_back(texFormat.getPixelSize());
1263 void ShaderRenderCaseInstance::uploadSparseImage (const tcu::TextureFormat& texFormat,
1290 offsetMultiples.push_back(texFormat.getPixelSize());
1295 allocateAndBindSparseImage(vk, vkDevice, physicalDevice, instance, imageCreateInfo, *imageMemoryBindSemaphore, sparseQueue, m_memAlloc, m_allocations, texFormat, sparseImage);
1386 tcu::TextureFormat texFormat;
1394 texFormat = texture.getFormat();
1413 texFormat = texture.getFormat();
1447 texFormat = texture.getFormat();
1474 texFormat
[all...]
/third_party/vk-gl-cts/modules/glshared/
H A DglsLongStressCase.cpp212 static inline bool isMatchingGLInternalFormat (const deUint32 internalFormat, const TextureFormat& texFormat) in isMatchingGLInternalFormat() argument
218 case GL_RGBA: return texFormat.order == TextureFormat::RGBA && in isMatchingGLInternalFormat()
219 (texFormat.type == TextureFormat::UNORM_INT8 || in isMatchingGLInternalFormat()
220 texFormat.type == TextureFormat::UNORM_SHORT_4444 || in isMatchingGLInternalFormat()
221 texFormat.type == TextureFormat::UNORM_SHORT_5551); in isMatchingGLInternalFormat()
223 case GL_RGB: return texFormat.order == TextureFormat::RGB && in isMatchingGLInternalFormat()
224 (texFormat.type == TextureFormat::UNORM_INT8 || in isMatchingGLInternalFormat()
225 texFormat.type == TextureFormat::UNORM_SHORT_565); in isMatchingGLInternalFormat()
227 case GL_LUMINANCE_ALPHA: return texFormat.order == TextureFormat::LA && texFormat in isMatchingGLInternalFormat()
[all...]

Completed in 26 milliseconds

1234