/third_party/mesa3d/src/mesa/main/ |
H A D | texgen.c | 48 get_texgen(struct gl_context *ctx, GLuint texunitIndex, GLenum coord, const char* caller) in get_texgen() argument 59 return (coord == GL_TEXTURE_GEN_STR_OES) in get_texgen() 63 switch (coord) { in get_texgen() 80 texgenfv( GLuint texunitIndex, GLenum coord, GLenum pname, in texgenfv() argument 86 texgen = get_texgen(ctx, texunitIndex, coord, caller); in texgenfv() 88 _mesa_error(ctx, GL_INVALID_ENUM, "%s(coord)", caller); in texgenfv() 93 int index = coord == GL_TEXTURE_GEN_STR_OES ? 0 : (coord - GL_S); in texgenfv() 110 if (coord == GL_S || coord in texgenfv() 185 gettexgendv( GLuint texunitIndex, GLenum coord, GLenum pname, GLdouble *params, const char* caller) gettexgendv() argument 218 gettexgenfv( GLenum texunitIndex, GLenum coord, GLenum pname, GLfloat *params, const char* caller ) gettexgenfv() argument 259 gettexgeniv( GLenum texunitIndex, GLenum coord, GLenum pname, GLint *params, const char* caller) gettexgeniv() argument 305 _mesa_TexGenfv( GLenum coord, GLenum pname, const GLfloat *params ) _mesa_TexGenfv() argument 313 _mesa_MultiTexGenfvEXT( GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params ) _mesa_MultiTexGenfvEXT() argument 320 _mesa_TexGeniv(GLenum coord, GLenum pname, const GLint *params ) _mesa_TexGeniv() argument 337 _mesa_MultiTexGenivEXT(GLenum texunit, GLenum coord, GLenum pname, const GLint *params ) _mesa_MultiTexGenivEXT() argument 354 _mesa_TexGend(GLenum coord, GLenum pname, GLdouble param ) _mesa_TexGend() argument 365 _mesa_MultiTexGendEXT(GLenum texunit, GLenum coord, GLenum pname, GLdouble param ) _mesa_MultiTexGendEXT() argument 375 _mesa_TexGendv(GLenum coord, GLenum pname, const GLdouble *params ) _mesa_TexGendv() argument 393 _mesa_MultiTexGendvEXT(GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params ) _mesa_MultiTexGendvEXT() argument 410 _mesa_TexGenf( GLenum coord, GLenum pname, GLfloat param ) _mesa_TexGenf() argument 421 _mesa_MultiTexGenfEXT( GLenum texunit, GLenum coord, GLenum pname, GLfloat param ) _mesa_MultiTexGenfEXT() argument 431 _mesa_TexGeni( GLenum coord, GLenum pname, GLint param ) _mesa_TexGeni() argument 441 _mesa_MultiTexGeniEXT( GLenum texunit, GLenum coord, GLenum pname, GLint param ) _mesa_MultiTexGeniEXT() argument 451 _mesa_GetTexGendv( GLenum coord, GLenum pname, GLdouble *params ) _mesa_GetTexGendv() argument 459 _mesa_GetMultiTexGendvEXT( GLenum texunit, GLenum coord, GLenum pname, GLdouble *params ) _mesa_GetMultiTexGendvEXT() argument 466 _mesa_GetTexGenfv( GLenum coord, GLenum pname, GLfloat *params ) _mesa_GetTexGenfv() argument 474 _mesa_GetMultiTexGenfvEXT( GLenum texunit, GLenum coord, GLenum pname, GLfloat *params ) _mesa_GetMultiTexGenfvEXT() argument 481 _mesa_GetTexGeniv( GLenum coord, GLenum pname, GLint *params ) _mesa_GetTexGeniv() argument 489 _mesa_GetMultiTexGenivEXT( GLenum texunit, GLenum coord, GLenum pname, GLint *params ) _mesa_GetMultiTexGenivEXT() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | jpeg2000.c | 289 prec->coord[0][0] = ((reslevel->coord[0][0] >> reslevel->log2_prec_width) + precno % reslevel->num_precincts_x) * in init_prec() 293 prec->coord[1][0] = ((reslevel->coord[1][0] >> reslevel->log2_prec_height) + precno / reslevel->num_precincts_x) * in init_prec() 297 prec->coord[0][1] = prec->coord[0][0] + in init_prec() 299 prec->coord[0][0] = FFMAX(prec->coord[0][0], band->coord[0][0]); in init_prec() 300 prec->coord[ in init_prec() [all...] |
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuTexLookupVerifier.hpp | 110 Vec2 computeCubeLodBoundsFromDerivates (const Vec3& coord, const Vec3& coordDx, const Vec3& coordDy, const int faceSize, const LodPrecision& prec); 114 bool isLookupResultValid (const Texture1DView& texture, const Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const Vec4& result); 115 bool isLookupResultValid (const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result); 116 bool isLookupResultValid (const TextureCubeView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result); 117 bool isLookupResultValid (const Texture1DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result); 118 bool isLookupResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result); 119 bool isLookupResultValid (const Texture3DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result); 120 bool isLookupResultValid (const TextureCubeArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const IVec4& coordBits, const Vec4& coord, const Vec2& lodBounds, const Vec4& result); 126 bool isLevel2DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const LookupPrecision& prec, const Vec2& coord, const int coordZ, const Vec4& result); 127 bool isLevel2DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec2& coord, cons [all...] |
H A D | tcuTexCompareVerifier.hpp | 55 bool isTexCompareResultValid (const Texture2DView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const Vec2& lodBounds, const float cmpReference, const float result); 56 bool isTexCompareResultValid (const TextureCubeView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const float cmpReference, const float result); 57 bool isTexCompareResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const float cmpReference, const float result); 58 bool isTexCompareResultValid (const Texture1DView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec1& coord, const Vec2& lodBounds, const float cmpReference, const float result); 59 bool isTexCompareResultValid (const Texture1DArrayView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const Vec2& lodBounds, const float cmpReference, const float result); 60 bool isTexCompareResultValid (const TextureCubeArrayView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec4& coord, const Vec2& lodBounds, const float cmpReference, const float result); 62 bool isGatherOffsetsCompareResultValid (const Texture2DView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const IVec2 (&offsets)[4], float cmpReference, const Vec4& result); 63 bool isGatherOffsetsCompareResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec3& coord, const IVec2 (&offsets)[4], float cmpReference, const Vec4& result); 65 bool isGatherCompareResultValid (const TextureCubeView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec3& coord, float cmpReference, const Vec4& result);
|
H A D | tcuTexVerifierUtil.cpp | 58 Vec2 computeNonNormalizedCoordBounds (const bool normalizedCoords, const int dim, const float coord, const int coordBits, const int uvBits) in computeNonNormalizedCoordBounds() argument 60 const float coordErr = computeFloatingPointError(coord, coordBits); in computeNonNormalizedCoordBounds() 61 const float minN = coord - coordErr; in computeNonNormalizedCoordBounds() 62 const float maxN = coord + coordErr; in computeNonNormalizedCoordBounds() 73 void getPossibleCubeFaces (const Vec3& coord, const IVec3& bits, CubeFace* faces, int& numFaces) in getPossibleCubeFaces() argument 75 const float x = coord.x(); in getPossibleCubeFaces() 76 const float y = coord.y(); in getPossibleCubeFaces() 77 const float z = coord.z(); in getPossibleCubeFaces()
|
H A D | tcuTexLookupVerifier.cpp | 595 const Vec2& coord, in isNearestSampleResultValid() 599 const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidth(), coord.x(), prec.coordBits.x(), prec.uvwBits.x()); in isNearestSampleResultValid() 600 const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeight(), coord.y(), prec.coordBits.y(), prec.uvwBits.y()); in isNearestSampleResultValid() 630 const Vec3& coord, in isNearestSampleResultValid() 633 const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidth(), coord.x(), prec.coordBits.x(), prec.uvwBits.x()); in isNearestSampleResultValid() 634 const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeight(), coord.y(), prec.coordBits.y(), prec.uvwBits.y()); in isNearestSampleResultValid() 635 const Vec2 wBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getDepth(), coord.z(), prec.coordBits.z(), prec.uvwBits.z()); in isNearestSampleResultValid() 723 const Vec2& coord, in isLinearSampleResultValid() 727 const Vec2 uBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getWidth(), coord.x(), prec.coordBits.x(), prec.uvwBits.x()); in isLinearSampleResultValid() 728 const Vec2 vBounds = computeNonNormalizedCoordBounds(sampler.normalizedCoords, level.getHeight(), coord in isLinearSampleResultValid() 592 isNearestSampleResultValid(const ConstPixelBufferAccess& level, const Sampler& sampler, const PrecType& prec, const Vec2& coord, const int coordZ, const Vector<ScalarType, 4>& result) isNearestSampleResultValid() argument 627 isNearestSampleResultValid(const ConstPixelBufferAccess& level, const Sampler& sampler, const PrecType& prec, const Vec3& coord, const Vector<ScalarType, 4>& result) isNearestSampleResultValid() argument 720 isLinearSampleResultValid(const ConstPixelBufferAccess& level, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const int coordZ, const Vec4& result) isLinearSampleResultValid() argument 789 isLinearSampleResultValid(const ConstPixelBufferAccess& level, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec4& result) isLinearSampleResultValid() argument 869 isNearestMipmapLinearSampleResultValid(const ConstPixelBufferAccess& level0, const ConstPixelBufferAccess& level1, const Sampler& sampler, const LookupPrecision& prec, const float coord, const int coordY, const Vec2& fBounds, const Vec4& result) isNearestMipmapLinearSampleResultValid() argument 905 isNearestMipmapLinearSampleResultValid(const ConstPixelBufferAccess& level0, const ConstPixelBufferAccess& level1, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const int coordZ, const Vec2& fBounds, const Vec4& result) isNearestMipmapLinearSampleResultValid() argument 955 isNearestMipmapLinearSampleResultValid(const ConstPixelBufferAccess& level0, const ConstPixelBufferAccess& level1, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& fBounds, const Vec4& result) isNearestMipmapLinearSampleResultValid() argument 1098 isLinearMipmapLinearSampleResultValid(const ConstPixelBufferAccess& level0, const ConstPixelBufferAccess& level1, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const int coordZ, const Vec2& fBounds, const Vec4& result) isLinearMipmapLinearSampleResultValid() argument 1201 isLinearMipmapLinearSampleResultValid(const ConstPixelBufferAccess& level0, const ConstPixelBufferAccess& level1, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& fBounds, const Vec4& result) isLinearMipmapLinearSampleResultValid() argument 1343 isLevelSampleResultValid(const ConstPixelBufferAccess& level, const Sampler& sampler, const Sampler::FilterMode filterMode, const LookupPrecision& prec, const Vec2& coord, const int coordZ, const Vec4& result) isLevelSampleResultValid() argument 1373 isMipmapLinearSampleResultValid(const ConstPixelBufferAccess& level0, const ConstPixelBufferAccess& level1, const Sampler& sampler, const Sampler::FilterMode levelFilter, const LookupPrecision& prec, const Vec2& coord, const int coordZ, const Vec2& fBounds, const Vec4& result) isMipmapLinearSampleResultValid() argument 1389 isLookupResultValid(const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result) isLookupResultValid() argument 1454 isLookupResultValid(const Texture1DView& texture, const Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const Vec4& result) isLookupResultValid() argument 1751 isLookupResultValid(const TextureCubeView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result) isLookupResultValid() argument 1854 isLookupResultValid(const Texture1DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result) isLookupResultValid() argument 1924 isLookupResultValid(const Texture2DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result) isLookupResultValid() argument 1994 isLevelSampleResultValid(const ConstPixelBufferAccess& level, const Sampler& sampler, const Sampler::FilterMode filterMode, const LookupPrecision& prec, const Vec3& coord, const Vec4& result) isLevelSampleResultValid() argument 2007 isMipmapLinearSampleResultValid(const ConstPixelBufferAccess& level0, const ConstPixelBufferAccess& level1, const Sampler& sampler, const Sampler::FilterMode levelFilter, const LookupPrecision& prec, const Vec3& coord, const Vec2& fBounds, const Vec4& result) isMipmapLinearSampleResultValid() argument 2022 isLookupResultValid(const Texture3DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result) isLookupResultValid() argument 2099 isLookupResultValid(const TextureCubeArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const IVec4& coordBits, const Vec4& coord, const Vec2& lodBounds, const Vec4& result) isLookupResultValid() argument 2259 computeCubeLodBoundsFromDerivates(const Vec3& coord, const Vec3& coordDx, const Vec3& coordDy, const int faceSize, const LodPrecision& prec) computeCubeLodBoundsFromDerivates() argument 2363 isLevel2DLookupResultValid(const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const LookupPrecision& prec, const Vec2& coord, const int coordZ, const Vec4& result) isLevel2DLookupResultValid() argument 2375 isLevel2DLookupResultValid(const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec2& coord, const int coordZ, const IVec4& result) isLevel2DLookupResultValid() argument 2388 isLevel2DLookupResultValid(const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec2& coord, const int coordZ, const UVec4& result) isLevel2DLookupResultValid() argument 2401 isLevel3DLookupResultValid(const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const LookupPrecision& prec, const Vec3& coord, const Vec4& result) isLevel3DLookupResultValid() argument 2412 isLevel3DLookupResultValid(const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec3& coord, const IVec4& result) isLevel3DLookupResultValid() argument 2424 isLevel3DLookupResultValid(const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec3& coord, const UVec4& result) isLevel3DLookupResultValid() argument 2437 isGatherOffsetsResultValid(const ConstPixelBufferAccess& level, const Sampler& sampler, const PrecType& prec, const Vec2& coord, int coordZ, int componentNdx, const IVec2 (&offsets)[4], const Vector<ScalarType, 4>& result) isGatherOffsetsResultValid() argument 2479 isGatherOffsetsResultValid(const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4], const Vec4& result) isGatherOffsetsResultValid() argument 2490 isGatherOffsetsResultValid(const Texture2DView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4], const IVec4& result) isGatherOffsetsResultValid() argument 2501 isGatherOffsetsResultValid(const Texture2DView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4], const UVec4& result) isGatherOffsetsResultValid() argument 2513 is2DArrayGatherOffsetsResultValid(const Texture2DArrayView& texture, const Sampler& sampler, const PrecType& prec, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4], const Vector<ScalarType, 4>& result) is2DArrayGatherOffsetsResultValid() argument 2530 isGatherOffsetsResultValid(const Texture2DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4], const Vec4& result) isGatherOffsetsResultValid() argument 2541 isGatherOffsetsResultValid(const Texture2DArrayView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4], const IVec4& result) isGatherOffsetsResultValid() argument 2552 isGatherOffsetsResultValid(const Texture2DArrayView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4], const UVec4& result) isGatherOffsetsResultValid() argument 2621 isCubeGatherResultValid(const TextureCubeView& texture, const Sampler& sampler, const PrecType& prec, const Vec3& coord, int componentNdx, const Vector<ScalarType, 4>& result) isCubeGatherResultValid() argument 2647 isGatherResultValid(const TextureCubeView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, int componentNdx, const Vec4& result) isGatherResultValid() argument 2657 isGatherResultValid(const TextureCubeView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec4& result) isGatherResultValid() argument 2667 isGatherResultValid(const TextureCubeView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const UVec4& result) isGatherResultValid() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
H A D | vktSampleVerifier.cpp | 86 bool SampleVerifier::coordOutOfRange (const IVec3& coord, int compNdx, int level) const in coordOutOfRange() argument 90 return coord[compNdx] < 0 || coord[compNdx] >= m_levels[level].getSize()[compNdx]; in coordOutOfRange() 93 void SampleVerifier::fetchTexelWrapped (const IVec3& coord, in fetchTexelWrapped() argument 103 pixelPtr = m_levels[level].getPixelPtr(coord[0], layer, 0); in fetchTexelWrapped() 107 pixelPtr = m_levels[level].getPixelPtr(coord[0], coord[1], layer); in fetchTexelWrapped() 111 pixelPtr = m_levels[level].getPixelPtr(coord[0], coord[1], coord[ in fetchTexelWrapped() 135 IVec3 coord = coordIn; fetchTexel() local [all...] |
H A D | vktSampleVerifierUtil.cpp | 247 void calcUnnormalizedCoordRange (const Vec4& coord, 257 Interval coordInterval = Interval(coord[compNdx]); 389 deInt32 wrapTexelCoord (const deInt32 coord, 398 wrappedCoord = mod(coord, size); 402 wrappedCoord = (size - 1) - mirror(mod(coord, 2 * size) - size); 406 wrappedCoord = de::clamp(coord, 0, (deInt32) size - 1); 410 wrappedCoord = de::clamp(coord, -1, (deInt32) size); 414 wrappedCoord = de::clamp(mirror(coord), 0, (deInt32) size - 1); 472 void wrapCubemapEdge (const IVec2& coord, 480 if (coord[ [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
H A D | vktSampleVerifier.cpp | 86 bool SampleVerifier::coordOutOfRange (const IVec3& coord, int compNdx, int level) const in coordOutOfRange() argument 90 return coord[compNdx] < 0 || coord[compNdx] >= m_levels[level].getSize()[compNdx]; in coordOutOfRange() 93 void SampleVerifier::fetchTexelWrapped (const IVec3& coord, in fetchTexelWrapped() argument 103 pixelPtr = m_levels[level].getPixelPtr(coord[0], layer, 0); in fetchTexelWrapped() 107 pixelPtr = m_levels[level].getPixelPtr(coord[0], coord[1], layer); in fetchTexelWrapped() 111 pixelPtr = m_levels[level].getPixelPtr(coord[0], coord[1], coord[ in fetchTexelWrapped() 135 IVec3 coord = coordIn; fetchTexel() local [all...] |
H A D | vktSampleVerifierUtil.cpp | 247 void calcUnnormalizedCoordRange (const Vec4& coord, 257 Interval coordInterval = Interval(coord[compNdx]); 389 deInt32 wrapTexelCoord (const deInt32 coord, 398 wrappedCoord = mod(coord, size); 402 wrappedCoord = (size - 1) - mirror(mod(coord, 2 * size) - size); 406 wrappedCoord = de::clamp(coord, 0, (deInt32) size - 1); 410 wrappedCoord = de::clamp(coord, -1, (deInt32) size); 414 wrappedCoord = de::clamp(mirror(coord), 0, (deInt32) size - 1); 472 void wrapCubemapEdge (const IVec2& coord, 480 if (coord[ [all...] |
/third_party/mesa3d/src/microsoft/compiler/ |
H A D | dxil_nir_lower_int_cubemaps.c | 136 evaluate_face_x(nir_builder *b, coord_t *coord) in evaluate_face_x() argument 138 nir_ssa_def *sign = nir_fsign(b, coord->rx); in evaluate_face_x() 139 nir_ssa_def *positive = nir_fge(b, coord->rx, nir_imm_float(b, 0.0)); in evaluate_face_x() 140 nir_ssa_def *ima = nir_fdiv(b, nir_imm_float(b, -0.5), coord->arx); in evaluate_face_x() 142 nir_ssa_def *x = nir_fadd(b, nir_fmul(b, nir_fmul(b, sign, ima), coord->rz), nir_imm_float(b, 0.5)); in evaluate_face_x() 143 nir_ssa_def *y = nir_fadd(b, nir_fmul(b, ima, coord->ry), nir_imm_float(b, 0.5)); in evaluate_face_x() 146 if (coord->array) in evaluate_face_x() 147 face = nir_fadd(b, face, coord->array); in evaluate_face_x() 149 return coord->image ? in evaluate_face_x() 155 evaluate_face_y(nir_builder *b, coord_t *coord) in evaluate_face_y() argument 174 evaluate_face_z(nir_builder *b, coord_t *coord) evaluate_face_z() argument 193 create_array_tex_from_cube_tex(nir_builder *b, nir_tex_instr *tex, nir_ssa_def *coord, nir_texop op) create_array_tex_from_cube_tex() argument 342 handle_cube_gather(nir_builder *b, nir_tex_instr *tex, nir_ssa_def *coord) handle_cube_gather() argument 382 lower_cube_coords(nir_builder *b, nir_ssa_def *coord, bool is_array, bool is_image) lower_cube_coords() argument 431 nir_ssa_def *coord = tex->src[coord_index].src.ssa; lower_cube_sample() local [all...] |
/third_party/backends/backend/ |
H A D | hp3900_debug.c | 464 DBG (DBG_FNC, " -> left = %i\n", params->coord.left); in dbg_ScanParams() 465 DBG (DBG_FNC, " -> width = %i\n", params->coord.width); in dbg_ScanParams() 466 DBG (DBG_FNC, " -> top = %i\n", params->coord.top); in dbg_ScanParams() 467 DBG (DBG_FNC, " -> height = %i\n", params->coord.height); in dbg_ScanParams() 624 (scancfg->coord.width * scancfg->coord.height * 3)); in dbg_autoref() 631 for (c = 0; c < (scancfg->coord.width * scancfg->coord.height); c++) in dbg_autoref() 639 for (c = 0; c < scancfg->coord.height; c++) in dbg_autoref() 644 *(img + (scancfg->coord in dbg_autoref() [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_lower_cubemap_to_array.c | 91 evaluate_face_x(nir_builder *b, coord_t *coord) in evaluate_face_x() argument 93 nir_ssa_def *sign = nir_fsign(b, coord->rx); in evaluate_face_x() 94 nir_ssa_def *positive = nir_fge(b, coord->rx, nir_imm_float(b, 0.0)); in evaluate_face_x() 95 nir_ssa_def *ima = nir_fdiv(b, nir_imm_float(b, -0.5), coord->arx); in evaluate_face_x() 97 nir_ssa_def *x = nir_fadd(b, nir_fmul(b, nir_fmul(b, sign, ima), coord->rz), nir_imm_float(b, 0.5)); in evaluate_face_x() 98 nir_ssa_def *y = nir_fadd(b, nir_fmul(b, ima, coord->ry), nir_imm_float(b, 0.5)); in evaluate_face_x() 101 if (coord->array) in evaluate_face_x() 102 face = nir_fadd(b, face, coord->array); in evaluate_face_x() 108 evaluate_face_y(nir_builder *b, coord_t *coord) in evaluate_face_y() argument 110 nir_ssa_def *sign = nir_fsign(b, coord in evaluate_face_y() 125 evaluate_face_z(nir_builder *b, coord_t *coord) evaluate_face_z() argument 142 create_array_tex_from_cube_tex(nir_builder *b, nir_tex_instr *tex, nir_ssa_def *coord, nir_texop op) create_array_tex_from_cube_tex() argument 303 handle_cube_gather(nir_builder *b, nir_tex_instr *tex, nir_ssa_def *coord) handle_cube_gather() argument 344 lower_cube_coords(nir_builder *b, nir_ssa_def *coord, bool is_array) lower_cube_coords() argument 466 nir_ssa_def *coord = tex->src[coord_index].src.ssa; lower_cube_sample() local [all...] |
/third_party/skia/third_party/externals/spirv-cross/include/spirv_cross/ |
H A D | image.hpp | 37 inline virtual T load(glm::ivec2 coord) const in load() 41 inline virtual void store(glm::ivec2 coord, const T &v) in store() 51 inline T imageLoad(const image2DBase<T> &image, glm::ivec2 coord) in imageLoad() argument 53 return image.load(coord); in imageLoad() 57 void imageStore(image2DBase<T> &image, glm::ivec2 coord, const T &value) in imageStore() argument 59 image.store(coord, value); in imageStore()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_state_fs_analysis.c | 111 tex->coord[0].file != TGSI_FILE_INPUT || in match_aero_minification_shader() 112 tex->coord[1].file != TGSI_FILE_INPUT || in match_aero_minification_shader() 113 tex->coord[0].u.index != tex->coord[1].u.index || in match_aero_minification_shader() 114 (tex->coord[0].swizzle % 2) != 0 || in match_aero_minification_shader() 115 tex->coord[1].swizzle != tex->coord[0].swizzle + 1) { in match_aero_minification_shader() 119 coord_mask |= 1 << (tex->coord[0].u.index*2 + tex->coord[0].swizzle/2); in match_aero_minification_shader() 218 * decl_var shader_in INTERP_MODE_NONE float coord (VARYING_SLOT_VAR in get_nir_input_info() [all...] |
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_xy_coord.cpp | 23 dng_xy_coord XYZtoXY (const dng_vector_3 &coord) in XYZtoXY() argument 26 real64 X = coord [0]; in XYZtoXY() 27 real64 Y = coord [1]; in XYZtoXY() 28 real64 Z = coord [2]; in XYZtoXY() 46 dng_vector_3 XYtoXYZ (const dng_xy_coord &coord) in XYtoXYZ() argument 49 dng_xy_coord temp = coord; in XYtoXYZ() 51 // Restrict xy coord to someplace inside the range of real xy coordinates. in XYtoXYZ()
|
H A D | dng_xy_coord.h | 69 bool operator== (const dng_xy_coord &coord) const in operator ==() 71 return coord.x == x && in operator ==() 72 coord.y == y; in operator ==() 75 bool operator!= (const dng_xy_coord &coord) const in operator !=() 77 return !(*this == coord); in operator !=() 171 dng_xy_coord XYZtoXY (const dng_vector_3 &coord); 173 dng_vector_3 XYtoXYZ (const dng_xy_coord &coord);
|
/third_party/mesa3d/src/broadcom/compiler/ |
H A D | v3d_nir_lower_txf_ms.c | 46 nir_ssa_def *coord = instr->src[coord_index].src.ssa; in v3d_nir_lower_txf_ms_instr() local 51 nir_ishl(b, nir_channel(b, coord, 0), one), in v3d_nir_lower_txf_ms_instr() 54 nir_ishl(b, nir_channel(b, coord, 1), one), in v3d_nir_lower_txf_ms_instr() 57 coord = nir_vec3(b, x, y, nir_channel(b, coord, 2)); in v3d_nir_lower_txf_ms_instr() 59 coord = nir_vec2(b, x, y); in v3d_nir_lower_txf_ms_instr() 63 nir_src_for_ssa(coord)); in v3d_nir_lower_txf_ms_instr()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_sample_soa.c | 179 * texel = sample_texture(coord); in lp_build_sample_texel_soa() 237 LLVMValueRef coord, boolean posOnly) in lp_build_coord_mirror() 246 * the coord is in the "odd" section, otherwise positive.) in lp_build_coord_mirror() 249 coord = lp_build_mul(coord_bld, coord, half); in lp_build_coord_mirror() 250 fract = lp_build_round(coord_bld, coord); in lp_build_coord_mirror() 251 fract = lp_build_sub(coord_bld, coord, fract); in lp_build_coord_mirror() 252 coord = lp_build_add(coord_bld, fract, fract); in lp_build_coord_mirror() 257 * that ultimately a scaled coord of -x.0 should map to int coord in lp_build_coord_mirror() 236 lp_build_coord_mirror(struct lp_build_sample_context *bld, LLVMValueRef coord, boolean posOnly) lp_build_coord_mirror() argument 319 lp_build_sample_wrap_linear(struct lp_build_sample_context *bld, boolean is_gather, LLVMValueRef coord, LLVMValueRef length, LLVMValueRef length_f, LLVMValueRef offset, boolean is_pot, unsigned wrap_mode, LLVMValueRef *x0_out, LLVMValueRef *x1_out, LLVMValueRef *weight_out) lp_build_sample_wrap_linear() argument 686 lp_build_sample_wrap_nearest(struct lp_build_sample_context *bld, LLVMValueRef coord, LLVMValueRef length, LLVMValueRef length_f, LLVMValueRef offset, boolean is_pot, unsigned wrap_mode) lp_build_sample_wrap_nearest() argument [all...] |
/third_party/skia/third_party/externals/spirv-tools/test/val/ |
H A D | val_opencl_test.cpp | 199 OpName %coord "coord" in TEST_F() 209 %coord = OpConstantComposite %v2uint %uint_7 %uint_3 in TEST_F() 213 %call = OpImageRead %v4uint %img %coord ConstOffset %coord in TEST_F() 225 "\n %call = OpImageRead %v4uint %img %coord ConstOffset %coord\n")); in TEST_F() 236 OpName %coord "coord" in TEST_F() 240 %coord in TEST_F() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/ |
H A D | val_opencl_test.cpp | 199 OpName %coord "coord" in TEST_F() 209 %coord = OpConstantComposite %v2uint %uint_7 %uint_3 in TEST_F() 213 %call = OpImageRead %v4uint %img %coord ConstOffset %coord in TEST_F() 225 "\n %call = OpImageRead %v4uint %img %coord ConstOffset %coord\n")); in TEST_F() 236 OpName %coord "coord" in TEST_F() 240 %coord in TEST_F() [all...] |
/third_party/spirv-tools/test/val/ |
H A D | val_opencl_test.cpp | 199 OpName %coord "coord" in TEST_F() 209 %coord = OpConstantComposite %v2uint %uint_7 %uint_3 in TEST_F() 213 %call = OpImageRead %v4uint %img %coord ConstOffset %coord in TEST_F() 225 "\n %call = OpImageRead %v4uint %img %coord ConstOffset %coord\n")); in TEST_F() 236 OpName %coord "coord" in TEST_F() 240 %coord in TEST_F() [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fFragDepthTests.cpp | 57 typedef float (*EvalFragDepthFunc) (const Vec2& coord); 198 const float coord[] = in iterate() local 224 glu::va::Float("a_coord", 2, 4, 0, &coord[0]) in iterate() 327 const float coord[] = in iterate() local 352 glu::va::Float("a_coord", 2, 4, 0, &coord[0]) in iterate() 431 static float evalConstDepth (const Vec2& coord) { DE_UNREF(coord); return 0.5f; } in evalConstDepth() argument 432 static float evalDynamicDepth (const Vec2& coord) { return (coord.x()+coord in evalConstDepth() argument 433 evalNoWrite(const Vec2& coord) evalNoWrite() argument 435 evalDynamicConditionalDepth(const Vec2& coord) evalDynamicConditionalDepth() argument [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_nir_lower_storage_image.c | 66 nir_ssa_def *coord) in image_coord_is_in_bounds() 69 nir_ssa_def *cmp = nir_ilt(b, coord, size); in image_coord_is_in_bounds() 79 /** Calculate the offset in memory of the texel given by \p coord. 93 nir_deref_instr *deref, nir_ssa_def *coord) in image_address() 98 coord = nir_vec3(b, nir_channel(b, coord, 0), in image_address() 100 nir_channel(b, coord, 1)); in image_address() 103 coord = nir_trim_vector(b, coord, dims); in image_address() 118 nir_ssa_def *xypos = (coord in image_address() 65 image_coord_is_in_bounds(nir_builder *b, nir_deref_instr *deref, nir_ssa_def *coord) image_coord_is_in_bounds() argument 92 image_address(nir_builder *b, const struct intel_device_info *devinfo, nir_deref_instr *deref, nir_ssa_def *coord) image_address() argument 412 nir_ssa_def *coord = intrin->src[1].ssa; lower_image_load_instr() local 563 nir_ssa_def *coord = intrin->src[1].ssa; lower_image_store_instr() local [all...] |
/third_party/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_fpc_emit.c | 173 * \param coord the i915 source texcoord operand 178 uint32_t sampler, uint32_t coord, uint32_t opcode, in i915_emit_texld() 181 const uint32_t k = UREG(GET_UREG_TYPE(coord), GET_UREG_NR(coord)); in i915_emit_texld() 193 if ((coord & coord_used) != (k & coord_used) || in i915_emit_texld() 194 GET_UREG_TYPE(coord) == REG_TYPE_CONST) { in i915_emit_texld() 206 coord, 0, 0); /* src0, src1, src2 */ in i915_emit_texld() 209 coord = tempReg; in i915_emit_texld() 217 i915_emit_texld(p, tmp, A0_DEST_CHANNEL_ALL, sampler, coord, opcode, in i915_emit_texld() 233 if (GET_UREG_TYPE(coord) in i915_emit_texld() 177 i915_emit_texld(struct i915_fp_compile *p, uint32_t dest, uint32_t destmask, uint32_t sampler, uint32_t coord, uint32_t opcode, uint32_t coord_mask) i915_emit_texld() argument [all...] |