Home
last modified time | relevance | path

Searched refs:rbo (Results 1 – 25 of 98) sorted by relevance

1234

/third_party/libdrm/tests/radeon/
Drbo.h31 struct rbo { struct
42 struct rbo *rbo(int fd, unsigned handle, unsigned size, argument
44 int rbo_map(struct rbo *bo);
45 void rbo_unmap(struct rbo *bo);
46 struct rbo *rbo_incref(struct rbo *bo);
47 struct rbo *rbo_decref(struct rbo *bo);
48 int rbo_wait(struct rbo *bo);
Drbo.c36 struct rbo *rbo(int fd, unsigned handle, unsigned size, in rbo() function
39 struct rbo *bo; in rbo()
94 int rbo_map(struct rbo *bo) in rbo_map()
124 void rbo_unmap(struct rbo *bo) in rbo_unmap()
133 struct rbo *rbo_incref(struct rbo *bo) in rbo_incref()
139 struct rbo *rbo_decref(struct rbo *bo) in rbo_decref()
153 memset(bo, 0, sizeof(struct rbo)); in rbo_decref()
158 int rbo_wait(struct rbo *bo) in rbo_wait()
Dradeon_ttm.c38 struct rbo *bo, *tmp; in ttm_starve_kernel_private_memory()
44 bo = rbo(fd, 0, 4096, 0, NULL); in ttm_starve_kernel_private_memory()
/third_party/libwebsockets/lib/core-net/
Dwsi-timeout.c203 const lws_retry_bo_t *rbo = wsi->retry_policy; in lws_validity_cb() local
234 assert(rbo->secs_since_valid_hangup > rbo->secs_since_valid_ping); in lws_validity_cb()
239 ((uint64_t)rbo->secs_since_valid_hangup - in lws_validity_cb()
240 rbo->secs_since_valid_ping) * LWS_US_PER_SEC); in lws_validity_cb()
252 const lws_retry_bo_t *rbo = wsi->retry_policy; in _lws_validity_confirmed_role() local
254 if (!rbo || !rbo->secs_since_valid_hangup) in _lws_validity_confirmed_role()
260 wsi->validity_hup = rbo->secs_since_valid_ping >= in _lws_validity_confirmed_role()
261 rbo->secs_since_valid_hangup; in _lws_validity_confirmed_role()
264 wsi->validity_hup ? rbo->secs_since_valid_hangup : in _lws_validity_confirmed_role()
265 rbo->secs_since_valid_ping, in _lws_validity_confirmed_role()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_cs.h71 struct r600_resource *rbo, in radeon_add_to_buffer_list() argument
76 &ring->cs, rbo->buf, in radeon_add_to_buffer_list()
78 rbo->domains) * 4; in radeon_add_to_buffer_list()
101 struct r600_resource *rbo, in radeon_add_to_buffer_list_check_mem() argument
107 rctx->vram + rbo->vram_usage, in radeon_add_to_buffer_list_check_mem()
108 rctx->gtt + rbo->gart_usage)) in radeon_add_to_buffer_list_check_mem()
111 return radeon_add_to_buffer_list(rctx, ring, rbo, usage); in radeon_add_to_buffer_list_check_mem()
115 struct r600_ring *ring, struct r600_resource *rbo, in r600_emit_reloc() argument
120 unsigned reloc = radeon_add_to_buffer_list(rctx, ring, rbo, usage); in r600_emit_reloc()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fFboApiTests.cpp235 deUint32 rbo = 3; in validRboAttachmentsTest() local
236 context.bindRenderbuffer(GL_RENDERBUFFER, rbo); in validRboAttachmentsTest()
239 context.framebufferRenderbuffer(GL_FRAMEBUFFER, attachmentPoints[pointNdx], GL_RENDERBUFFER, rbo); in validRboAttachmentsTest()
255 deUint32 rbo = 1; in attachToDefaultFramebufferTest() local
256 context.bindRenderbuffer(GL_RENDERBUFFER, rbo); in attachToDefaultFramebufferTest()
257 context.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, rbo); in attachToDefaultFramebufferTest()
299 deUint32 rbo = 3; in invalidRboAttachmentTest() local
300 context.bindRenderbuffer(GL_RENDERBUFFER, rbo); in invalidRboAttachmentTest()
301 context.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER, rbo); in invalidRboAttachmentTest()
305 context.deleteRenderbuffers(1, &rbo); in invalidRboAttachmentTest()
[all …]
Des3fNegativeBufferApiTests.cpp274 deUint32 rbo; in init()
276 glGenRenderbuffers(1, &rbo); in init()
277 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in init()
279 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in init()
307 glDeleteRenderbuffers (1, &rbo); in init()
954 GLuint rbo; in init()
957 glGenRenderbuffers(1, &rbo); in init()
965 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in init()
966 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, -1, rbo); in init()
982 glDeleteRenderbuffers(1, &rbo); in init()
[all …]
Des3fNegativeStateApiTests.cpp861 GLuint rbo[2]; in init()
864 glGenRenderbuffers (2, rbo); in init()
867 glBindRenderbuffer (GL_RENDERBUFFER, rbo[0]); in init()
869 glFramebufferRenderbuffer (GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, rbo[0]); in init()
870 glBindRenderbuffer (GL_RENDERBUFFER, rbo[1]); in init()
872 glFramebufferRenderbuffer (GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, rbo[1]); in init()
915 GLuint rbo; in init()
916 glGenRenderbuffers(1, &rbo); in init()
917 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in init()
929 glDeleteRenderbuffers(1, &rbo); in init()
[all …]
Des3fShaderFragDataTests.cpp317 const deUint32 rbo = ndx == 0 ? *colorBuf0 : *colorBuf1; in iterate() local
319 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo); in iterate()
321 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0+ndx, GL_RENDERBUFFER, rbo); in iterate()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fFboApiTest.cpp260 deUint32 rbo = 3; in validRboAttachmentsTest() local
261 context.bindRenderbuffer(GL_RENDERBUFFER, rbo); in validRboAttachmentsTest()
264 context.framebufferRenderbuffer(GL_FRAMEBUFFER, attachmentPoints[pointNdx], GL_RENDERBUFFER, rbo); in validRboAttachmentsTest()
280 deUint32 rbo = 1; in attachToDefaultFramebufferTest() local
281 context.bindRenderbuffer(GL_RENDERBUFFER, rbo); in attachToDefaultFramebufferTest()
282 context.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, rbo); in attachToDefaultFramebufferTest()
324 deUint32 rbo = 3; in invalidRboAttachmentTest() local
325 context.bindRenderbuffer(GL_RENDERBUFFER, rbo); in invalidRboAttachmentTest()
326 context.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER, rbo); in invalidRboAttachmentTest()
330 context.deleteRenderbuffers(1, &rbo); in invalidRboAttachmentTest()
[all …]
Des2fNegativeBufferApiTests.cpp279 GLuint rbo; in init()
282 glGenRenderbuffers(1, &rbo); in init()
295 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in init()
296 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, -1, rbo); in init()
312 glDeleteRenderbuffers(1, &rbo); in init()
381 GLuint rbo; in init()
382 glGenRenderbuffers(1, &rbo); in init()
383 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in init()
427 glDeleteRenderbuffers(1, &rbo); in init()
Des2fNegativeStateApiTests.cpp572 GLuint rbo; in init()
573 glGenRenderbuffers(1, &rbo); in init()
574 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in init()
594 glDeleteRenderbuffers(1, &rbo); in init()
697 GLuint rbo = 0; in init()
701 isRbo = glIsRenderbuffer(rbo); in init()
704 glGenRenderbuffers (1, &rbo); in init()
705 isRbo = glIsRenderbuffer(rbo); in init()
708 glBindRenderbuffer (GL_RENDERBUFFER, rbo); in init()
709 isRbo = glIsRenderbuffer(rbo); in init()
[all …]
Des2fFboCompletenessTests.cpp324 const bool rbo = (flags & RENDERBUFFER_VALID) != 0; in formatKind() local
326 DE_ASSERT(rbo != ((flags & TEXTURE_VALID) != 0)); in formatKind()
328 return rbo ? GL_RENDERBUFFER : GL_TEXTURE; in formatKind()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DFramebufferTest.cpp539 GLRenderbuffer rbo; in TEST_P() local
540 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in TEST_P()
545 glFramebufferRenderbuffer(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in TEST_P()
558 GLRenderbuffer rbo; in TEST_P() local
559 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in TEST_P()
564 glFramebufferRenderbuffer(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in TEST_P()
576 GLRenderbuffer rbo; in TEST_P() local
577 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in TEST_P()
582 glFramebufferRenderbuffer(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in TEST_P()
595 GLRenderbuffer rbo; in TEST_P() local
[all …]
DSRGBTextureTest.cpp187 GLuint rbo = 0; in TEST_P() local
188 glGenRenderbuffers(1, &rbo); in TEST_P()
189 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in TEST_P()
208 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in TEST_P()
226 glDeleteRenderbuffers(1, &rbo); in TEST_P()
/third_party/vk-gl-cts/modules/egl/
DteglImageUtil.cpp347 void initializeStencilRbo(const glw::Functions& gl, GLuint rbo, Texture2D& ref) in initializeStencilRbo() argument
367 GL_RENDERBUFFER, rbo)); in initializeStencilRbo()
395 void initializeDepthRbo(const glw::Functions& gl, GLuint rbo, Texture2D& ref) in initializeDepthRbo() argument
400 GL_RENDERBUFFER, rbo)); in initializeDepthRbo()
430 void initializeColorRbo(const glw::Functions& gl, GLuint rbo, Texture2D& ref) in initializeColorRbo() argument
443 GL_RENDERBUFFER, rbo)); in initializeColorRbo()
475 const GLuint rbo = buffer->getName(); in createBuffer() local
477 GLU_CHECK_CALL_ERROR(gl.bindRenderbuffer(GL_RENDERBUFFER, rbo), gl.getError()); in createBuffer()
494 initializeStencilRbo(gl, rbo, *ref); in createBuffer()
497 initializeDepthRbo(gl, rbo, *ref); in createBuffer()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fNegativeBufferApiTests.cpp336 deUint32 rbo = 0x1234; in read_pixels_fbo_format_mismatch() local
338 ctx.glGenRenderbuffers(1, &rbo); in read_pixels_fbo_format_mismatch()
339 ctx.glBindRenderbuffer(GL_RENDERBUFFER, rbo); in read_pixels_fbo_format_mismatch()
341 ctx.glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in read_pixels_fbo_format_mismatch()
368 ctx.glDeleteRenderbuffers (1, &rbo); in read_pixels_fbo_format_mismatch()
1111 GLuint rbo = 0x1234; in framebuffer_renderbuffer() local
1114 ctx.glGenRenderbuffers(1, &rbo); in framebuffer_renderbuffer()
1127 ctx.glBindRenderbuffer(GL_RENDERBUFFER, rbo); in framebuffer_renderbuffer()
1128 ctx.glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, -1, rbo); in framebuffer_renderbuffer()
1144 ctx.glDeleteRenderbuffers(1, &rbo); in framebuffer_renderbuffer()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcPackedDepthStencilTests.cpp1829 GLuint rbo[2]; // color, D/S in iterate() local
1830 gl.genRenderbuffers(2, rbo); in iterate()
1831 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo[0]); in iterate()
1833 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo[1]); in iterate()
1836 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo[0]); in iterate()
1842 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, rbo[1]); in iterate()
1846 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, rbo[1]); in iterate()
1924 gl.deleteRenderbuffers(2, rbo); in iterate()
1986 GLuint rbo[3]; // color, DEPTH_STENCIL, DEPTH/STENCIL in iterate() local
1987 gl.genRenderbuffers(3, rbo); in iterate()
[all …]
DglcSampleVariablesTests.cpp385 GLuint rbo; in iterate() local
386 gl.genRenderbuffers(1, &rbo); in iterate()
387 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo); in iterate()
393 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in iterate()
532 gl.deleteRenderbuffers(1, &rbo); in iterate()
690 GLuint rbo; in iterate() local
691 gl.genRenderbuffers(1, &rbo); in iterate()
692 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo); in iterate()
698 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in iterate()
837 gl.deleteRenderbuffers(1, &rbo); in iterate()
DglcShaderMultisampleInterpolationTests.cpp416 GLuint rbo; in iterate() local
417 gl.genRenderbuffers(1, &rbo); in iterate()
418 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo); in iterate()
424 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in iterate()
542 gl.deleteRenderbuffers(1, &rbo); in iterate()
/third_party/vk-gl-cts/external/openglcts/modules/gles32/
Des32cCopyImageTests.cpp229 GLuint rbo; in verify() local
230 gl.genRenderbuffers(1, &rbo); in verify()
231 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo); in verify()
237 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in verify()
258 gl.deleteRenderbuffers(1, &rbo); in verify()
/third_party/vk-gl-cts/modules/glshared/
DglsFboUtil.cpp307 if (const Renderbuffer* rbo = dynamic_cast<const Renderbuffer*>(&img)) in imageNumSamples() local
308 return rbo->numSamples; in imageNumSamples()
391 if (const Renderbuffer* const rbo = dynamic_cast<const Renderbuffer*>(&cfg)) in glCreate() local
396 if (rbo->numSamples == 0) in glCreate()
397 gl.renderbufferStorage(GL_RENDERBUFFER, rbo->internalFormat.format, in glCreate()
398 rbo->width, rbo->height); in glCreate()
401 GL_RENDERBUFFER, rbo->numSamples, rbo->internalFormat.format, in glCreate()
402 rbo->width, rbo->height); in glCreate()
693 static void logRenderbuffer (const Renderbuffer& rbo, TestLog& log) in logRenderbuffer() argument
695 logImage(rbo, log, false); in logRenderbuffer()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cES31CompatibilitySampleVariablesTests.cpp383 GLuint rbo; in iterate() local
384 gl.genRenderbuffers(1, &rbo); in iterate()
385 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo); in iterate()
391 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in iterate()
530 gl.deleteRenderbuffers(1, &rbo); in iterate()
691 GLuint rbo; in iterate() local
692 gl.genRenderbuffers(1, &rbo); in iterate()
693 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo); in iterate()
699 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in iterate()
838 gl.deleteRenderbuffers(1, &rbo); in iterate()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DSRGBTextureTest.cpp191 GLuint rbo = 0; in TEST_P() local
192 glGenRenderbuffers(1, &rbo); in TEST_P()
193 glBindRenderbuffer(GL_RENDERBUFFER, rbo); in TEST_P()
212 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in TEST_P()
230 glDeleteRenderbuffers(1, &rbo); in TEST_P()
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cSampleShadingTests.cpp337 GLuint rbo; in iterate() local
338 gl.genRenderbuffers(1, &rbo); in iterate()
339 gl.bindRenderbuffer(GL_RENDERBUFFER, rbo); in iterate()
345 gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in iterate()
436 gl.deleteRenderbuffers(1, &rbo); in iterate()

1234