/external/deqp/framework/common/ |
tcuRGBA.cpp | 37 RGBA::RGBA (const Vec4& v) 46 Vec4 RGBA::toVec (void) const 48 return Vec4(float(getRed()) / 255.0f,
|
tcuTextureUtil.cpp | 56 Vec4 sRGBToLinear (const Vec4& cs) 58 return Vec4(sRGBChannelToLinear(cs[0]), 65 Vec4 linearToSRGB (const Vec4& cl) 67 return Vec4(linearChannelToSRGB(cl[0]), 294 return TextureFormatInfo(Vec4( 0.0f, 0.0f, 0.0f, 0.0f), 295 Vec4( 1023.0f, 1023.0f, 1023.0f, 3.0f), 296 Vec4(1.0f/1023.f, 1.0f/1023.0f, 1.0f/1023.0f, 1.0f/3.0f), 297 Vec4( 0.0f, 0.0f, 0.0f, 0.0f)) [all...] |
tcuTexture.cpp | 51 inline Vec4 readRGBA8888Float (const deUint8* ptr) { return Vec4(ptr[0]/255.0f, ptr[1]/255.0f, ptr[2]/255.0f, ptr[3]/255.0f); } 52 inline Vec4 readRGB888Float (const deUint8* ptr) { return Vec4(ptr[0]/255.0f, ptr[1]/255.0f, ptr[2]/255.0f, 1.0f); } 73 inline void writeRGBA8888Float (deUint8* ptr, const Vec4& val) 81 inline void writeRGB888Float (deUint8* ptr, const Vec4& val) 369 tcu::Vec4 unpackRGB999E5 (deUint32 color) 384 return tcu::Vec4(r, g, b, 1.0f); 608 Vec4 ConstPixelBufferAccess::getPixel (int x, int y, int z) const 633 case TextureFormat::UNORM_SHORT_565: return Vec4(NB16(11, 5), NB16( 5, 6), NB16( 0, 5), 1.0f) [all...] |
/external/deqp/framework/referencerenderer/ |
rrRasterizer.cpp | 464 void TriangleRasterizer::init (const tcu::Vec4& v0, const tcu::Vec4& v1, const tcu::Vec4& v2) 600 const tcu::Vec4 e01f = e01.asFloat(); 601 const tcu::Vec4 e12f = e12.asFloat(); 602 const tcu::Vec4 e20f = e20.asFloat(); 607 const tcu::Vec4 edgeSum = e01f + e12f + e20f; 608 const tcu::Vec4 z0 = e12f / edgeSum; 609 const tcu::Vec4 z1 = e20f / edgeSum; 621 const tcu::Vec4 b0 = e12f * m_v0.w() [all...] |
rrPrimitivePacket.cpp | 38 void GeometryEmitter::EmitVertex (const tcu::Vec4& position, float pointSize, const GenericVec4* varyings, int primitiveID)
|
/external/deqp/modules/gles3/functional/ |
es3fTextureSpecificationTests.cpp | 61 using tcu::Vec4; 672 Vec4 gMin = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 673 Vec4 gMax = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 731 Vec4 gMin = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 732 Vec4 gMax = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 772 Vec4 gMin = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 773 Vec4 gMax = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 812 Vec4 gMin = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 813 Vec4 gMax = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); 870 Vec4 gMin = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax) [all...] |
es3fDepthTests.cpp | 54 void setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color); 69 "in highp vec4 a_position;\n" 75 "uniform highp vec4 u_color;\n" 76 "layout(location = 0) out mediump vec4 o_color;\n" 85 void DepthShader::setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color) 99 const tcu::Vec4 color(u_color.value.f4); 126 tcu::Vec4 clearColor = tcu::Vec4(0.125f, 0.25f, 0.5f, 1.0f); 210 tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0); 211 tcu::Vec4 green (0.0f, 1.0f, 0.0f, 1.0f) [all...] |
/external/deqp/modules/egl/ |
teglGLES2RenderUtil.cpp | 35 void clear (const glw::Functions& gl, int x, int y, int width, int height, const tcu::Vec4& color)
|
teglNativeColorMappingTests.cpp | 94 "\tgl_Position = vec4(a_pos, 0.0, 1.0);\n" 98 "uniform mediump vec4 u_color;\n" 212 void clear (const glw::Functions& gl, const tcu::Vec4& color) 219 void render (const glw::Functions& gl, deUint32 program, const tcu::Vec4& color) 248 bool validate (TestLog& log, const Library& egl, EGLDisplay display, EGLConfig config, const tcu::TextureLevel& result, const tcu::Vec4& color) 323 bool testNativeWindow (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativeWindow& nativeWindow, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, int waitFrames, size_t colorCount, const tcu::Vec4* colors) 366 bool testNativePixmap (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativePixmap& nativePixmap, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4* colors) 407 bool testNativePixmapCopy (TestLog& log, const Library& egl, eglu::NativePixmap& nativePixmap, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4* colors) 453 const tcu::Vec4 colors[] = 455 tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f) [all...] |
teglImageFormatTests.cpp | 237 ModifyRenderbufferClearColor (tcu::Vec4 color) : m_color(color) {} 242 tcu::Vec4 m_color; 408 "\tgl_Position = vec4(a_coord, -0.1, 1.0);\n" 415 "\tmediump vec4 texColor = texture2D(u_sampler, v_texCoord);\n" 416 "\tgl_FragColor = vec4(texColor);\n" 485 "\tgl_Position = vec4(a_coord, u_depth, 1.0);\n" 489 "uniform mediump vec4 u_color;\n" 512 tcu::Vec4 depthLevelColors[] = { 513 tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f), 514 tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f) [all...] |
/external/deqp/modules/glshared/ |
glsTextureTestUtil.cpp | 160 inline tcu::Vec4 linearInterpolate (float t, const tcu::Vec4& a, const tcu::Vec4& b) 165 inline float bilinearInterpolate (float x, float y, const tcu::Vec4& quad) 381 static inline tcu::Vec4 execSample (const tcu::Texture1DView& src, const ReferenceParams& params, float s, float lod) 384 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, lod), 0.0, 0.0, 1.0f); 389 static inline tcu::Vec4 execSample (const tcu::Texture2DView& src, const ReferenceParams& params, float s, float t, float lod) 392 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, t, lod), 0.0, 0.0, 1.0f); 397 static inline tcu::Vec4 execSample (const tcu::TextureCubeView& src, const ReferenceParams& params, float s, float t, float r, float lod) 400 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, t, r, lod), 0.0, 0.0, 1.0f) [all...] |
glsScissorTests.cpp | 68 using tcu::Vec4; 130 "${IN} highp vec4 a_position;\n" 137 "uniform highp vec4 u_color;\n" 157 params["OUT_DECL"] = "out mediump vec4 f_color;\n"; 172 ScissorCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char *name, const char* desc, const Vec4& scissorArea); 181 const Vec4 m_scissorArea; 184 ScissorCase::ScissorCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char *name, const char* desc, const Vec4& scissorArea) 198 const tcu::Vec4 threshold = 0.02f * UVec4(1u << de::max(0, 8 - renderFormat.redBits), 292 const Vec4& scissorArea, 293 const Vec4& renderArea [all...] |
glsRandomShaderCase.cpp | 301 tcu::fillWithComponentGradients(m_tex2D->getRefTexture().getLevel(0), tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f)); 323 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 325 { tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative x 326 { tcu::Vec4( 0.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // positive x 327 { tcu::Vec4(-1.0f, 0.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative y 328 { tcu::Vec4(-1.0f, -1.0f, 0.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // positive [all...] |
/external/deqp/modules/gles2/functional/ |
es2fVertexTextureTests.cpp | 46 using tcu::Vec4; 190 Vec4 getQuadLDRU (int col, int row) const; //!< Vec4(leftX, downY, rightX, upY) 208 Vec4 PosTexCoordQuadGrid<TexType>::getQuadLDRU (int col, int row) const 213 return Vec4(m_positions[ndx00].x(), 331 static void setPixelColors (const vector<Vec4>& quadColors, const Rect& region, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst) 338 const Vec4 color = quadColors[y*gridSize + x]; 339 const Vec4 ldru = grid.getQuadLDRU(x, y) * 0.5f + 0.5f; // [-1, 1] -> [0, 1] 356 static inline Vec4 sample (const tcu::Texture2D& tex, const Vec2& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), lod); } 357 static inline Vec4 sample (const tcu::TextureCube& tex, const Vec3& coord, float lod, const tcu::Sampler& sam) { ret (…) [all...] |
es2fDepthTests.cpp | 54 void setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color); 68 << sglr::pdec::VertexSource("attribute highp vec4 a_position;\n" 73 << sglr::pdec::FragmentSource("uniform mediump vec4 u_color;\n" 82 void DepthShader::setColor (sglr::Context& ctx, deUint32 programID, const tcu::Vec4& color) 96 const tcu::Vec4 color(u_color.value.f4); 123 tcu::Vec4 clearColor = tcu::Vec4(0.125f, 0.25f, 0.5f, 1.0f); 207 tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0); 208 tcu::Vec4 green (0.0f, 1.0f, 0.0f, 1.0f);
|
/external/deqp/modules/internal/ |
ditFrameworkTests.cpp | 586 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); 587 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); 588 c.vtx[2] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); 589 c.varying = tcu::Vec4(0.0f, 1.0f, 8.0f, -8.0f); 596 c.vtx[0] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); 597 c.vtx[1] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); 598 c.vtx[2] = tcu::Vec4(+1.0f, +1.0f, 0.5f, 1.0f); 599 c.varying = tcu::Vec4(0.0f, 1.0f, 8.0f, -8.0f); 605 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); 606 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f) [all...] |
/external/deqp/modules/gles2/scripts/ |
gen-conversions.py | 28 # + note: vec4(mat2) valid 39 # * legal to chain: vec4.rgba.xyzw.stpq 53 # - base type and size conversion at same time: vec4(bool), int(vec3) allowed? 212 inVec4 = [Vec4(0.0, 0.5, 0.75, 0.825), Vec4(1.0, 1.25, 1.125, 1.75), 213 Vec4(-0.5, -2.25, -4.875, 9.0), Vec4(-32.0, 64.0, -51.0, 24.0), 214 Vec4(-0.75, -1.0/31.0, 1.0/19.0, 1.0/4.0)] 220 inBVec4 = [Vec4(True, False, False, True), Vec4(False, False, False, True), Vec4(False, True, False, False), Vec4(True, True, True, True), Vec4(Fa (…) [all...] |
genutil.py | 116 ret = [Vec4(random.uniform(mn, mx), random.uniform(mn, mx), random.uniform(mn, mx), random.uniform(mn, mx)) for x in xrange(count)] 123 ret = [Vec4(random.random() >= 0.5, random.random() >= 0.5, random.random() >= 0.5, random.random() >= 0.5) for x in xrange(count)] 206 def toVec4(self): return Vec4(self.x, self.x, self.x, self.x) 265 elif isinstance(val, Vec4): 266 return Vec4(self.x * val.x, self.x * val.y, self.x * val.z, self.x * val.w) 277 elif isinstance(val, Vec4): 278 return Vec4(self.x / val.x, self.x / val.y, self.x / val.z, self.x / val.w) 289 else: return Vec4(lst[0], lst[1], lst[2], lst[3]) 322 def toVec4(self): return Vec4(self.x, self.y, 0.0, 0.0) 408 def toVec4(self): return Vec4(self.x, self.y, self.z, 0.0 [all...] |
/external/deqp/modules/gles3/accuracy/ |
es3aTextureFilteringTests.cpp | 136 tcu::Vec4 cBias = fmtInfo.valueMin; 137 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 142 tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 143 tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 393 tcu::Vec4 cBias = fmtInfo.valueMin; 394 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 397 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 399 { tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative [all...] |
/external/deqp/modules/gles2/accuracy/ |
es2aTextureFilteringTests.cpp | 145 tcu::Vec4 cBias = fmtInfo.valueMin; 146 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 151 tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 152 tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 406 tcu::Vec4 cBias = fmtInfo.valueMin; 407 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 410 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 412 { tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative [all...] |
/external/deqp/modules/gles31/stress/ |
es31sVertexAttributeBindingTests.cpp | 49 "in highp vec4 a_position;\n" 56 "layout(location = 0) out mediump vec4 fragColor;\n" 59 " fragColor = vec4(1.0, 1.0, 1.0, 1.0);\n" 63 "in mediump vec4 v_color;\n" 64 "layout(location = 0) out mediump vec4 fragColor;\n" 444 const tcu::Vec4 colorA (0.0f, 1.0f, 0.0f, 1.0f); 445 const tcu::Vec4 colorB (0.5f, 1.0f, 0.0f, 1.0f); 450 const tcu::Vec4& color = ((x + y) % 2 == 0) ? (colorA) : (colorB); 451 const tcu::Vec4 positions[6] = 453 tcu::Vec4((x+0) / float(GRID_SIZE) * 2.0f - 1.0f, (y+0) / float(GRID_SIZE) * 2.0f - 1.0f, 0.0f, 1.0f) [all...] |
/external/deqp/modules/gles3/performance/ |
es3pBlendTests.cpp | 40 using tcu::Vec4; 90 "in highp vec4 a_position;\n" 91 "in mediump vec4 a_color;\n" 92 "out mediump vec4 v_color;\n" 100 "in mediump vec4 v_color;\n" 101 "layout(location = 0) out mediump vec4 o_color;\n" 107 m_attributes.push_back(AttribSpec("a_color", Vec4(0.0f, 0.5f, 0.5f, 1.0f), 108 Vec4(0.5f, 1.0f, 0.0f, 0.5f), 109 Vec4(0.5f, 0.0f, 1.0f, 0.5f), 110 Vec4(1.0f, 0.5f, 0.5f, 0.0f))) [all...] |
es3pTextureCases.cpp | 48 using tcu::Vec4; 125 m_attributes.push_back(AttribSpec("a_coords", Vec4(p00.x(), p00.y(), 0.0f, 0.0f), 126 Vec4(p10.x(), p10.y(), 0.0f, 0.0f), 127 Vec4(p01.x(), p01.y(), 0.0f, 0.0f), 128 Vec4(p11.x(), p11.y(), 0.0f, 0.0f))); 143 "in highp vec4 a_position;\n" 154 fragSrc << "layout(location = 0) out mediump vec4 o_color;\n"; 166 fragSrc << "\t" << glu::getPrecisionName(samplerPrec) << " vec4 r = "; 171 fragSrc << "vec4(";
|
/external/deqp/modules/gles31/functional/ |
es31fPrimitiveBoundingBoxTests.cpp | 62 tcu::Vec4 min; 63 tcu::Vec4 max; 108 tcu::Vec4 vertexBox; 224 { tcu::Vec4( 0.0f, 0.0f, 0.0f, 0.0f), tcu::Vec4( 0.0f, 0.0f, 0.0f, 0.0f) }, 225 { tcu::Vec4(-0.0f, -0.0f, -0.0f, -0.0f), tcu::Vec4( 0.0f, 0.0f, 0.0f, -0.0f) }, 226 { tcu::Vec4( 0.0f, 0.0f, 0.0f, 0.0f), tcu::Vec4( 1.0f, 1.0f, 1.0f, -1.0f) }, 227 { tcu::Vec4( 2.0f, 2.0f, 2.0f, 2.0f), tcu::Vec4( 1.5f, 1.5f, 1.5f, 1.0f) } [all...] |
/external/deqp/modules/gles3/scripts/ |
genutil.py | 126 ret = [Vec4(random.uniform(mn, mx), random.uniform(mn, mx), random.uniform(mn, mx), random.uniform(mn, mx)) for x in xrange(count)] 133 ret = [Vec4(random.random() >= 0.5, random.random() >= 0.5, random.random() >= 0.5, random.random() >= 0.5) for x in xrange(count)] 219 def toVec4(self): return Vec4(self.x, self.x, self.x, self.x) 297 elif isinstance(val, Vec4): 298 return Vec4(self.x * val.x, self.x * val.y, self.x * val.z, self.x * val.w) 309 elif isinstance(val, Vec4): 310 return Vec4(self.x / val.x, self.x / val.y, self.x / val.z, self.x / val.w) 347 else: return Vec4(lst[0], lst[1], lst[2], lst[3]) 386 def toVec4(self): return Vec4(self.x, self.y, 0.0, 0.0) 497 def toVec4(self): return Vec4(self.x, self.y, self.z, 0.0 [all...] |