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

12

/external/deqp/external/vulkancts/modules/vulkan/texture/
H A DvktSampleVerifierUtil.cpp676 void getPackInfo (const TextureFormat texFormat,
683 switch (texFormat.type)
773 TextureFormat texFormat,
778 TextureSwizzle readSwizzle = getChannelReadSwizzle(texFormat.order);
779 const TextureChannelClass chanClass = getTextureChannelClass(texFormat.type);
781 DE_ASSERT(getTextureChannelClass(texFormat.type) < 2);
791 const bool isPacked = isPackedType(texFormat.type);
795 getPackInfo(texFormat, bitSizes, bitOffsets, baseTypeBytes);
799 if (texFormat.type == TextureFormat::UNORM_INT_1010102_REV ||
800 texFormat
[all...]
H A DvktSampleVerifierUtil.hpp103 tcu::TextureFormat texFormat,
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_eglimage.c108 gl_format texFormat; local
125 texFormat = st_pipe_format_to_mesa_format(ps->format);
129 texFormat);
H A Dst_atom_texture.c221 const gl_format texFormat = firstImage->base.TexFormat; local
223 st_mesa_format_to_pipe_format(texFormat);
226 (_mesa_get_format_color_encoding(texFormat) == GL_SRGB)) {
231 _mesa_get_srgb_format_linear(texFormat);
H A Dst_cb_fbo.c512 gl_format texFormat; local
526 texFormat = _mesa_get_attachment_teximage_const(att)->TexFormat;
532 _mesa_get_format_color_encoding(texFormat) == GL_SRGB) {
533 const gl_format linearFormat = _mesa_get_srgb_format_linear(texFormat);
H A Dst_cb_drawpixels.c463 enum pipe_format texFormat)
467 pt = st_texture_create(st, st->internal_target, texFormat, 0,
1428 enum pipe_format srcFormat, texFormat; local
1504 texFormat = srcFormat;
1509 texFormat = st_choose_format(screen, GL_DEPTH_COMPONENT,
1512 assert(texFormat != PIPE_FORMAT_NONE);
1516 texFormat = st_choose_format(screen, GL_RGBA,
1519 assert(texFormat != PIPE_FORMAT_NONE);
1552 pt = alloc_texture(st, width, height, texFormat);
1564 if (srcFormat == texFormat) {
462 alloc_texture(struct st_context *st, GLsizei width, GLsizei height, enum pipe_format texFormat) argument
[all...]
/external/swiftshader/src/OpenGL/libGLES_CM/
H A Dutilities.h45 bool IsAlpha(GLenum texFormat);
46 bool IsRGB(GLenum texFormat);
47 bool IsRGBA(GLenum texFormat);
H A Dutilities.cpp166 bool IsAlpha(GLenum texFormat) argument
168 switch(texFormat)
177 bool IsRGB(GLenum texFormat) argument
179 switch(texFormat)
194 bool IsRGBA(GLenum texFormat) argument
196 switch(texFormat)
H A DContext.cpp2093 GLenum texFormat = texture->getFormat(GL_TEXTURE_2D, 0); local
2098 if(IsAlpha(texFormat)) // GL_ALPHA
2104 else if(IsRGB(texFormat)) // GL_LUMINANCE (or 1) / GL_RGB (or 3)
2110 else if(IsRGBA(texFormat)) // GL_LUMINANCE_ALPHA (or 2) / GL_RGBA (or 4)
2116 else UNREACHABLE(texFormat);
2119 if(IsAlpha(texFormat)) // GL_ALPHA
2125 else if(IsRGB(texFormat)) // GL_LUMINANCE (or 1) / GL_RGB (or 3)
2131 else if(IsRGBA(texFormat)) // GL_LUMINANCE_ALPHA (or 2) / GL_RGBA (or 4)
2137 else UNREACHABLE(texFormat);
2140 if(texFormat
[all...]
/external/deqp/modules/gles3/performance/
H A Des3pTextureCases.cpp95 const tcu::TextureFormat texFormat = glu::mapGLInternalFormat(m_internalFormat); local
96 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(texFormat);
97 const glu::Precision samplerPrec = (texFormat.type == tcu::TextureFormat::FLOAT ||
98 texFormat.type == tcu::TextureFormat::UNSIGNED_INT32 ||
99 texFormat.type == tcu::TextureFormat::SIGNED_INT32)
101 const glu::DataType samplerType = glu::getSampler2DType(texFormat);
/external/deqp/modules/gles31/functional/
H A Des31fTextureBorderClampTests.cpp219 static de::MovePtr<glu::Texture2D> createTextureFromInternalFormat (glu::RenderContext& renderCtx, deUint32 texFormat, const tcu::IVec2& size) argument
221 return de::MovePtr<glu::Texture2D>(new glu::Texture2D(renderCtx, texFormat, size.x(), size.y()));
224 static de::MovePtr<glu::Texture2D> createTextureFromFormatAndType (glu::RenderContext& renderCtx, deUint32 texFormat, deUint32 type, const tcu::IVec2& size) argument
226 return de::MovePtr<glu::Texture2D>(new glu::Texture2D(renderCtx, texFormat, type, size.x(), size.y()));
254 static de::MovePtr<glu::Texture3D> createTextureFromInternalFormat (glu::RenderContext& renderCtx, deUint32 texFormat, const tcu::IVec3& size) argument
256 return de::MovePtr<glu::Texture3D>(new glu::Texture3D(renderCtx, texFormat, size.x(), size.y(), size.z()));
259 static de::MovePtr<glu::Texture3D> createTextureFromFormatAndType (glu::RenderContext& renderCtx, deUint32 texFormat, deUint32 type, const tcu::IVec3& size) argument
261 return de::MovePtr<glu::Texture3D>(new glu::Texture3D(renderCtx, texFormat, type, size.x(), size.y(), size.z()));
284 de::MovePtr<T> genDummyTexture (glu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, deUint32 texFormat, const typename TextureTraits<T>::SizeType& size) argument
288 if (isDepthFormat(texFormat, tc
[all...]
H A Des31fOpaqueTypeIndexingTests.cpp276 tcu::TextureFormat texFormat,
281 const deUint32 intFormat = glu::getInternalFormat(texFormat);
282 const glu::TransferFormat transferFmt = glu::getTransferFormat(texFormat);
492 const TextureFormat texFormat = getSamplerTextureFormat(m_samplerType); local
497 vector<deUint8> texData (numSamplers * texFormat.getPixelSize());
498 const tcu::PixelBufferAccess refTexAccess (texFormat, numSamplers, 1, 1, &texData[0]);
554 setupTexture(gl, textures[samplerNdx], m_samplerType, texFormat, &texData[samplerNdx*texFormat.getPixelSize()]);
273 setupTexture(const glw::Functions& gl, deUint32 texture, glu::DataType samplerType, tcu::TextureFormat texFormat, const void* color) argument
/external/deqp/modules/egl/
H A DteglAndroidUtil.cpp145 const TextureFormat texFormat = glu::mapGLInternalFormat(m_format);
148 *ref = Texture2D(texFormat, 64, 64);
155 PixelBufferAccess nativeBuffer(texFormat, 64, 64, 1, bufferData);
/external/mesa3d/src/mesa/main/
H A Dtexparam.c994 gl_format texFormat; local
1006 texFormat = img->TexFormat;
1019 if (_mesa_is_format_compressed(texFormat)) {
1021 *params = _mesa_compressed_format_to_glenum(ctx, texFormat);
1050 *params = _mesa_get_format_bits(texFormat, pname);
1057 *params = _mesa_get_format_bits(texFormat, pname);
1060 *params = MIN2(_mesa_get_format_bits(texFormat,
1062 _mesa_get_format_bits(texFormat,
1073 *params = _mesa_get_format_bits(texFormat, pname);
1079 *params = _mesa_get_format_bits(texFormat, pnam
1140 gl_format texFormat = texObj->_BufferObjectFormat; local
[all...]
H A Dtexstorage.c133 gl_format texFormat; local
142 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0,
161 0, internalFormat, texFormat);
H A Dtexgetimage.c229 const gl_format texFormat = local
231 const GLenum baseFormat = _mesa_get_format_base_format(texFormat);
258 _mesa_decompress_image(texFormat, width, height,
323 const gl_format texFormat = local
388 _mesa_unpack_uint_rgba_row(texFormat, width, src, rgba_uint);
401 _mesa_unpack_rgba_row(texFormat, width, src, rgba);
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Dintel_tex_image.c280 gl_format texFormat = MESA_FORMAT_NONE; local
302 texFormat = MESA_FORMAT_XRGB8888;
306 texFormat = MESA_FORMAT_ARGB8888;
310 texFormat = MESA_FORMAT_RGB565;
316 internalFormat, texFormat, 0);
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dintel_tex_image.c280 gl_format texFormat = MESA_FORMAT_NONE; local
302 texFormat = MESA_FORMAT_XRGB8888;
306 texFormat = MESA_FORMAT_ARGB8888;
310 texFormat = MESA_FORMAT_RGB565;
316 internalFormat, texFormat, 0);
/external/mesa3d/src/mesa/drivers/dri/intel/
H A Dintel_tex_image.c280 gl_format texFormat = MESA_FORMAT_NONE; local
302 texFormat = MESA_FORMAT_XRGB8888;
306 texFormat = MESA_FORMAT_ARGB8888;
310 texFormat = MESA_FORMAT_RGB565;
316 internalFormat, texFormat, 0);
/external/deqp/modules/glshared/
H A DglsLongStressCase.cpp212 static inline bool isMatchingGLInternalFormat (const deUint32 internalFormat, const TextureFormat& texFormat) argument
218 case GL_RGBA: return texFormat.order == TextureFormat::RGBA &&
219 (texFormat.type == TextureFormat::UNORM_INT8 ||
220 texFormat.type == TextureFormat::UNORM_SHORT_4444 ||
221 texFormat.type == TextureFormat::UNORM_SHORT_5551);
223 case GL_RGB: return texFormat.order == TextureFormat::RGB &&
224 (texFormat.type == TextureFormat::UNORM_INT8 ||
225 texFormat.type == TextureFormat::UNORM_SHORT_565);
227 case GL_LUMINANCE_ALPHA: return texFormat.order == TextureFormat::LA && texFormat
[all...]
/external/mesa3d/src/mesa/drivers/dri/swrast/
H A Dswrast.c74 gl_format texFormat; local
90 texFormat = MESA_FORMAT_XRGB8888;
92 texFormat = MESA_FORMAT_ARGB8888;
95 w, h, 1, 0, internalFormat, texFormat);
/external/deqp/framework/opengl/
H A DgluTextureUtil.cpp43 * \param texFormat Generic texture format.
46 TransferFormat getTransferFormat (tcu::TextureFormat texFormat) argument
54 switch (texFormat.type)
71 switch (texFormat.order)
97 switch (texFormat.type)
120 case TextureFormat::UNSIGNED_INT_24_8: type = texFormat.order == TextureFormat::D
137 * \param texFormat Generic texture format.
140 deUint32 getInternalFormat (tcu::TextureFormat texFormat) argument
148 switch (PACK_FMT(texFormat.order, texFormat
[all...]
/external/mesa3d/src/mesa/drivers/dri/radeon/
H A Dradeon_texstate.c617 gl_format texFormat; local
663 texFormat = MESA_FORMAT_RGB888;
667 texFormat = MESA_FORMAT_ARGB8888;
673 texFormat = MESA_FORMAT_RGB888;
678 texFormat = MESA_FORMAT_RGB565;
687 rb->cpp, texFormat);
/external/deqp/external/vulkancts/modules/vulkan/geometry/
H A DvktGeometryBasicGeometryShaderTests.cpp387 const tcu::TextureFormat texFormat = glu::mapGLInternalFormat(GL_RGBA8); local
388 const VkFormat format = mapTextureFormat(texFormat);
391 tcu::TextureLevel texture (texFormat, static_cast<int>(viewportSize.x()), static_cast<int>(viewportSize.y()));
467 const tcu::TextureFormat texFormat = glu::mapGLInternalFormat(GL_RGBA8); local
468 const VkFormat format = mapTextureFormat(texFormat);
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRender.hpp544 void uploadImage (const tcu::TextureFormat& texFormat,
558 void uploadSparseImage (const tcu::TextureFormat& texFormat,
570 const tcu::TextureFormat& texFormat,

Completed in 601 milliseconds

12