/external/deqp/modules/gles3/accuracy/ |
es3aVaryingInterpolationTests.cpp | 2 * drawElements Quality Program OpenGL ES 3.0 Module 194 glu::ShaderProgram program(m_context.getRenderContext(), 197 log << program; local 198 if (!program.isOk()) 245 const int posLoc = glGetAttribLocation(program.getProgram(), "a_position"); 246 const int coordLoc = glGetAttribLocation(program.getProgram(), "a_coords"); 255 glUseProgram(program.getProgram()); 256 glUniform3f(glGetUniformLocation(program.getProgram(), "u_scale"), scale.x(), scale.y(), scale.z()); 257 glUniform3f(glGetUniformLocation(program.getProgram(), "u_bias"), bias.x(), bias.y(), bias.z()); 259 GLU_CHECK_MSG("After program setup") [all...] |
/external/deqp/modules/gles3/functional/ |
es3fFragDepthTests.cpp | 2 * drawElements Quality Program OpenGL ES 3.0 Module 192 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(s_vertexShaderSrc, m_fragSrc.c_str())); 193 log << program; local 195 if (!program.isOk()) 213 gl.useProgram(program.getProgram()); 215 gl.uniform4f(gl.getUniformLocation(program.getProgram(), "u_color"), 0.0f, 1.0f, 0.0f, 1.0f); 218 gls::setupDefaultUniforms(m_context.getRenderContext(), program.getProgram()); 226 glu::draw(m_context.getRenderContext(), program.getProgram(), DE_LENGTH_OF_ARRAY(vertexArrays), &vertexArrays[0], 321 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(s_vertexShaderSrc, m_fragSrc.c_str())); 322 log << program; local 366 log << program; local [all...] |
/external/deqp/modules/glshared/ |
glsFragOpInteractionCase.cpp | 2 * drawElements Quality Program OpenGL (ES) Module 311 static void setupAttributes (sglr::Context& ctx, const VertexDataStorage& vertexData, deUint32 program) 316 const int attribLoc = bindingPtr.binding.type == glu::BindingPoint::TYPE_NAME ? ctx.getAttribLocation(program, bindingPtr.binding.name.c_str()) : bindingPtr.binding.location; 537 const deUint32 program = programs[ndx]; local 539 setupAttributes(ctx, vertexData, program); 548 ctx.useProgram (program); 551 setUniformValue(ctx, ctx.getUniformLocation(program, uniformIter->getVariable()->getName()), uniformIter->getValue());
|
glsRandomShaderCase.cpp | 2 * drawElements Quality Program OpenGL (ES) Module 401 // Compile program 402 glu::ShaderProgram program(m_renderCtx, glu::makeVtxFragSources(m_vertexShader.getSource(), m_fragmentShader.getSource())); 403 log << program; local 405 if (!program.isOk()) 421 // Reference program executor. 424 GLU_CHECK_CALL(glUseProgram(program.getProgram())); 429 GLint location = glGetAttribLocation(program.getProgram(), attribIter->getName()); 445 GLint location = glGetUniformLocation(program.getProgram(), uniformIter->getVariable()->getName());
|
glsStateChangePerfTestCases.cpp | 2 * drawElements Quality Program OpenGL (ES) Module 318 glu::ShaderProgram* program = new glu::ShaderProgram(m_renderCtx, glu::ProgramSources() << glu::VertexSource(vertexShaderSource) << glu::FragmentSource(fragmentShaderSource)); local 320 if (!program->isOk()) 322 m_testCtx.getLog() << *program; 323 delete program; 327 m_programs.push_back(program);
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d1x/ |
sm4_to_tgsi.cpp | 88 struct sm4_program& program; member in struct:sm4_to_tgsi_converter 95 sm4_to_tgsi_converter(struct sm4_program& program) 96 : program(program) 242 #define OP_CF(d, g) case SM4_OPCODE_##d: ureg_##g(ureg, &label); label_to_sm4_insn_num.push_back(std::make_pair(label, program.cf_insn_linked[insn_num])); break; 250 insn = program.insns[insn_num]; 377 label_to_sm4_insn_num.push_back(std::make_pair(label, program.label_to_insn_num[_idx(SM4_FILE_LABEL)])); 388 if(in_sub || insn_num != (program.insns.size() - 1)) 412 label_to_sm4_insn_num.push_back(std::make_pair(label, program.cf_insn_linked[insn_num])); 416 unsigned linked = program.cf_insn_linked[insn_num] [all...] |
/external/mesa3d/src/mesa/drivers/dri/i915/ |
i915_fragprog.c | 32 #include "program/prog_instruction.h" 33 #include "program/prog_parameter.h" 34 #include "program/program.h" 35 #include "program/programopt.h" 36 #include "program/prog_print.h" 82 const struct gl_fragment_program *program) 161 * hardware as program constants. 164 src = i915_emit_param4fv(p, program->Base.LocalParams[source->Index]); 179 &program->Base.Parameters->ParameterValues[source->Index][0].f) 306 const struct gl_fragment_program *program = &p->FragProg; local 354 const struct gl_fragment_program *program = &p->FragProg; local 375 const struct gl_fragment_program *program = &p->FragProg; local [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_program.c | 38 #include "program/prog_parameter.h" 39 #include "program/prog_print.h" 40 #include "program/programopt.h" 60 * Delete a vertex program variant. Note the caller must unlink 103 * Delete a fragment program variant. Note the caller must unlink 120 * Free all variants of a fragment program. 138 * Delete a geometry program variant. Note the caller must unlink 152 * Free all variants of a geometry program. 173 * \param outputMapping to map vertex program output registers (VERT_RESULT_x) 208 /* Compute mapping of vertex program outputs to slots 1271 struct gl_program *program = (struct gl_program *) data; local [all...] |
/external/netperf/ |
netsh.c | 117 char *program; /* program invocation name */ variable 478 program = (char *)malloc(strlen(argv[0]) + 1); 479 if (program == NULL) { 483 strcpy(program, argv[0]); 990 printf("Program name: %s\n", program);
|
/frameworks/av/media/libstagefright/tests/ |
SurfaceMediaSource_test.cpp | 255 GLuint program = glCreateProgram(); local 257 if (program) { 258 glAttachShader(program, vertexShader); 260 glAttachShader(program, fragmentShader); 262 glLinkProgram(program); 264 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); 267 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); 271 glGetProgramInfoLog(program, bufLength, NULL, buf); 272 printf("Program link log:\n%s\n", buf); 277 glDeleteProgram(program); [all...] |
/frameworks/native/libs/gui/tests/ |
SRGB_test.cpp | 158 GLuint program; local 160 SCOPED_TRACE("Creating shader program"); 162 vertexSource, fragmentSource, &program)); 165 GLint positionHandle = glGetAttribLocation(program, "vPosition"); 169 GLint samplerHandle = glGetUniformLocation(program, "texSampler"); 185 glUseProgram(program);
|
/frameworks/native/opengl/tests/gl2_yuvtex/ |
gl2_yuvtex.cpp | 129 GLuint program = glCreateProgram(); local 130 if (program) { 131 glAttachShader(program, vertexShader); 133 glAttachShader(program, pixelShader); 135 glLinkProgram(program); 137 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); 140 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); 144 glGetProgramInfoLog(program, bufLength, NULL, buf); 145 fprintf(stderr, "Could not link program:\n%s\n", buf); 149 glDeleteProgram(program); [all...] |
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
SurfaceTextureView.java | 69 int program = GLES20.glCreateProgram(); local 70 if (program != 0) { 71 GLES20.glAttachShader(program, vertexShader); 73 GLES20.glAttachShader(program, pixelShader); 75 GLES20.glLinkProgram(program); 77 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); 79 Log.e(TAG, "Could not link program: "); 80 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); 81 GLES20.glDeleteProgram(program); 82 program = 0 [all...] |
/sdk/emulator/opengl/tests/translator_tests/GLES_V2/ |
triangleV2.cpp | 171 void dumpUniforms(GLuint program) 174 glGetProgramiv(program, GL_ACTIVE_UNIFORMS, &numU); 175 printf("==== Program %d has %d active uniforms ===\n", program, numU); 181 glGetActiveUniform(program, i, 188 // Initialize the shader and program object 199 // Create the program object 207 // Link the program 219 printf("Error linking program:\n%s\n", infoLog); 229 // Store the program objec 419 int program = Init(vShader, fShader); local [all...] |
/cts/tests/tests/graphics/src/android/opengl/cts/ |
CompressedTextureSurfaceView.java | 394 int program = GLES20.glCreateProgram(); local 395 if (program != 0) { 396 GLES20.glAttachShader(program, vertexShader); 398 GLES20.glAttachShader(program, pixelShader); 400 GLES20.glLinkProgram(program); 402 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); 404 Log.e(TAG, "Could not link program: "); 405 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); 406 GLES20.glDeleteProgram(program); 407 program = 0 [all...] |
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
SurfaceTextureRenderer.java | 271 int program = GLES20.glCreateProgram(); local 272 if (program != 0) { 273 GLES20.glAttachShader(program, vertexShader); 275 GLES20.glAttachShader(program, pixelShader); 277 GLES20.glLinkProgram(program); 279 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); 281 Log.e(TAG, "Could not link program: "); 282 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); 283 GLES20.glDeleteProgram(program); 284 program = 0 [all...] |
/development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/ |
MyGLSurfaceView.java | 250 int program = GLES20.glCreateProgram(); local 251 if (program != 0) { 252 GLES20.glAttachShader(program, vertexShader); 254 GLES20.glAttachShader(program, pixelShader); 256 GLES20.glLinkProgram(program); 258 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); 260 Log.e(TAG, "Could not link program: "); 261 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); 262 GLES20.glDeleteProgram(program); 263 program = 0 [all...] |
/external/chromium_org/cc/test/ |
test_web_graphics_context_3d.cc | 111 GLuint program, 138 GLuint program) { 252 unsigned program = next_program_id_++ | context_id_ << 16; local 253 program_set_.insert(program); 254 return program; 271 ADD_FAILURE() << "deleteProgram called on unknown program " << id; 281 void TestWebGraphicsContext3D::attachShader(GLuint program, GLuint shader) { 282 if (!program_set_.count(program)) 283 ADD_FAILURE() << "attachShader called with unknown program " << program; [all...] |
/external/chromium_org/content/shell/renderer/test_runner/ |
TestPlugin.cpp | 458 if (m_scene.program) { 459 m_context->deleteProgram(m_scene.program); 460 m_scene.program = 0; 495 m_scene.program = loadProgram(vertexSource, fragmentSource); 496 if (!m_scene.program) 499 m_scene.colorLocation = m_context->getUniformLocation(m_scene.program, "color"); 500 m_scene.positionLocation = m_context->getAttribLocation(m_scene.program, "position"); 526 DCHECK(m_scene.program); 528 m_context->useProgram(m_scene.program); 563 unsigned program = m_context->createProgram() local [all...] |
/external/chromium_org/gpu/command_buffer/common/ |
gles2_cmd_format.h | 222 program = _program; 239 uint32 program; member in struct:gpu::gles2::cmds::GetAttribLocation 249 COMPILE_ASSERT(offsetof(GetAttribLocation, program) == 4, 278 program = _program; 295 uint32 program; member in struct:gpu::gles2::cmds::GetUniformLocation 305 COMPILE_ASSERT(offsetof(GetUniformLocation, program) == 4,
|
/external/chromium_org/gpu/tools/compositor_model_bench/ |
shaders.cc | 280 int program = ActivateShader(vs, fs, transform); local 282 GLint y_scale = glGetUniformLocationARB(program, "y_widthScaleFactor"); 283 GLint uv_scale = glGetUniformLocationARB(program, "uv_widthScaleFactor"); 288 GLint texTrans = glGetUniformLocationARB(program, "texTransform"); 296 int sTexLoc = glGetUniformLocationARB(program, "s_texture"); 307 int yTexLoc = glGetUniformLocationARB(program, "y_texture"); 312 int uTexLoc = glGetUniformLocationARB(program, "u_texture"); 317 int vTexLoc = glGetUniformLocationARB(program, "v_texture"); 320 int yuvAdjLoc = glGetUniformLocationARB(program, "yuv_adj"); 323 int ccMatLoc = glGetUniformLocationARB(program, "cc_matrix") 331 int program = ActivateShader(VERTEX_SHADER_POS_TEX_TRANSFORM, local [all...] |
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/cube/ |
cube.cc | 130 GLuint program = glCreateProgram(); local 131 glAttachShader(program, frag_shader); 132 glAttachShader(program, vert_shader); 133 glLinkProgram(program); 136 glGetProgramiv(program, GL_LINK_STATUS, &link_status); 138 // Program failed to link, let's see what the error is. 141 glGetProgramInfoLog(program, sizeof(buffer), &length, &buffer[0]); 142 fprintf(stderr, "Program failed to link: %s\n", buffer); 146 return program; 419 //set what program to us [all...] |
/external/chromium_org/ppapi/examples/video_decode/ |
video_decode_dev.cc | 49 Shader() : program(0), 52 GLuint program; member in struct:__anon14062::Shader 142 void CreateShader(GLuint program, GLenum type, const char* source, int size); 190 // Shader program to draw GL_TEXTURE_2D target. 192 // Shader program to draw GL_TEXTURE_RECTANGLE_ARB target. 239 if (shader_2d_.program) 240 gles2_if_->DeleteProgram(context_->pp_resource(), shader_2d_.program); 241 if (shader_rectangle_arb_.program) { 243 context_->pp_resource(), shader_rectangle_arb_.program); 431 gles2_if_->UseProgram(context_->pp_resource(), shader_2d_.program); [all...] |
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
sandbox_bpf.cc | 111 // Cannot determine whether program is single-threaded. Hope for 176 // typical program has very few of these. 509 // Temporarily copy the contents of the "program" vector into a 512 // installed the BPF filter program in the kernel. Depending on the 515 Program* program = AssembleFilter(false /* force_verification */); local 517 struct sock_filter bpf[program->size()]; 518 const struct sock_fprog prog = {static_cast<unsigned short>(program->size()), 520 memcpy(bpf, &(*program)[0], sizeof(bpf)); 521 delete program; 713 Program* program = new Program(); local [all...] |
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/java/android/org/webrtc/ |
VideoRendererGui.java | 64 private int program; field in class:VideoRendererGui 127 // Compile & attach a |type| shader specified by |source| to |program|. 129 int type, String source, int program) { 139 GLES20.glAttachShader(program, shader); 152 private int program; field in class:VideoRendererGui.YuvImageRenderer 206 private void createTextures(int program) { 208 this.program = program; 256 int posLocation = GLES20.glGetAttribLocation(program, "in_pos"); 261 int texLocation = GLES20.glGetAttribLocation(program, "in_tc") [all...] |