/external/mesa3d/src/gallium/state_trackers/wgl/ |
D | stw_framebuffer.c | 53 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 stw_framebuffer_lock(fb); in stw_framebuffer_from_hwnd_locked() 58 assert(fb->mutex.RecursionCount == 1); in stw_framebuffer_from_hwnd_locked() 59 return fb; in stw_framebuffer_from_hwnd_locked() 74 stw_framebuffer_release_locked(struct stw_framebuffer *fb) in stw_framebuffer_release_locked() argument 78 assert(fb); in stw_framebuffer_release_locked() 79 assert(stw_own_mutex(&fb->mutex)); in stw_framebuffer_release_locked() 83 fb->refcnt--; in stw_framebuffer_release_locked() [all …]
|
D | stw_ext_pbuffer.c | 80 struct stw_framebuffer *fb; in wglCreatePbufferARB() local 249 fb = stw_framebuffer_create(hDC, iPixelFormat); in wglCreatePbufferARB() 250 if (!fb) { in wglCreatePbufferARB() 255 fb->bPbuffer = TRUE; in wglCreatePbufferARB() 258 fb->textureTarget = textureTarget; in wglCreatePbufferARB() 259 fb->textureFormat = textureFormat; in wglCreatePbufferARB() 260 fb->textureMipmap = textureMipmap; in wglCreatePbufferARB() 262 iDisplayablePixelFormat = fb->iDisplayablePixelFormat; in wglCreatePbufferARB() 264 stw_framebuffer_unlock(fb); in wglCreatePbufferARB() 273 return (HPBUFFERARB)fb; in wglCreatePbufferARB() [all …]
|
D | stw_framebuffer.h | 142 stw_framebuffer_reference_locked(struct stw_framebuffer *fb) in stw_framebuffer_reference_locked() argument 144 if (fb) { in stw_framebuffer_reference_locked() 145 assert(stw_own_mutex(&fb->mutex)); in stw_framebuffer_reference_locked() 146 fb->refcnt++; in stw_framebuffer_reference_locked() 152 stw_framebuffer_release_locked(struct stw_framebuffer *fb); 174 struct stw_framebuffer *fb, 178 stw_framebuffer_update(struct stw_framebuffer *fb); 182 stw_framebuffer_lock(struct stw_framebuffer *fb) in stw_framebuffer_lock() argument 184 assert(fb); in stw_framebuffer_lock() 185 EnterCriticalSection(&fb->mutex); in stw_framebuffer_lock() [all …]
|
D | stw_ext_rendertexture.c | 109 struct stw_framebuffer *fb; in wglBindTexImageARB() local 132 fb = stw_framebuffer_from_HPBUFFERARB(hPbuffer); in wglBindTexImageARB() 133 if (!fb) { in wglBindTexImageARB() 146 target = translate_target(fb->textureTarget); in wglBindTexImageARB() 152 texFormat = translate_texture_format(fb->textureFormat); in wglBindTexImageARB() 166 pixelFormatSave = fb->iPixelFormat; in wglBindTexImageARB() 167 fb->iPixelFormat = curctx->iPixelFormat; in wglBindTexImageARB() 170 fb->iPixelFormat = pixelFormatSave; in wglBindTexImageARB() 177 st_copy_framebuffer_to_texture(srcBuffer, fb->width, fb->height, in wglBindTexImageARB() 178 target, fb->textureLevel, in wglBindTexImageARB() [all …]
|
D | stw_st.c | 41 struct stw_framebuffer *fb; member 156 stw_framebuffer_lock(stwfb->fb); in stw_st_framebuffer_validate() 158 if (stwfb->fb->must_resize || (statt_mask & ~stwfb->texture_mask)) { in stw_st_framebuffer_validate() 160 stwfb->fb->width, stwfb->fb->height, statt_mask); in stw_st_framebuffer_validate() 161 stwfb->fb->must_resize = FALSE; in stw_st_framebuffer_validate() 169 stw_framebuffer_unlock(stwfb->fb); in stw_st_framebuffer_validate() 185 assert(stw_own_mutex(&stwfb->fb->mutex)); in stw_st_framebuffer_present_locked() 189 stw_framebuffer_present_locked(hdc, stwfb->fb, resource); in stw_st_framebuffer_present_locked() 192 stw_framebuffer_unlock(stwfb->fb); in stw_st_framebuffer_present_locked() 195 assert(!stw_own_mutex(&stwfb->fb->mutex)); in stw_st_framebuffer_present_locked() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | framebuffer.c | 55 compute_depth_max(struct gl_framebuffer *fb) in compute_depth_max() argument 57 if (fb->Visual.depthBits == 0) { in compute_depth_max() 62 fb->_DepthMax = (1 << 16) - 1; in compute_depth_max() 64 else if (fb->Visual.depthBits < 32) { in compute_depth_max() 65 fb->_DepthMax = (1 << fb->Visual.depthBits) - 1; in compute_depth_max() 71 fb->_DepthMax = 0xffffffff; in compute_depth_max() 73 fb->_DepthMaxF = (GLfloat) fb->_DepthMax; in compute_depth_max() 76 fb->_MRD = (GLfloat)1.0 / fb->_DepthMaxF; in compute_depth_max() 89 struct gl_framebuffer *fb = CALLOC_STRUCT(gl_framebuffer); in _mesa_create_framebuffer() local 91 if (fb) { in _mesa_create_framebuffer() [all …]
|
D | buffers.c | 56 const struct gl_framebuffer *fb) in supported_buffer_bitmask() argument 60 if (_mesa_is_user_fbo(fb)) { in supported_buffer_bitmask() 68 if (fb->Visual.stereoMode) { in supported_buffer_bitmask() 70 if (fb->Visual.doubleBufferMode) { in supported_buffer_bitmask() 74 else if (fb->Visual.doubleBufferMode) { in supported_buffer_bitmask() 78 for (i = 0; i < fb->Visual.numAuxBuffers; i++) { in supported_buffer_bitmask() 268 draw_buffer(struct gl_context *ctx, struct gl_framebuffer *fb, in draw_buffer() argument 284 = supported_buffer_bitmask(ctx, fb); in draw_buffer() 302 _mesa_drawbuffers(ctx, fb, 1, &buffer, &destMask); in draw_buffer() 305 if (fb == ctx->DrawBuffer) { in draw_buffer() [all …]
|
D | fbobject.c | 83 delete_dummy_framebuffer(struct gl_framebuffer *fb) in delete_dummy_framebuffer() argument 150 struct gl_framebuffer *fb; in _mesa_lookup_framebuffer() local 155 fb = (struct gl_framebuffer *) in _mesa_lookup_framebuffer() 157 return fb; in _mesa_lookup_framebuffer() 169 struct gl_framebuffer *fb; in _mesa_lookup_framebuffer_err() local 171 fb = _mesa_lookup_framebuffer(ctx, id); in _mesa_lookup_framebuffer_err() 172 if (!fb || fb == &DummyFramebuffer) { in _mesa_lookup_framebuffer_err() 178 return fb; in _mesa_lookup_framebuffer_err() 188 invalidate_framebuffer(struct gl_framebuffer *fb) in invalidate_framebuffer() argument 190 fb->_Status = 0; /* "indeterminate" */ in invalidate_framebuffer() [all …]
|
D | framebuffer.h | 42 _mesa_initialize_window_framebuffer(struct gl_framebuffer *fb, 46 _mesa_initialize_user_framebuffer(struct gl_framebuffer *fb, GLuint name); 56 struct gl_framebuffer *fb); 60 struct gl_framebuffer *fb) in _mesa_reference_framebuffer() argument 62 if (*ptr != fb) in _mesa_reference_framebuffer() 63 _mesa_reference_framebuffer_(ptr, fb); in _mesa_reference_framebuffer() 67 _mesa_resize_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb, 117 struct gl_framebuffer *fb); 141 _mesa_print_framebuffer(const struct gl_framebuffer *fb); 144 _mesa_is_front_buffer_reading(const struct gl_framebuffer *fb); [all …]
|
/external/libdrm/tests/kms/ |
D | libkms-test-framebuffer.c | 46 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 …]
|
D | kms-steal-crtc.c | 50 struct kms_framebuffer *fb; in main() local 97 fb = kms_framebuffer_create(device, screen->width, screen->height, in main() 99 if (!fb) { in main() 104 err = kms_framebuffer_map(fb, &ptr); in main() 110 util_fill_pattern(fb->format, UTIL_PATTERN_SMPTE, &ptr, fb->width, in main() 111 fb->height, fb->pitch); in main() 113 kms_framebuffer_unmap(fb); in main() 115 err = kms_screen_set(screen, device->crtcs[index++], fb); in main() 151 err = kms_screen_set(screen, device->crtcs[index], fb); in main() 160 kms_framebuffer_free(fb); in main()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_renderbuffer.c | 239 add_color_renderbuffers(struct gl_context *ctx, struct gl_framebuffer *fb, in add_color_renderbuffers() argument 266 assert(fb->Attachment[b].Renderbuffer == NULL); in add_color_renderbuffers() 277 _mesa_add_renderbuffer(fb, b, rb); in add_color_renderbuffers() 293 add_depth_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, in add_depth_renderbuffer() argument 304 assert(fb->Attachment[BUFFER_DEPTH].Renderbuffer == NULL); in add_depth_renderbuffer() 323 _mesa_add_renderbuffer(fb, BUFFER_DEPTH, rb); in add_depth_renderbuffer() 338 add_stencil_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, in add_stencil_renderbuffer() argument 349 assert(fb->Attachment[BUFFER_STENCIL].Renderbuffer == NULL); in add_stencil_renderbuffer() 361 _mesa_add_renderbuffer(fb, BUFFER_STENCIL, rb); in add_stencil_renderbuffer() 369 struct gl_framebuffer *fb) in add_depth_stencil_renderbuffer() argument [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_framebuffer.c | 124 util_unreference_framebuffer_state(struct pipe_framebuffer_state *fb) in util_unreference_framebuffer_state() argument 128 for (i = 0; i < fb->nr_cbufs; i++) { in util_unreference_framebuffer_state() 129 pipe_surface_reference(&fb->cbufs[i], NULL); in util_unreference_framebuffer_state() 132 pipe_surface_reference(&fb->zsbuf, NULL); in util_unreference_framebuffer_state() 134 fb->samples = fb->layers = 0; in util_unreference_framebuffer_state() 135 fb->width = fb->height = 0; in util_unreference_framebuffer_state() 136 fb->nr_cbufs = 0; in util_unreference_framebuffer_state() 144 util_framebuffer_min_size(const struct pipe_framebuffer_state *fb, in util_framebuffer_min_size() argument 152 for (i = 0; i < fb->nr_cbufs; i++) { in util_framebuffer_min_size() 153 if (!fb->cbufs[i]) in util_framebuffer_min_size() [all …]
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/estimators/ |
D | nada.cc | 177 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/drivers/swr/ |
D | swr_clear.cpp | 35 struct pipe_framebuffer_state *fb = &ctx->framebuffer; in swr_clear() local 45 if (buffers & PIPE_CLEAR_COLOR && fb->nr_cbufs) { in swr_clear() 46 for (unsigned i = 0; i < fb->nr_cbufs; ++i) in swr_clear() 47 if (fb->cbufs[i] && (buffers & (PIPE_CLEAR_COLOR0 << i))) { in swr_clear() 49 layers = std::max(layers, fb->cbufs[i]->u.tex.last_layer - in swr_clear() 50 fb->cbufs[i]->u.tex.first_layer + 1u); in swr_clear() 54 if (buffers & PIPE_CLEAR_DEPTH && fb->zsbuf) { in swr_clear() 56 layers = std::max(layers, fb->zsbuf->u.tex.last_layer - in swr_clear() 57 fb->zsbuf->u.tex.first_layer + 1u); in swr_clear() 60 if (buffers & PIPE_CLEAR_STENCIL && fb->zsbuf) { in swr_clear() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_clear.c | 81 noop_scissor(struct gl_framebuffer *fb) in noop_scissor() argument 83 return fb->_Xmin <= 0 && in noop_scissor() 84 fb->_Ymin <= 0 && in noop_scissor() 85 fb->_Xmax >= fb->Width && in noop_scissor() 86 fb->_Ymax >= fb->Height; in noop_scissor() 105 struct gl_framebuffer *fb = ctx->DrawBuffer; in brw_fast_clear_depth() local 107 intel_get_renderbuffer(fb, BUFFER_DEPTH); in brw_fast_clear_depth() 109 struct gl_renderbuffer_attachment *depth_att = &fb->Attachment[BUFFER_DEPTH]; in brw_fast_clear_depth() 121 if ((ctx->Scissor.EnableFlags & 1) && !noop_scissor(fb)) { in brw_fast_clear_depth() 166 depth_clear_value = fb->_DepthMax * ctx->Depth.Clear; in brw_fast_clear_depth() [all …]
|
/external/libvpx/libvpx/test/ |
D | external_frame_buffer_test.cc | 62 int GetFreeFrameBuffer(size_t min_size, vpx_codec_frame_buffer_t *fb) { in GetFreeFrameBuffer() argument 63 EXPECT_TRUE(fb != NULL); in GetFreeFrameBuffer() 74 SetFrameBuffer(idx, fb); in GetFreeFrameBuffer() 82 int GetZeroFrameBuffer(size_t min_size, vpx_codec_frame_buffer_t *fb) { in GetZeroFrameBuffer() argument 83 EXPECT_TRUE(fb != NULL); in GetZeroFrameBuffer() 93 SetFrameBuffer(idx, fb); in GetZeroFrameBuffer() 99 int ReturnFrameBuffer(vpx_codec_frame_buffer_t *fb) { in ReturnFrameBuffer() argument 100 if (fb == NULL) { in ReturnFrameBuffer() 101 EXPECT_TRUE(fb != NULL); in ReturnFrameBuffer() 105 reinterpret_cast<ExternalFrameBuffer *>(fb->priv); in ReturnFrameBuffer() [all …]
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_surface.c | 49 const struct pipe_framebuffer_state *fb) in softpipe_set_framebuffer_state() argument 57 struct pipe_surface *cb = i < fb->nr_cbufs ? fb->cbufs[i] : NULL; in softpipe_set_framebuffer_state() 72 sp->framebuffer.nr_cbufs = fb->nr_cbufs; in softpipe_set_framebuffer_state() 75 if (sp->framebuffer.zsbuf != fb->zsbuf) { in softpipe_set_framebuffer_state() 80 pipe_surface_reference(&sp->framebuffer.zsbuf, fb->zsbuf); in softpipe_set_framebuffer_state() 83 sp_tile_cache_set_surface(sp->zsbuf_cache, fb->zsbuf); in softpipe_set_framebuffer_state() 95 sp->framebuffer.width = fb->width; in softpipe_set_framebuffer_state() 96 sp->framebuffer.height = fb->height; in softpipe_set_framebuffer_state() 97 sp->framebuffer.samples = fb->samples; in softpipe_set_framebuffer_state() 98 sp->framebuffer.layers = fb->layers; in softpipe_set_framebuffer_state()
|
/external/autotest/client/site_tests/graphics_WebGLAquarium/ |
D | sampler.py | 144 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/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nouveau_util.h | 133 get_scissors(struct gl_framebuffer *fb, int *x, int *y, int *w, int *h) in get_scissors() argument 135 *w = fb->_Xmax - fb->_Xmin; in get_scissors() 136 *h = fb->_Ymax - fb->_Ymin; in get_scissors() 137 *x = fb->_Xmin; in get_scissors() 138 *y = (fb->Name ? fb->_Ymin : in get_scissors() 140 fb->Height - fb->_Ymax); in get_scissors() 147 struct gl_framebuffer *fb = ctx->DrawBuffer; in get_viewport_scale() local 151 if (fb->Name) in get_viewport_scale() 157 a[MAT_SZ] = fb->_DepthMaxF * (vp->Far - vp->Near) / 2; in get_viewport_scale() 164 struct gl_framebuffer *fb = ctx->DrawBuffer; in get_viewport_translate() local [all …]
|
D | nv20_state_fb.c | 58 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 …]
|
D | nv10_state_fb.c | 58 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/svga/ |
D | svga_pipe_misc.c | 109 const struct pipe_framebuffer_state *fb) in svga_set_framebuffer_state() argument 120 dst->width = fb->width; in svga_set_framebuffer_state() 121 dst->height = fb->height; in svga_set_framebuffer_state() 122 dst->nr_cbufs = fb->nr_cbufs; in svga_set_framebuffer_state() 128 struct pipe_surface *s = i < fb->nr_cbufs ? fb->cbufs[i] : NULL; in svga_set_framebuffer_state() 142 if (fb->zsbuf) { in svga_set_framebuffer_state() 143 width = fb->zsbuf->width; in svga_set_framebuffer_state() 144 height = fb->zsbuf->height; in svga_set_framebuffer_state() 146 for (i = 0; i < fb->nr_cbufs; ++i) { in svga_set_framebuffer_state() 147 if (fb->cbufs[i]) { in svga_set_framebuffer_state() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_framebuffer.c | 111 struct gl_framebuffer *fb = st->ctx->DrawBuffer; in update_framebuffer_state() local 118 st->state.fb_orientation = st_fb_orientation(fb); in update_framebuffer_state() 128 fb->DefaultGeometry._NumSamples = in update_framebuffer_state() 129 framebuffer_quantize_num_samples(st, fb->DefaultGeometry.NumSamples); in update_framebuffer_state() 131 framebuffer->width = _mesa_geometric_width(fb); in update_framebuffer_state() 132 framebuffer->height = _mesa_geometric_height(fb); in update_framebuffer_state() 133 framebuffer->samples = _mesa_geometric_samples(fb); in update_framebuffer_state() 134 framebuffer->layers = _mesa_geometric_layers(fb); in update_framebuffer_state() 139 framebuffer->nr_cbufs = fb->_NumColorDrawBuffers; in update_framebuffer_state() 141 for (i = 0; i < fb->_NumColorDrawBuffers; i++) { in update_framebuffer_state() [all …]
|
/external/ltp/utils/ffsb-6.0-rc2/ |
D | util.c | 281 void ffsb_barrier_init(ffsb_barrier_t * fb, unsigned count) in ffsb_barrier_init() argument 283 memset(fb, 0, sizeof(*fb)); in ffsb_barrier_init() 284 pthread_mutex_init(&fb->plock, NULL); in ffsb_barrier_init() 285 pthread_cond_init(&fb->pcond, NULL); in ffsb_barrier_init() 286 fb->required_count = count; in ffsb_barrier_init() 289 void ffsb_barrier_wait(ffsb_barrier_t * fb) in ffsb_barrier_wait() argument 291 pthread_mutex_lock(&fb->plock); in ffsb_barrier_wait() 293 fb->current_count++; in ffsb_barrier_wait() 295 if (fb->current_count == fb->required_count) in ffsb_barrier_wait() 296 pthread_cond_broadcast(&fb->pcond); in ffsb_barrier_wait() [all …]
|