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

123

/external/mesa3d/src/mesa/state_tracker/
H A Dst_copytex.h33 GLuint cubeFace, GLenum texFormat);
H A Dst_copytex.c45 * \param texFormat what texture format to use, if texture doesn't exist
51 GLuint cubeFace, GLenum texFormat)
81 texFormat,
102 texFormat,
126 texFormat,
48 st_copy_framebuffer_to_texture(GLenum srcBuffer, GLint fbWidth, GLint fbHeight, GLenum texTarget, GLint texLevel, GLuint cubeFace, GLenum texFormat) argument
H A Dst_cb_eglimage.c105 mesa_format texFormat; local
122 texFormat = st_pipe_format_to_mesa_format(ps->format);
127 if (texFormat == MESA_FORMAT_NONE) {
130 texFormat = MESA_FORMAT_R_UNORM8;
134 texFormat = MESA_FORMAT_R_UNORM8;
144 texFormat);
H A Dst_vdpau.c192 mesa_format texFormat; local
228 texFormat = st_pipe_format_to_mesa_format(res->format);
232 texFormat);
H A Dst_cb_fbo.c560 mesa_format texFormat; local
580 texFormat = att->Renderbuffer->TexImage->TexFormat;
586 _mesa_get_format_color_encoding(texFormat) == GL_SRGB) {
587 const mesa_format linearFormat = _mesa_get_srgb_format_linear(texFormat);
/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/swiftshader/src/OpenGL/libGLES_CM/
H A Dutilities.h54 bool IsAlpha(GLint texFormat);
55 bool IsRGB(GLint texFormat);
56 bool IsRGBA(GLint texFormat);
/external/mesa3d/src/gallium/state_trackers/wgl/
H A Dstw_ext_rendertexture.c110 GLenum texFormat, srcBuffer, target; local
152 texFormat = translate_texture_format(fb->textureFormat);
153 if (texFormat == GL_NONE) {
179 fb->textureFace, texFormat);
/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 Dtexstorage.c144 GLenum internalFormat, mesa_format texFormat)
164 0, internalFormat, texFormat);
397 mesa_format texFormat; local
407 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0,
409 assert(texFormat != MESA_FORMAT_NONE);
415 sizeOK = ctx->Driver.TestProxyTexImage(ctx, target, levels, 0, texFormat,
421 internalformat, texFormat);
448 internalformat, texFormat)) {
140 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) argument
H A Dreadpix.h50 mesa_format texFormat,
H A Dtexparam.c1302 mesa_format texFormat; local
1323 texFormat = img->TexFormat;
1336 if (_mesa_is_format_compressed(texFormat)) {
1338 *params = _mesa_compressed_format_to_glenum(ctx, texFormat);
1369 *params = _mesa_get_format_bits(texFormat, pname);
1378 *params = _mesa_get_format_bits(texFormat, pname);
1381 *params = MIN2(_mesa_get_format_bits(texFormat,
1383 _mesa_get_format_bits(texFormat,
1394 *params = _mesa_get_format_bits(texFormat, pname);
1397 *params = _mesa_get_format_bits(texFormat, pnam
1501 mesa_format texFormat = texObj->_BufferObjectFormat; local
[all...]
H A Dtextureview.c307 GLenum internalFormat, mesa_format texFormat)
331 0, internalFormat, texFormat);
533 mesa_format texFormat; local
634 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0,
636 assert(texFormat != MESA_FORMAT_NONE);
637 if (texFormat == MESA_FORMAT_NONE) return;
717 sizeOK = ctx->Driver.TestProxyTexImage(ctx, target, 1, 0, texFormat,
777 internalformat, texFormat)) {
302 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) argument
H A Dtexstore.h145 _mesa_compute_compressed_pixelstore(GLuint dims, mesa_format texFormat,
H A Dteximage.c2886 mesa_format texFormat; local
2964 texFormat = _mesa_glenum_to_compressed_format(internalFormat);
2980 texFormat = _mesa_choose_texture_format(ctx, texObj, target, level,
2984 assert(texFormat != MESA_FORMAT_NONE);
2992 0, level, texFormat, 1,
3005 border, internalFormat, texFormat);
3057 border, internalFormat, texFormat);
3509 get_copy_tex_image_source(struct gl_context *ctx, mesa_format texFormat) argument
3511 if (_mesa_get_format_bits(texFormat, GL_DEPTH_BITS) > 0) {
3514 } else if (_mesa_get_format_bits(texFormat, GL_STENCIL_BIT
3581 can_avoid_reallocation(const struct gl_texture_image *texImage, GLenum internalFormat, mesa_format texFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) argument
3610 mesa_format texFormat; local
5362 mesa_format texFormat; local
[all...]
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Dintel_tex_image.c289 mesa_format texFormat = MESA_FORMAT_NONE; local
311 texFormat = MESA_FORMAT_B8G8R8X8_UNORM;
315 texFormat = MESA_FORMAT_B8G8R8A8_UNORM;
319 texFormat = MESA_FORMAT_B5G6R5_UNORM;
325 internalFormat, texFormat, 0,
/external/deqp/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,
208 , m_texFormat(texFormat)
475 const char* format, tcu::TextureFormat const& texFormat, const char* sampler,
497 tcu::TextureFormat const& texFormat, const char* sampler,
503 , m_texFormat(texFormat)
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) argument
495 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) argument
/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/i965/
H A Dintel_tex_image.c304 mesa_format texFormat = MESA_FORMAT_NONE; local
327 texFormat = MESA_FORMAT_B8G8R8X8_UNORM;
331 texFormat = MESA_FORMAT_B8G8R8A8_UNORM;
335 texFormat = MESA_FORMAT_B5G6R5_UNORM;
339 mt = intel_miptree_create_for_bo(brw, rb->mt->bo, texFormat, 0,
/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.c549 mesa_format texFormat; local
594 texFormat = MESA_FORMAT_BGR_UNORM8;
598 texFormat = MESA_FORMAT_B8G8R8A8_UNORM;
604 texFormat = MESA_FORMAT_BGR_UNORM8;
609 texFormat = MESA_FORMAT_B5G6R5_UNORM;
618 rb->cpp, texFormat);

Completed in 495 milliseconds

123