Lines Matching defs:m_context
201 deqp::Context* m_context;
235 deqp::Context& m_context;
269 deqp::Context& m_context;
317 deqp::Context& m_context;
375 deqp::Context* m_context;
384 Buffer::Buffer() : m_id(m_invalid_id), m_context(0), m_target(GL_ARRAY_BUFFER)
395 m_context = 0;
406 m_context = &context;
424 const Functions& gl = m_context->getRenderContext().getFunctions();
438 const Functions& gl = m_context->getRenderContext().getFunctions();
455 const Functions& gl = m_context->getRenderContext().getFunctions();
471 const Functions& gl = m_context->getRenderContext().getFunctions();
558 Framebuffer::Framebuffer(deqp::Context& context) : m_id(m_invalid_id), m_context(context)
578 const Functions& gl = m_context.getRenderContext().getFunctions();
650 , m_context(context)
680 const Functions& gl = m_context.getRenderContext().getFunctions();
708 const Functions& gl = m_context.getRenderContext().getFunctions();
731 const Functions& gl = m_context.getRenderContext().getFunctions();
826 Shader::Shader(deqp::Context& context) : m_id(m_invalid_id), m_context(context)
856 const Functions& gl = m_context.getRenderContext().getFunctions();
871 const Functions& gl = m_context.getRenderContext().getFunctions();
955 Texture::Texture() : m_id(m_invalid_id), m_context(0)
976 m_context = &context;
989 const Functions& gl = m_context->getRenderContext().getFunctions();
1014 const Functions& gl = m_context->getRenderContext().getFunctions();
1029 const Functions& gl = m_context->getRenderContext().getFunctions();
1378 m_context.getTestContext().getLog() \
1620 const Functions& gl = m_context.getRenderContext().getFunctions();
1623 gl.debugMessageCallback(debug_proc, &m_context);
1637 buffer.InitData(m_context, GL_ARRAY_BUFFER, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
1698 buffer[j].InitData(m_context, target, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
1808 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
1835 const Functions& gl = m_context.getRenderContext().getFunctions();
1838 gl.debugMessageCallback(debug_proc, &m_context);
1866 texture[0].InitStorage(m_context, GL_TEXTURE_2D, 1 /* levels */, GL_RGBA8, width, height, depth);
1867 texture[1].InitStorage(m_context, GL_TEXTURE_2D_ARRAY, 1 /* levels */, GL_RGBA8, width, height, depth);
1868 texture[2].InitStorage(m_context, GL_TEXTURE_1D_ARRAY, 1 /* levels */, GL_RGBA8, width, height, depth);
1869 texture[3].InitStorage(m_context, GL_TEXTURE_3D, 1 /* levels */, GL_RGBA8, width, height, depth);
1925 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
1949 const Functions& gl = m_context.getRenderContext().getFunctions();
1952 gl.debugMessageCallback(debug_proc, &m_context);
2043 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
2071 const Functions& gl = m_context.getRenderContext().getFunctions();
2074 gl.debugMessageCallback(debug_proc, &m_context);
2102 texture[0].InitStorage(m_context, GL_TEXTURE_2D, 1, GL_RGBA8, width, height, depth);
2103 texture[1].InitStorage(m_context, GL_TEXTURE_2D_ARRAY, 1, GL_RGBA8, width, height, depth);
2104 texture[2].InitStorage(m_context, GL_TEXTURE_1D_ARRAY, 1, GL_RGBA8, width, height, depth);
2105 texture[3].InitStorage(m_context, GL_TEXTURE_3D, 1, GL_RGBA8, width, height, depth);
2170 t_texture.Init(m_context);
2194 t_texture.InitStorage(m_context, GL_TEXTURE_2D, 1, GL_RGB9_E5, width, 0, depth, true);
2205 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
2228 const Functions& gl = m_context.getRenderContext().getFunctions();
2231 gl.debugMessageCallback(debug_proc, &m_context);
2268 buffer[j].InitData(m_context, GL_ARRAY_BUFFER, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
2362 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
2384 const Functions& gl = m_context.getRenderContext().getFunctions();
2387 gl.debugMessageCallback(debug_proc, &m_context);
2422 buffer[j].InitData(m_context, target, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
2436 checkBinding(m_context, pname_binding, j, target_name, buffer_ids[j]);
2454 checkBinding(m_context, pname_binding, j, target_name, 0);
2459 checkBinding(m_context, pname_binding, j, target_name, buffer_ids[j]);
2467 checkBinding(m_context, pname_binding, j, target_name, 0);
2499 checkBinding(m_context, pname_binding, j, target_name, buffer_ids[j]);
2510 checkBinding(m_context, pname_binding, 0, target_name, buffer[0].m_id);
2520 checkBinding(m_context, pname_binding, j, target_name, buffer_ids[j]);
2528 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
2550 const Functions& gl = m_context.getRenderContext().getFunctions();
2553 gl.debugMessageCallback(debug_proc, &m_context);
2592 buffer[j].InitData(m_context, target, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
2608 checkBinding(m_context, pname_binding, j, target_name, buffer_ids[j]);
2626 checkBinding(m_context, pname_binding, j, target_name, 0);
2631 checkBinding(m_context, pname_binding, j, target_name, buffer_ids[j]);
2640 checkBinding(m_context, pname_binding, j, target_name, 0);
2672 checkBinding(m_context, pname_binding, j, target_name, buffer_ids[j]);
2683 checkBinding(m_context, pname_binding, 0, target_name, buffer[0].m_id);
2693 checkBinding(m_context, pname_binding, j, target_name, buffer_ids[j]);
2701 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
2727 const Functions& gl = m_context.getRenderContext().getFunctions();
2730 gl.debugMessageCallback(debug_proc, &m_context);
2752 buffer.InitData(m_context, GL_TEXTURE_BUFFER, GL_DYNAMIC_COPY, 16 /* size */, 0 /* data */);
2761 texture[i].InitStorage(m_context, target, 1, GL_RGBA8, width, height, depth);
2765 texture[i].InitBuffer(m_context, GL_RGBA8, buffer.m_id);
2774 texture[i].InitStorage(m_context, GL_TEXTURE_2D, 1, GL_RGBA8, width, height, depth);
2795 checkTextureBinding(m_context, getBinding(i), i, texture_ids[i]);
2816 checkTextureBinding(m_context, getBinding(i), i, 0);
2821 checkTextureBinding(m_context, getBinding(i), i, texture_ids[i]);
2835 checkTextureBinding(m_context, getBinding(i), i, 0);
2863 checkTextureBinding(m_context, getBinding(0), 0, 0);
2866 checkTextureBinding(m_context, getBinding(i), i, texture_ids[i]);
2874 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
2896 const Functions& gl = m_context.getRenderContext().getFunctions();
2899 gl.debugMessageCallback(debug_proc, &m_context);
2936 checkBinding(m_context, GL_SAMPLER_BINDING, i, "Sampler", sampler_ids[i]);
2950 checkBinding(m_context, GL_SAMPLER_BINDING, i, "Sampler", 0);
2955 checkBinding(m_context, GL_SAMPLER_BINDING, i, "Sampler", sampler_ids[i]);
2967 checkBinding(m_context, GL_SAMPLER_BINDING, i, "Sampler", 0);
3004 checkBinding(m_context, GL_SAMPLER_BINDING, i, "Sampler", t_sampler_ids[i]);
3022 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
3048 const Functions& gl = m_context.getRenderContext().getFunctions();
3051 gl.debugMessageCallback(debug_proc, &m_context);
3073 buffer.InitData(m_context, GL_TEXTURE_BUFFER, GL_DYNAMIC_COPY, 16 /* size */, 0 /* data */);
3087 texture[i].InitStorage(m_context, target, 1, GL_RGBA8, width, height, depth);
3091 texture[i].InitBuffer(m_context, GL_RGBA8, buffer.m_id);
3100 texture[i].InitStorage(m_context, GL_TEXTURE_2D, 1, GL_RGBA8, width, height, depth);
3120 checkBinding(m_context, GL_IMAGE_BINDING_NAME, i, "Image unit", texture_ids[i]);
3141 checkBinding(m_context, GL_IMAGE_BINDING_NAME, i, "Image unit", 0);
3146 checkBinding(m_context, GL_IMAGE_BINDING_NAME, i, "Image unit", texture_ids[i]);
3160 checkBinding(m_context, GL_IMAGE_BINDING_NAME, i, "Image unit", 0);
3188 checkBinding(m_context, GL_IMAGE_BINDING_NAME, 0, "Image unit", 0);
3191 checkBinding(m_context, GL_IMAGE_BINDING_NAME, i, "Image unit", texture_ids[i]);
3199 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
3221 const Functions& gl = m_context.getRenderContext().getFunctions();
3224 gl.debugMessageCallback(debug_proc, &m_context);
3255 buffer[i].InitData(m_context, GL_ARRAY_BUFFER, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
3279 checkVertexAttribBinding(m_context, i, buffer_ids[i]);
3293 checkVertexAttribBinding(m_context, i, 0);
3298 checkVertexAttribBinding(m_context, i, buffer_ids[i]);
3310 checkVertexAttribBinding(m_context, i, 0);
3334 checkVertexAttribBinding(m_context, 0, 0);
3337 checkVertexAttribBinding(m_context, i, buffer_ids[i]);
3355 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
3396 const Functions& gl = m_context.getRenderContext().getFunctions();
3401 gl.debugMessageCallback(debug_proc, &m_context);
3432 uni_buffer[i].InitData(m_context, GL_UNIFORM_BUFFER, GL_DYNAMIC_COPY, buffer_size, data);
3442 ssb_buffer.InitData(m_context, GL_SHADER_STORAGE_BUFFER, GL_DYNAMIC_COPY, buffer_size, 0 /* data */);
3481 Program program(m_context);
3506 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
3510 m_context.getTestContext().setTestResult(QP_TEST_RESULT_FAIL, "Fail");
3557 const Functions& gl = m_context.getRenderContext().getFunctions();
3562 gl.debugMessageCallback(debug_proc, &m_context);
3595 uni_buffer.InitData(m_context, GL_UNIFORM_BUFFER, GL_DYNAMIC_COPY, buffer_size, &uni_data[0]);
3610 ssb_buffer.InitData(m_context, GL_SHADER_STORAGE_BUFFER, GL_DYNAMIC_COPY, sizeof(GLint), 0 /* data */);
3615 Program program(m_context);
3640 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
3644 m_context.getTestContext().setTestResult(QP_TEST_RESULT_FAIL, "Fail");
3713 const Functions& gl = m_context.getRenderContext().getFunctions();
3718 gl.debugMessageCallback(debug_proc, &m_context);
3770 texture[i].InitStorage(m_context, target, 1, GL_R32UI, width, height, depth);
3771 fillMSTexture(m_context, texture[i].m_id, i, is_array);
3776 texture_buffer.InitData(m_context, GL_TEXTURE_BUFFER, GL_DYNAMIC_COPY, sizeof(data), data);
3777 texture[i].InitBuffer(m_context, GL_R32UI, texture_buffer.m_id);
3781 texture[i].InitStorage(m_context, target, 1, GL_R32UI, width, height, depth);
3805 ssb_buffer.InitData(m_context, GL_SHADER_STORAGE_BUFFER, GL_DYNAMIC_COPY, sizeof(GLuint), 0 /* data */);
3866 Program program(m_context);
3898 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
3902 m_context.getTestContext().setTestResult(QP_TEST_RESULT_FAIL, "Fail");
3971 const Functions& gl = m_context.getRenderContext().getFunctions();
3976 gl.debugMessageCallback(debug_proc, &m_context);
4028 texture[i].InitStorage(m_context, target, 1, GL_R32UI, width, height, depth);
4029 fillMSTexture(m_context, texture[i].m_id, i, is_array);
4034 texture_buffer.InitData(m_context, GL_TEXTURE_BUFFER, GL_DYNAMIC_COPY, sizeof(data), data);
4035 texture[i].InitBuffer(m_context, GL_R32UI, texture_buffer.m_id);
4039 texture[i].InitStorage(m_context, target, 1, GL_R32UI, width, height, depth);
4061 ssb_buffer.InitData(m_context, GL_SHADER_STORAGE_BUFFER, GL_DYNAMIC_COPY, sizeof(GLuint), 0 /* data */);
4122 Program program(m_context);
4154 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
4158 m_context.getTestContext().setTestResult(QP_TEST_RESULT_FAIL, "Fail");
4205 const Functions& gl = m_context.getRenderContext().getFunctions();
4210 gl.debugMessageCallback(debug_proc, &m_context);
4259 texture[i].InitStorage(m_context, GL_TEXTURE_2D, 1, GL_R32UI, width, height, depth);
4276 ssb_buffer.InitData(m_context, GL_SHADER_STORAGE_BUFFER, GL_DYNAMIC_COPY, sizeof(GLuint), 0 /* data */);
4318 Program program(m_context);
4378 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
4382 m_context.getTestContext().setTestResult(QP_TEST_RESULT_FAIL, "Fail");
4458 const Functions& gl = m_context.getRenderContext().getFunctions();
4463 gl.debugMessageCallback(debug_proc, &m_context);
4500 buffer.InitData(m_context, GL_ARRAY_BUFFER, GL_DYNAMIC_COPY, data.size() * sizeof(GLfloat), &data[0]);
4510 Framebuffer framebuffer(m_context);
4513 texture.InitStorage(m_context, GL_TEXTURE_2D, 1 /* levels */, GL_RGBA8, width, height, 1 /* depth */);
4555 Program program(m_context);
4617 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Invalid value: " << (GLuint)pixels[i]
4629 m_context.getTestContext().setTestResult(QP_TEST_RESULT_PASS, "Pass");
4633 m_context.getTestContext().setTestResult(QP_TEST_RESULT_FAIL, "Fail");
4656 addChild(new MultiBind::DispatchBindTexturesTest(m_context));
4658 addChild(new MultiBind::ErrorsBindBuffersTest(m_context));
4659 addChild(new MultiBind::ErrorsBindTexturesTest(m_context));
4660 addChild(new MultiBind::ErrorsBindSamplersTest(m_context));
4661 addChild(new MultiBind::ErrorsBindImageTexturesTest(m_context));
4662 addChild(new MultiBind::ErrorsBindVertexBuffersTest(m_context));
4663 addChild(new MultiBind::FunctionalBindBuffersBaseTest(m_context));
4664 addChild(new MultiBind::FunctionalBindBuffersRangeTest(m_context));
4665 addChild(new MultiBind::FunctionalBindTexturesTest(m_context));
4666 addChild(new MultiBind::FunctionalBindSamplersTest(m_context));
4667 addChild(new MultiBind::FunctionalBindImageTexturesTest(m_context));
4668 addChild(new MultiBind::FunctionalBindVertexBuffersTest(m_context));
4669 addChild(new MultiBind::DispatchBindBuffersBaseTest(m_context));
4670 addChild(new MultiBind::DispatchBindBuffersRangeTest(m_context));
4672 addChild(new MultiBind::DispatchBindImageTexturesTest(m_context));
4673 addChild(new MultiBind::DispatchBindSamplersTest(m_context));
4674 addChild(new MultiBind::DrawBindVertexBuffersTest(m_context));