Home
last modified time | relevance | path

Searched refs:texFormat (Results 1 – 25 of 54) sorted by relevance

123

/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktSampleVerifierUtil.cpp676 void getPackInfo (const TextureFormat texFormat, in getPackInfo() argument
683 switch (texFormat.type) in getPackInfo()
773 TextureFormat texFormat, in convertNormalizedFormat() argument
778 TextureSwizzle readSwizzle = getChannelReadSwizzle(texFormat.order); in convertNormalizedFormat()
779 const TextureChannelClass chanClass = getTextureChannelClass(texFormat.type); in convertNormalizedFormat()
781 DE_ASSERT(getTextureChannelClass(texFormat.type) < 2); in convertNormalizedFormat()
791 const bool isPacked = isPackedType(texFormat.type); in convertNormalizedFormat()
795 getPackInfo(texFormat, bitSizes, bitOffsets, baseTypeBytes); in convertNormalizedFormat()
799 if (texFormat.type == TextureFormat::UNORM_INT_1010102_REV || in convertNormalizedFormat()
800 texFormat.type == TextureFormat::SNORM_INT_1010102_REV) in convertNormalizedFormat()
[all …]
/external/deqp/modules/gles31/functional/
Des31fTextureBorderClampTests.cpp219 …reateTextureFromInternalFormat (glu::RenderContext& renderCtx, deUint32 texFormat, const tcu::IVec… in createTextureFromInternalFormat()
221 return de::MovePtr<glu::Texture2D>(new glu::Texture2D(renderCtx, texFormat, size.x(), size.y())); in createTextureFromInternalFormat()
224 …createTextureFromFormatAndType (glu::RenderContext& renderCtx, deUint32 texFormat, deUint32 type, … in createTextureFromFormatAndType()
226 …return de::MovePtr<glu::Texture2D>(new glu::Texture2D(renderCtx, texFormat, type, size.x(), size.y… in createTextureFromFormatAndType()
254 …reateTextureFromInternalFormat (glu::RenderContext& renderCtx, deUint32 texFormat, const tcu::IVec… in createTextureFromInternalFormat()
256 …return de::MovePtr<glu::Texture3D>(new glu::Texture3D(renderCtx, texFormat, size.x(), size.y(), si… in createTextureFromInternalFormat()
259 …createTextureFromFormatAndType (glu::RenderContext& renderCtx, deUint32 texFormat, deUint32 type, … in createTextureFromFormatAndType()
261 …return de::MovePtr<glu::Texture3D>(new glu::Texture3D(renderCtx, texFormat, type, size.x(), size.y… in createTextureFromFormatAndType()
284 …lu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, deUint32 texFormat, const typename … in genDummyTexture() argument
288 …if (isDepthFormat(texFormat, tcu::Sampler::MODE_DEPTH) || isStencilFormat(texFormat, tcu::Sampler:… in genDummyTexture()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_copytex.c51 GLuint cubeFace, GLenum texFormat) in st_copy_framebuffer_to_texture() argument
81 texFormat, in st_copy_framebuffer_to_texture()
102 texFormat, in st_copy_framebuffer_to_texture()
126 texFormat, in st_copy_framebuffer_to_texture()
Dst_cb_eglimage.c187 mesa_format texFormat; in st_bind_egl_image() local
205 texFormat = st_pipe_format_to_mesa_format(stimg->format); in st_bind_egl_image()
210 if (texFormat == MESA_FORMAT_NONE) { in st_bind_egl_image()
213 texFormat = MESA_FORMAT_R_UNORM8; in st_bind_egl_image()
217 texFormat = MESA_FORMAT_R_UNORM8; in st_bind_egl_image()
227 1, 0, internalFormat, texFormat); in st_bind_egl_image()
Dst_vdpau.c192 mesa_format texFormat; in st_vdpau_map_surface() local
228 texFormat = st_pipe_format_to_mesa_format(res->format); in st_vdpau_map_surface()
232 texFormat); in st_vdpau_map_surface()
Dst_copytex.h33 GLuint cubeFace, GLenum texFormat);
/external/deqp/modules/gles3/performance/
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()
/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_ext_rendertexture.c111 GLenum texFormat, srcBuffer, target; in wglBindTexImageARB() local
159 texFormat = translate_texture_format(fb->textureFormat); in wglBindTexImageARB()
160 if (texFormat == GL_NONE) { in wglBindTexImageARB()
186 fb->textureFace, texFormat); in wglBindTexImageARB()
/external/mesa3d/src/mesa/main/
Dtexparam.c1345 mesa_format texFormat; in get_tex_level_parameter_image() local
1366 texFormat = img->TexFormat; in get_tex_level_parameter_image()
1379 if (_mesa_is_format_compressed(texFormat)) { in get_tex_level_parameter_image()
1381 *params = _mesa_compressed_format_to_glenum(ctx, texFormat); in get_tex_level_parameter_image()
1412 *params = _mesa_get_format_bits(texFormat, pname); in get_tex_level_parameter_image()
1421 *params = _mesa_get_format_bits(texFormat, pname); in get_tex_level_parameter_image()
1424 *params = MIN2(_mesa_get_format_bits(texFormat, in get_tex_level_parameter_image()
1426 _mesa_get_format_bits(texFormat, in get_tex_level_parameter_image()
1437 *params = _mesa_get_format_bits(texFormat, pname); in get_tex_level_parameter_image()
1440 *params = _mesa_get_format_bits(texFormat, pname); in get_tex_level_parameter_image()
[all …]
Dtextureview.c307 GLenum internalFormat, mesa_format texFormat, in initialize_texture_fields() argument
332 0, internalFormat, texFormat, in initialize_texture_fields()
532 mesa_format texFormat; in texture_view() local
536 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0, in texture_view()
538 if (texFormat == MESA_FORMAT_NONE) return; in texture_view()
619 sizeOK = ctx->Driver.TestProxyTexImage(ctx, target, 1, 0, texFormat, in texture_view()
681 internalformat, texFormat, in texture_view()
Dtexstorage.c144 GLenum internalFormat, mesa_format texFormat) in initialize_texture_fields() argument
164 0, internalFormat, texFormat); in initialize_texture_fields()
400 mesa_format texFormat; in texture_storage() local
413 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0, in texture_storage()
421 sizeOK = ctx->Driver.TestProxyTexImage(ctx, target, levels, 0, texFormat, in texture_storage()
428 internalformat, texFormat); in texture_storage()
457 internalformat, texFormat)) { in texture_storage()
Dtexgetimage.c274 teximage_needs_rebase(mesa_format texFormat, GLenum baseFormat, in teximage_needs_rebase() argument
293 (baseFormat != _mesa_get_format_base_format(texFormat))) { in teximage_needs_rebase()
315 const mesa_format texFormat = in get_tex_rgba_compressed() local
317 const GLenum baseFormat = _mesa_get_format_base_format(texFormat); in get_tex_rgba_compressed()
344 _mesa_decompress_image(texFormat, width, height, in get_tex_rgba_compressed()
356 needsRebase = teximage_needs_rebase(texFormat, baseFormat, true, in get_tex_rgba_compressed()
432 const mesa_format texFormat = in get_tex_rgba_uncompressed() local
442 needsRebase = teximage_needs_rebase(texFormat, texImage->_BaseFormat, false, in get_tex_rgba_uncompressed()
511 img_src, texFormat, rowstride, in get_tex_rgba_uncompressed()
534 src_format = texFormat; in get_tex_rgba_uncompressed()
Dteximage.c2903 mesa_format texFormat; in teximage() local
2982 texFormat = _mesa_glenum_to_compressed_format(internalFormat); in teximage()
2998 texFormat = _mesa_choose_texture_format(ctx, texObj, target, level, in teximage()
3002 assert(texFormat != MESA_FORMAT_NONE); in teximage()
3011 0, level, texFormat, 1, in teximage()
3025 border, internalFormat, texFormat); in teximage()
3077 border, internalFormat, texFormat); in teximage()
3713 get_copy_tex_image_source(struct gl_context *ctx, mesa_format texFormat) in get_copy_tex_image_source() argument
3715 if (_mesa_get_format_bits(texFormat, GL_DEPTH_BITS) > 0) { in get_copy_tex_image_source()
3718 } else if (_mesa_get_format_bits(texFormat, GL_STENCIL_BITS) > 0) { in get_copy_tex_image_source()
[all …]
/external/swiftshader/src/OpenGL/libGLES_CM/
Dutilities.h54 bool IsAlpha(GLint texFormat);
55 bool IsRGB(GLint texFormat);
56 bool IsRGBA(GLint texFormat);
DContext.cpp2129 GLenum texFormat = texture->getFormat(GL_TEXTURE_2D, 0); in applyTextures() local
2134 if(IsAlpha(texFormat)) // GL_ALPHA in applyTextures()
2140 else if(IsRGB(texFormat)) // GL_LUMINANCE (or 1) / GL_RGB (or 3) in applyTextures()
2146 else if(IsRGBA(texFormat)) // GL_LUMINANCE_ALPHA (or 2) / GL_RGBA (or 4) in applyTextures()
2152 else UNREACHABLE(texFormat); in applyTextures()
2155 if(IsAlpha(texFormat)) // GL_ALPHA in applyTextures()
2161 else if(IsRGB(texFormat)) // GL_LUMINANCE (or 1) / GL_RGB (or 3) in applyTextures()
2167 else if(IsRGBA(texFormat)) // GL_LUMINANCE_ALPHA (or 2) / GL_RGBA (or 4) in applyTextures()
2173 else UNREACHABLE(texFormat); in applyTextures()
2176 if(texFormat == GL_ALPHA || in applyTextures()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tex_image.c283 mesa_format texFormat = MESA_FORMAT_NONE; in intelSetTexBuffer2() local
305 texFormat = MESA_FORMAT_B8G8R8X8_UNORM; in intelSetTexBuffer2()
309 texFormat = MESA_FORMAT_B8G8R8A8_UNORM; in intelSetTexBuffer2()
313 texFormat = MESA_FORMAT_B5G6R5_UNORM; in intelSetTexBuffer2()
319 internalFormat, texFormat, 0, in intelSetTexBuffer2()
/external/deqp/modules/egl/
DteglAndroidUtil.cpp145 const TextureFormat texFormat = glu::mapGLInternalFormat(m_format); in createBuffer() local
148 *ref = Texture2D(texFormat, 64, 64); in createBuffer()
155 PixelBufferAccess nativeBuffer(texFormat, 64, 64, 1, bufferData); in createBuffer()
/external/deqp/external/openglcts/modules/gles31/
Des31cSampleShadingTests.cpp170 GLenum internalFormat, tcu::TextureFormat const& texFormat, const char* m_sampler,
202 tcu::TextureFormat const& texFormat, const char* sampler, in SampleShadingRenderCase() argument
208 , m_texFormat(texFormat) in SampleShadingRenderCase()
475 const char* format, tcu::TextureFormat const& texFormat, const char* sampler,
497 tcu::TextureFormat const& texFormat, const char* sampler, in SampleShadingRenderFormatTests() argument
503 , m_texFormat(texFormat) in SampleShadingRenderFormatTests()
/external/deqp/modules/glshared/
DglsLongStressCase.cpp212 …ine 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.type == TextureF… in isMatchingGLInternalFormat()
228 …case GL_LUMINANCE: return texFormat.order == TextureFormat::L && texFormat.type == TextureFormat… in isMatchingGLInternalFormat()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp951 void ShaderRenderCaseInstance::uploadImage (const tcu::TextureFormat& texFormat, in uploadImage() argument
974 offsetMultiples.push_back(texFormat.getPixelSize()); in uploadImage()
1213 void ShaderRenderCaseInstance::uploadSparseImage (const tcu::TextureFormat& texFormat, in uploadSparseImage() argument
1240 offsetMultiples.push_back(texFormat.getPixelSize()); in uploadSparseImage()
1245 …teInfo, *imageMemoryBindSemaphore, sparseQueue, m_memAlloc, m_allocations, texFormat, sparseImage); in uploadSparseImage()
1335 tcu::TextureFormat texFormat; in useSampler() local
1343 texFormat = texture.getFormat(); in useSampler()
1362 texFormat = texture.getFormat(); in useSampler()
1396 texFormat = texture.getFormat(); in useSampler()
1423 texFormat = texture.getFormat(); in useSampler()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_tex_image.c444 mesa_format texFormat = MESA_FORMAT_NONE; in intelSetTexBuffer2() local
469 texFormat = MESA_FORMAT_B10G10R10X2_UNORM; in intelSetTexBuffer2()
471 texFormat = MESA_FORMAT_B8G8R8X8_UNORM; in intelSetTexBuffer2()
477 texFormat = MESA_FORMAT_B10G10R10A2_UNORM; in intelSetTexBuffer2()
479 texFormat = MESA_FORMAT_B8G8R8A8_UNORM; in intelSetTexBuffer2()
483 texFormat = MESA_FORMAT_B5G6R5_UNORM; in intelSetTexBuffer2()
487 mt = intel_miptree_create_for_bo(brw, rb->mt->bo, texFormat, 0, in intelSetTexBuffer2()
/external/deqp/framework/opengl/
DgluTextureUtil.cpp46 TransferFormat getTransferFormat (tcu::TextureFormat texFormat) in getTransferFormat() argument
54 switch (texFormat.type) in getTransferFormat()
71 switch (texFormat.order) in getTransferFormat()
97 switch (texFormat.type) in getTransferFormat()
120 case TextureFormat::UNSIGNED_INT_24_8: type = texFormat.order == TextureFormat::D in getTransferFormat()
140 deUint32 getInternalFormat (tcu::TextureFormat texFormat) in getInternalFormat() argument
148 switch (PACK_FMT(texFormat.order, texFormat.type)) in getInternalFormat()
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemShaderImageAccessTests.cpp272 const tcu::TextureFormat& texFormat = mapVkFormat(m_params.imageFormat); in initPrograms() local
273 const std::string imageFormat = getShaderImageFormatQualifier(texFormat); in initPrograms()
274 const std::string imageType = getShaderSamplerOrImageType(texFormat, false); in initPrograms()
275 const std::string samplerType = getShaderSamplerOrImageType(texFormat, true); in initPrograms()
621 const tcu::TextureFormat texFormat = mapVkFormat(m_params.imageFormat); in executeComputeTest() local
622 const vk::VkSamplerCreateInfo samplerParams = vk::mapSampler(refSampler, texFormat); in executeComputeTest()
855 const tcu::TextureFormat texFormat = mapVkFormat(m_params.imageFormat); in executeFragmentTest() local
856 const vk::VkSamplerCreateInfo samplerParams = vk::mapSampler(refSampler, texFormat); in executeFragmentTest()
/external/deqp/external/vulkancts/modules/vulkan/geometry/
DvktGeometryBasicGeometryShaderTests.cpp275 const tcu::TextureFormat texFormat = glu::mapGLInternalFormat(GL_RGBA8); in createPipelineLayout() local
276 const VkFormat format = mapTextureFormat(texFormat); in createPipelineLayout()
279 …tcu::TextureLevel texture (texFormat, static_cast<int>(viewportSize.x()), static_cast<int>(vi… in createPipelineLayout()
355 const tcu::TextureFormat texFormat = glu::mapGLInternalFormat(GL_RGBA8); in bindDescriptorSets() local
356 const VkFormat format = mapTextureFormat(texFormat); in bindDescriptorSets()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_texstate.c555 mesa_format texFormat; in radeonSetTexBuffer2() local
600 texFormat = MESA_FORMAT_BGR_UNORM8; in radeonSetTexBuffer2()
604 texFormat = MESA_FORMAT_B8G8R8A8_UNORM; in radeonSetTexBuffer2()
610 texFormat = MESA_FORMAT_BGR_UNORM8; in radeonSetTexBuffer2()
615 texFormat = MESA_FORMAT_B5G6R5_UNORM; in radeonSetTexBuffer2()
624 rb->cpp, texFormat); in radeonSetTexBuffer2()

123