Home
last modified time | relevance | path

Searched refs:fb (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_framebuffer.c53 struct stw_framebuffer *fb; in stw_framebuffer_from_hwnd_locked() local
55 for (fb = stw_dev->fb_head; fb != NULL; fb = fb->next) in stw_framebuffer_from_hwnd_locked()
56 if (fb->hWnd == hwnd) { in stw_framebuffer_from_hwnd_locked()
57 pipe_mutex_lock(fb->mutex); in stw_framebuffer_from_hwnd_locked()
61 return fb; in stw_framebuffer_from_hwnd_locked()
72 struct stw_framebuffer *fb ) in stw_framebuffer_destroy_locked() argument
77 fb->refcnt--; in stw_framebuffer_destroy_locked()
78 if (fb->refcnt) { in stw_framebuffer_destroy_locked()
79 pipe_mutex_unlock( fb->mutex ); in stw_framebuffer_destroy_locked()
84 while (*link != fb) in stw_framebuffer_destroy_locked()
[all …]
Dstw_ext_pbuffer.c78 struct stw_framebuffer *fb; in wglCreatePbufferARB() local
214 fb = stw_framebuffer_create(hDC, iPixelFormat); in wglCreatePbufferARB()
215 if (!fb) { in wglCreatePbufferARB()
220 fb->bPbuffer = TRUE; in wglCreatePbufferARB()
221 iDisplayablePixelFormat = fb->iDisplayablePixelFormat; in wglCreatePbufferARB()
223 stw_framebuffer_release(fb); in wglCreatePbufferARB()
232 return (HPBUFFERARB)fb; in wglCreatePbufferARB()
239 struct stw_framebuffer *fb; in wglGetPbufferDCARB() local
247 fb = (struct stw_framebuffer *)hPbuffer; in wglGetPbufferDCARB()
249 hDC = GetDC(fb->hWnd); in wglGetPbufferDCARB()
[all …]
Dstw_st.c41 struct stw_framebuffer *fb; member
136 pipe_mutex_lock(stwfb->fb->mutex); in stw_st_framebuffer_validate()
138 if (stwfb->fb->must_resize || (statt_mask & ~stwfb->texture_mask)) { in stw_st_framebuffer_validate()
140 stwfb->fb->width, stwfb->fb->height, statt_mask); in stw_st_framebuffer_validate()
141 stwfb->fb->must_resize = FALSE; in stw_st_framebuffer_validate()
149 stw_framebuffer_release(stwfb->fb); in stw_st_framebuffer_validate()
167 stw_framebuffer_present_locked(hdc, stwfb->fb, resource); in stw_st_framebuffer_present_locked()
179 pipe_mutex_lock(stwfb->fb->mutex); in stw_st_framebuffer_flush_front()
181 return stw_st_framebuffer_present_locked(stwfb->fb->hDC, &stwfb->base, statt); in stw_st_framebuffer_flush_front()
188 stw_st_create_framebuffer(struct stw_framebuffer *fb) in stw_st_create_framebuffer() argument
[all …]
/external/mesa3d/src/mesa/main/
Dframebuffer.c53 compute_depth_max(struct gl_framebuffer *fb) in compute_depth_max() argument
55 if (fb->Visual.depthBits == 0) { in compute_depth_max()
60 fb->_DepthMax = (1 << 16) - 1; in compute_depth_max()
62 else if (fb->Visual.depthBits < 32) { in compute_depth_max()
63 fb->_DepthMax = (1 << fb->Visual.depthBits) - 1; in compute_depth_max()
69 fb->_DepthMax = 0xffffffff; in compute_depth_max()
71 fb->_DepthMaxF = (GLfloat) fb->_DepthMax; in compute_depth_max()
74 fb->_MRD = (GLfloat)1.0 / fb->_DepthMaxF; in compute_depth_max()
87 struct gl_framebuffer *fb = CALLOC_STRUCT(gl_framebuffer); in _mesa_create_framebuffer() local
89 if (fb) { in _mesa_create_framebuffer()
[all …]
Dbuffers.c56 const struct gl_framebuffer *fb) in supported_buffer_bitmask() argument
60 if (_mesa_is_user_fbo(fb)) { in supported_buffer_bitmask()
72 if (fb->Visual.stereoMode) { in supported_buffer_bitmask()
74 if (fb->Visual.doubleBufferMode) { in supported_buffer_bitmask()
78 else if (fb->Visual.doubleBufferMode) { in supported_buffer_bitmask()
82 for (i = 0; i < fb->Visual.numAuxBuffers; i++) { in supported_buffer_bitmask()
358 struct gl_framebuffer *fb = ctx->DrawBuffer; in updated_drawbuffers() local
361 if (_mesa_is_user_fbo(fb)) { in updated_drawbuffers()
362 fb->_Status = 0; in updated_drawbuffers()
387 struct gl_framebuffer *fb = ctx->DrawBuffer; in _mesa_drawbuffers() local
[all …]
Dfbobject.c86 delete_dummy_framebuffer(struct gl_framebuffer *fb) in delete_dummy_framebuffer() argument
132 struct gl_framebuffer *fb; in _mesa_lookup_framebuffer() local
137 fb = (struct gl_framebuffer *) in _mesa_lookup_framebuffer()
139 return fb; in _mesa_lookup_framebuffer()
149 invalidate_framebuffer(struct gl_framebuffer *fb) in invalidate_framebuffer() argument
151 fb->_Status = 0; /* "indeterminate" */ in invalidate_framebuffer()
189 _mesa_get_attachment(struct gl_context *ctx, struct gl_framebuffer *fb, in _mesa_get_attachment() argument
194 assert(_mesa_is_user_fbo(fb)); in _mesa_get_attachment()
222 return &fb->Attachment[BUFFER_COLOR0 + i]; in _mesa_get_attachment()
228 return &fb->Attachment[BUFFER_DEPTH]; in _mesa_get_attachment()
[all …]
Dframebuffer.h41 _mesa_initialize_window_framebuffer(struct gl_framebuffer *fb,
45 _mesa_initialize_user_framebuffer(struct gl_framebuffer *fb, GLuint name);
55 struct gl_framebuffer *fb);
59 struct gl_framebuffer *fb) in _mesa_reference_framebuffer() argument
61 if (*ptr != fb) in _mesa_reference_framebuffer()
62 _mesa_reference_framebuffer_(ptr, fb); in _mesa_reference_framebuffer()
66 _mesa_resize_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb,
82 struct gl_framebuffer *fb);
100 _mesa_print_framebuffer(const struct gl_framebuffer *fb);
/external/libdrm/tests/kms/
Dlibkms-test-framebuffer.c46 struct kms_framebuffer *fb; in kms_framebuffer_create() local
49 fb = calloc(1, sizeof(*fb)); in kms_framebuffer_create()
50 if (!fb) in kms_framebuffer_create()
53 fb->device = device; in kms_framebuffer_create()
54 fb->width = width; in kms_framebuffer_create()
55 fb->height = height; in kms_framebuffer_create()
56 fb->format = format; in kms_framebuffer_create()
70 free(fb); in kms_framebuffer_create()
76 free(fb); in kms_framebuffer_create()
80 fb->handle = args.handle; in kms_framebuffer_create()
[all …]
Dkms-steal-crtc.c46 struct kms_framebuffer *fb; in main() local
93 fb = kms_framebuffer_create(device, screen->width, screen->height, in main()
95 if (!fb) { in main()
100 err = kms_framebuffer_map(fb, &ptr); in main()
106 util_fill_pattern(fb->format, UTIL_PATTERN_SMPTE, &ptr, fb->width, in main()
107 fb->height, fb->pitch); in main()
109 kms_framebuffer_unmap(fb); in main()
111 err = kms_screen_set(screen, device->crtcs[index++], fb); in main()
147 err = kms_screen_set(screen, device->crtcs[index], fb); in main()
156 kms_framebuffer_free(fb); in main()
/external/mesa3d/src/mesa/swrast/
Ds_renderbuffer.c241 add_color_renderbuffers(struct gl_context *ctx, struct gl_framebuffer *fb, in add_color_renderbuffers() argument
268 assert(fb->Attachment[b].Renderbuffer == NULL); in add_color_renderbuffers()
279 _mesa_add_renderbuffer(fb, b, rb); in add_color_renderbuffers()
295 add_depth_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, in add_depth_renderbuffer() argument
306 assert(fb->Attachment[BUFFER_DEPTH].Renderbuffer == NULL); in add_depth_renderbuffer()
325 _mesa_add_renderbuffer(fb, BUFFER_DEPTH, rb); in add_depth_renderbuffer()
340 add_stencil_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, in add_stencil_renderbuffer() argument
351 assert(fb->Attachment[BUFFER_STENCIL].Renderbuffer == NULL); in add_stencil_renderbuffer()
363 _mesa_add_renderbuffer(fb, BUFFER_STENCIL, rb); in add_stencil_renderbuffer()
371 struct gl_framebuffer *fb) in add_depth_stencil_renderbuffer() argument
[all …]
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/estimators/
Dnada.cc177 const NadaFeedback& fb = static_cast<const NadaFeedback&>(feedback); in GiveFeedback() local
194 int64_t rtt_ms = now_ms - fb.latest_send_time_ms(); in GiveFeedback()
203 if (fb.congestion_signal() == fb.est_queuing_delay_signal_ms() && in GiveFeedback()
204 fb.est_queuing_delay_signal_ms() < kQueuingDelayUpperBoundMs && in GiveFeedback()
205 fb.derivative() < kDerivativeUpperBound) { in GiveFeedback()
206 AcceleratedRampUp(fb); in GiveFeedback()
208 GradualRateUpdate(fb, delta_s, 1.0); in GiveFeedback()
212 if (fb.congestion_signal() == fb.est_queuing_delay_signal_ms() && in GiveFeedback()
213 fb.est_queuing_delay_signal_ms() < kQueuingDelayUpperBoundMs && in GiveFeedback()
214 fb.exp_smoothed_delay_ms() < in GiveFeedback()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_framebuffer.c101 util_unreference_framebuffer_state(struct pipe_framebuffer_state *fb) in util_unreference_framebuffer_state() argument
105 for (i = 0; i < fb->nr_cbufs; i++) { in util_unreference_framebuffer_state()
106 pipe_surface_reference(&fb->cbufs[i], NULL); in util_unreference_framebuffer_state()
109 pipe_surface_reference(&fb->zsbuf, NULL); in util_unreference_framebuffer_state()
111 fb->width = fb->height = 0; in util_unreference_framebuffer_state()
112 fb->nr_cbufs = 0; in util_unreference_framebuffer_state()
120 util_framebuffer_min_size(const struct pipe_framebuffer_state *fb, in util_framebuffer_min_size() argument
128 for (i = 0; i < fb->nr_cbufs; i++) { in util_framebuffer_min_size()
129 w = MIN2(w, fb->cbufs[i]->width); in util_framebuffer_min_size()
130 h = MIN2(h, fb->cbufs[i]->height); in util_framebuffer_min_size()
[all …]
/external/libvpx/libvpx/test/
Dexternal_frame_buffer_test.cc65 int GetFreeFrameBuffer(size_t min_size, vpx_codec_frame_buffer_t *fb) { in GetFreeFrameBuffer() argument
66 EXPECT_TRUE(fb != NULL); in GetFreeFrameBuffer()
78 SetFrameBuffer(idx, fb); in GetFreeFrameBuffer()
84 int GetZeroFrameBuffer(size_t min_size, vpx_codec_frame_buffer_t *fb) { in GetZeroFrameBuffer() argument
85 EXPECT_TRUE(fb != NULL); in GetZeroFrameBuffer()
96 SetFrameBuffer(idx, fb); in GetZeroFrameBuffer()
102 int ReturnFrameBuffer(vpx_codec_frame_buffer_t *fb) { in ReturnFrameBuffer() argument
103 if (fb == NULL) { in ReturnFrameBuffer()
104 EXPECT_TRUE(fb != NULL); in ReturnFrameBuffer()
108 reinterpret_cast<ExternalFrameBuffer*>(fb->priv); in ReturnFrameBuffer()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_misc.c73 const struct pipe_framebuffer_state *fb) in svga_set_framebuffer_state() argument
80 dst->width = fb->width; in svga_set_framebuffer_state()
81 dst->height = fb->height; in svga_set_framebuffer_state()
82 dst->nr_cbufs = fb->nr_cbufs; in svga_set_framebuffer_state()
86 if (dst->cbufs[i] && dst->cbufs[i] != fb->cbufs[i]) in svga_set_framebuffer_state()
96 if (dst->cbufs[i] && dst->cbufs[i] != fb->cbufs[i]) in svga_set_framebuffer_state()
103 for(i = 0; i < fb->nr_cbufs; ++i) { in svga_set_framebuffer_state()
104 if (fb->zsbuf && fb->cbufs[i]) { in svga_set_framebuffer_state()
105 assert(fb->zsbuf->width == fb->cbufs[i]->width); in svga_set_framebuffer_state()
106 assert(fb->zsbuf->height == fb->cbufs[i]->height); in svga_set_framebuffer_state()
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_util.h130 get_scissors(struct gl_framebuffer *fb, int *x, int *y, int *w, int *h) in get_scissors() argument
132 *w = fb->_Xmax - fb->_Xmin; in get_scissors()
133 *h = fb->_Ymax - fb->_Ymin; in get_scissors()
134 *x = fb->_Xmin; in get_scissors()
135 *y = (fb->Name ? fb->_Ymin : in get_scissors()
137 fb->Height - fb->_Ymax); in get_scissors()
144 struct gl_framebuffer *fb = ctx->DrawBuffer; in get_viewport_scale() local
148 if (fb->Name) in get_viewport_scale()
154 a[MAT_SZ] = fb->_DepthMaxF * (vp->Far - vp->Near) / 2; in get_viewport_scale()
161 struct gl_framebuffer *fb = ctx->DrawBuffer; in get_viewport_translate() local
[all …]
Dnv20_state_fb.c58 struct gl_framebuffer *fb = ctx->DrawBuffer; in setup_hierz_buffer() local
59 struct nouveau_framebuffer *nfb = to_nouveau_framebuffer(fb); in setup_hierz_buffer()
60 unsigned pitch = align(fb->Width, 128), in setup_hierz_buffer()
61 height = align(fb->Height, 2), in setup_hierz_buffer()
81 struct gl_framebuffer *fb = ctx->DrawBuffer; in nv20_emit_framebuffer() local
87 if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) in nv20_emit_framebuffer()
93 if (fb->_ColorDrawBuffers[0]) { in nv20_emit_framebuffer()
95 fb->_ColorDrawBuffers[0])->surface; in nv20_emit_framebuffer()
106 if (fb->Attachment[BUFFER_DEPTH].Renderbuffer) { in nv20_emit_framebuffer()
108 fb->Attachment[BUFFER_DEPTH].Renderbuffer)->surface; in nv20_emit_framebuffer()
[all …]
Dnv10_state_fb.c58 struct gl_framebuffer *fb = ctx->DrawBuffer; in setup_hierz_buffer() local
59 struct nouveau_framebuffer *nfb = to_nouveau_framebuffer(fb); in setup_hierz_buffer()
60 unsigned pitch = align(fb->Width, 128), in setup_hierz_buffer()
61 height = align(fb->Height, 2), in setup_hierz_buffer()
81 PUSH_DATAf(push, - 2304 + fb->Height); in setup_hierz_buffer()
82 PUSH_DATAf(push, fb->_DepthMaxF / 2); in setup_hierz_buffer()
96 struct gl_framebuffer *fb = ctx->DrawBuffer; in nv10_emit_framebuffer() local
102 if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) in nv10_emit_framebuffer()
119 if (fb->_ColorDrawBuffers[0]) { in nv10_emit_framebuffer()
121 fb->_ColorDrawBuffers[0])->surface; in nv10_emit_framebuffer()
[all …]
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_surface.c49 const struct pipe_framebuffer_state *fb) in softpipe_set_framebuffer_state() argument
58 if (sp->framebuffer.cbufs[i] != fb->cbufs[i]) { in softpipe_set_framebuffer_state()
63 pipe_surface_reference(&sp->framebuffer.cbufs[i], fb->cbufs[i]); in softpipe_set_framebuffer_state()
66 sp_tile_cache_set_surface(sp->cbuf_cache[i], fb->cbufs[i]); in softpipe_set_framebuffer_state()
70 sp->framebuffer.nr_cbufs = fb->nr_cbufs; in softpipe_set_framebuffer_state()
73 if (sp->framebuffer.zsbuf != fb->zsbuf) { in softpipe_set_framebuffer_state()
78 pipe_surface_reference(&sp->framebuffer.zsbuf, fb->zsbuf); in softpipe_set_framebuffer_state()
81 sp_tile_cache_set_surface(sp->zsbuf_cache, fb->zsbuf); in softpipe_set_framebuffer_state()
100 sp->framebuffer.width = fb->width; in softpipe_set_framebuffer_state()
101 sp->framebuffer.height = fb->height; in softpipe_set_framebuffer_state()
/external/autotest/client/site_tests/graphics_WebGLAquarium/
Dsampler.py144 pipe, fb, state = self.exynos_parser(m_dict['detail'])
146 self.end_last_fb_state(pipe, fb, timestamp)
147 self.start_new_fb_state(pipe, fb, state, timestamp)
167 def end_last_fb_state(self, pipe, fb, end_time): argument
174 self.get_frame_buffer(pipe, fb).end_state(end_time)
176 def start_new_fb_state(self, pipe, fb, state, start_time): argument
184 self.get_frame_buffer(pipe, fb).start_state(state, start_time)
188 for fb in self.frame_buffers.values():
189 fb.calc_state_avg_stdev()
191 def frame_buffer_unique_hash(self, pipe, fb): argument
[all …]
/external/autotest/client/cros/graphics/
Ddrm.py142 def fb(self): member in DrmModeCrtc
148 fb = self._l.drmModeGetFB(self._fd, self.buffer_id).contents
149 fb._fd = self._fd
150 fb._l = self._l
151 return fb
357 def _screenshot(image, fb): argument
358 fb.map()
359 m = fb._map
360 lineLength = fb.width * fb.bpp // 8
361 pitch = fb.pitch
[all …]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_blit.c123 struct pipe_framebuffer_state *fb = in r300_cbzb_clear_allowed() local
127 if (clear_buffers != PIPE_CLEAR_COLOR || fb->nr_cbufs != 1) in r300_cbzb_clear_allowed()
130 return r300_surface(fb->cbufs[0])->cbzb_allowed; in r300_cbzb_clear_allowed()
135 struct pipe_framebuffer_state *fb = in r300_fast_zclear_allowed() local
138 return r300_resource(fb->zsbuf->texture)->tex.zmask_dwords[fb->zsbuf->u.tex.level] != 0; in r300_fast_zclear_allowed()
143 struct pipe_framebuffer_state *fb = in r300_hiz_clear_allowed() local
146 return r300_resource(fb->zsbuf->texture)->tex.hiz_dwords[fb->zsbuf->u.tex.level] != 0; in r300_hiz_clear_allowed()
225 struct pipe_framebuffer_state *fb = in r300_clear() local
229 uint32_t width = fb->width; in r300_clear()
230 uint32_t height = fb->height; in r300_clear()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_fbo.c63 intel_get_rb_region(struct gl_framebuffer *fb, GLuint attIndex) in intel_get_rb_region() argument
65 struct intel_renderbuffer *irb = intel_get_renderbuffer(fb, attIndex); in intel_get_rb_region()
347 intel_resize_buffers(struct gl_context *ctx, struct gl_framebuffer *fb, in intel_resize_buffers() argument
352 _mesa_resize_framebuffer(ctx, fb, width, height); in intel_resize_buffers()
354 fb->Initialized = true; /* XXX remove someday */ in intel_resize_buffers()
356 if (_mesa_is_user_fbo(fb)) { in intel_resize_buffers()
363 struct gl_renderbuffer *rb = fb->Attachment[i].Renderbuffer; in intel_resize_buffers()
473 struct gl_framebuffer *fb, struct gl_framebuffer *fbread) in intel_bind_framebuffer() argument
489 struct gl_framebuffer *fb, in intel_framebuffer_renderbuffer() argument
492 DBG("Intel FramebufferRenderbuffer %u %u\n", fb->Name, rb ? rb->Name : 0); in intel_framebuffer_renderbuffer()
[all …]
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_fbo.c63 intel_get_rb_region(struct gl_framebuffer *fb, GLuint attIndex) in intel_get_rb_region() argument
65 struct intel_renderbuffer *irb = intel_get_renderbuffer(fb, attIndex); in intel_get_rb_region()
347 intel_resize_buffers(struct gl_context *ctx, struct gl_framebuffer *fb, in intel_resize_buffers() argument
352 _mesa_resize_framebuffer(ctx, fb, width, height); in intel_resize_buffers()
354 fb->Initialized = true; /* XXX remove someday */ in intel_resize_buffers()
356 if (_mesa_is_user_fbo(fb)) { in intel_resize_buffers()
363 struct gl_renderbuffer *rb = fb->Attachment[i].Renderbuffer; in intel_resize_buffers()
473 struct gl_framebuffer *fb, struct gl_framebuffer *fbread) in intel_bind_framebuffer() argument
489 struct gl_framebuffer *fb, in intel_framebuffer_renderbuffer() argument
492 DBG("Intel FramebufferRenderbuffer %u %u\n", fb->Name, rb ? rb->Name : 0); in intel_framebuffer_renderbuffer()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_fbo.c63 intel_get_rb_region(struct gl_framebuffer *fb, GLuint attIndex) in intel_get_rb_region() argument
65 struct intel_renderbuffer *irb = intel_get_renderbuffer(fb, attIndex); in intel_get_rb_region()
347 intel_resize_buffers(struct gl_context *ctx, struct gl_framebuffer *fb, in intel_resize_buffers() argument
352 _mesa_resize_framebuffer(ctx, fb, width, height); in intel_resize_buffers()
354 fb->Initialized = true; /* XXX remove someday */ in intel_resize_buffers()
356 if (_mesa_is_user_fbo(fb)) { in intel_resize_buffers()
363 struct gl_renderbuffer *rb = fb->Attachment[i].Renderbuffer; in intel_resize_buffers()
473 struct gl_framebuffer *fb, struct gl_framebuffer *fbread) in intel_bind_framebuffer() argument
489 struct gl_framebuffer *fb, in intel_framebuffer_renderbuffer() argument
492 DBG("Intel FramebufferRenderbuffer %u %u\n", fb->Name, rb ? rb->Name : 0); in intel_framebuffer_renderbuffer()
[all …]
/external/webrtc/webrtc/modules/video_coding/codecs/vp9/
Dvp9_frame_buffer_pool.cc103 vpx_codec_frame_buffer* fb) { in VpxGetFrameBuffer() argument
105 RTC_DCHECK(fb); in VpxGetFrameBuffer()
109 fb->data = buffer->GetData(); in VpxGetFrameBuffer()
110 fb->size = buffer->GetDataSize(); in VpxGetFrameBuffer()
116 fb->priv = static_cast<void*>(buffer.release()); in VpxGetFrameBuffer()
122 vpx_codec_frame_buffer* fb) { in VpxReleaseFrameBuffer() argument
124 RTC_DCHECK(fb); in VpxReleaseFrameBuffer()
125 Vp9FrameBuffer* buffer = static_cast<Vp9FrameBuffer*>(fb->priv); in VpxReleaseFrameBuffer()
131 fb->priv = nullptr; in VpxReleaseFrameBuffer()

12345678910>>...16