/external/mesa3d/src/mesa/main/ |
D | accum.c | 69 if (!ctx->DrawBuffer) in _mesa_clear_accum_buffer() 72 accRb = ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; in _mesa_clear_accum_buffer() 76 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in _mesa_clear_accum_buffer() 79 x = ctx->DrawBuffer->_Xmin; in _mesa_clear_accum_buffer() 80 y = ctx->DrawBuffer->_Ymin; in _mesa_clear_accum_buffer() 81 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _mesa_clear_accum_buffer() 82 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _mesa_clear_accum_buffer() 86 ctx->DrawBuffer->FlipY); in _mesa_clear_accum_buffer() 133 ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; in accum_scale_or_bias() 142 ctx->DrawBuffer->FlipY); in accum_scale_or_bias() [all …]
|
D | clear.c | 117 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[idx]; in color_buffer_writes_enabled() 172 if (!no_error && ctx->DrawBuffer->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) { in clear() 196 for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) { in clear() 197 gl_buffer_index buf = ctx->DrawBuffer->_ColorDrawBufferIndexes[i]; in clear() 206 && ctx->DrawBuffer->Visual.depthBits > 0) { in clear() 211 && ctx->DrawBuffer->Visual.stencilBits > 0) { in clear() 216 && ctx->DrawBuffer->Visual.accumRedBits > 0) { in clear() 258 const struct gl_renderbuffer_attachment *att = ctx->DrawBuffer->Attachment; in make_color_buffer_mask() 279 switch (ctx->DrawBuffer->ColorDrawBuffer[drawbuffer]) { in make_color_buffer_mask() 292 if (!ctx->DrawBuffer->Visual.doubleBufferMode) in make_color_buffer_mask() [all …]
|
D | buffers.c | 139 buffer = _mesa_back_to_front_if_single_buffered(ctx->DrawBuffer, buffer); in draw_buffer_enum_to_bitmask() 324 if (fb == ctx->DrawBuffer) { in draw_buffer() 325 if (ctx->Driver.DrawBuffer) in draw_buffer() 326 ctx->Driver.DrawBuffer(ctx); in draw_buffer() 353 draw_buffer_no_error(ctx, ctx->DrawBuffer, buffer, "glDrawBuffer"); in _mesa_DrawBuffer_no_error() 361 draw_buffer_error(ctx, ctx->DrawBuffer, buffer, "glDrawBuffer"); in _mesa_DrawBuffer() 633 if (fb == ctx->DrawBuffer) { in draw_buffers() 634 if (ctx->Driver.DrawBuffer) in draw_buffers() 635 ctx->Driver.DrawBuffer(ctx); in draw_buffers() 662 draw_buffers_no_error(ctx, ctx->DrawBuffer, n, buffers, "glDrawBuffers"); in _mesa_DrawBuffers_no_error() [all …]
|
D | multisample.c | 91 if (index >= ctx->DrawBuffer->Visual.samples) { in _mesa_GetMultisamplefv() 96 ctx->Driver.GetSamplePosition(ctx, ctx->DrawBuffer, index, val); in _mesa_GetMultisamplefv() 99 if (ctx->DrawBuffer->FlipY) in _mesa_GetMultisamplefv() 116 if (ctx->DrawBuffer->SampleLocationTable) in _mesa_GetMultisamplefv() 117 *val = ctx->DrawBuffer->SampleLocationTable[index]; in _mesa_GetMultisamplefv()
|
D | debug.c | 454 const GLuint w = ctx->DrawBuffer->Width; in _mesa_dump_color_buffer() 455 const GLuint h = ctx->DrawBuffer->Height; in _mesa_dump_color_buffer() 469 (void *) ctx->DrawBuffer->_ColorDrawBuffers[0], in _mesa_dump_color_buffer() 470 ctx->DrawBuffer->ColorDrawBuffer[0]); in _mesa_dump_color_buffer() 484 const GLuint w = ctx->DrawBuffer->Width; in _mesa_dump_depth_buffer() 485 const GLuint h = ctx->DrawBuffer->Height; in _mesa_dump_depth_buffer() 520 const GLuint w = ctx->DrawBuffer->Width; in _mesa_dump_stencil_buffer() 521 const GLuint h = ctx->DrawBuffer->Height; in _mesa_dump_stencil_buffer()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_clear.c | 116 const GLint x = ctx->DrawBuffer->_Xmin; in clear_rgba_buffer() 117 const GLint y = ctx->DrawBuffer->_Ymin; in clear_rgba_buffer() 118 const GLint height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in clear_rgba_buffer() 119 const GLint width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in clear_rgba_buffer() 140 ctx->DrawBuffer->FlipY); in clear_rgba_buffer() 251 for (buf = 0; buf < ctx->DrawBuffer->_NumColorDrawBuffers; buf++) { in clear_color_buffers() 252 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[buf]; in clear_color_buffers() 306 && (ctx->DrawBuffer->_NumColorDrawBuffers > 0)) { in _swrast_Clear() 316 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_Clear() 318 ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in _swrast_Clear()
|
D | s_depth.c | 167 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_depth_clamp_span() 285 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_depth_test_span() 413 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_depth_bounds_test() 541 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_clear_depth_buffer() 553 x = ctx->DrawBuffer->_Xmin; in _swrast_clear_depth_buffer() 554 y = ctx->DrawBuffer->_Ymin; in _swrast_clear_depth_buffer() 555 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _swrast_clear_depth_buffer() 556 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _swrast_clear_depth_buffer() 568 ctx->DrawBuffer->FlipY); in _swrast_clear_depth_buffer() 667 const GLubyte stencilBits = ctx->DrawBuffer->Visual.stencilBits; in _swrast_clear_depth_stencil_buffer() [all …]
|
D | s_stencil.c | 353 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_stencil_and_ztest_span() 397 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer == NULL) { in _swrast_stencil_and_ztest_span() 498 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_write_stencil_span() 553 ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in _swrast_clear_stencil_buffer() 554 const GLubyte stencilBits = ctx->DrawBuffer->Visual.stencilBits; in _swrast_clear_stencil_buffer() 566 x = ctx->DrawBuffer->_Xmin; in _swrast_clear_stencil_buffer() 567 y = ctx->DrawBuffer->_Ymin; in _swrast_clear_stencil_buffer() 568 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _swrast_clear_stencil_buffer() 569 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _swrast_clear_stencil_buffer() 583 ctx->DrawBuffer->FlipY); in _swrast_clear_stencil_buffer()
|
D | s_feedback.c | 44 win[2] = v->attrib[VARYING_SLOT_POS][2] / ctx->DrawBuffer->_DepthMaxF; in feedback_vertex() 114 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; in _swrast_select_triangle() 126 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; in _swrast_select_line() 135 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; in _swrast_select_point()
|
D | s_linetemp.h | 79 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits; in NAME() 81 struct gl_renderbuffer *zrb = ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in NAME() 86 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits; in NAME() 134 GLint w = ctx->DrawBuffer->Width; in NAME() 135 GLint h = ctx->DrawBuffer->Height; in NAME() 199 zPtrYstep = -((GLint) (ctx->DrawBuffer->Width * sizeof(DEPTH_TYPE))); in NAME() 208 zPtrYstep = (GLint) (ctx->DrawBuffer->Width * sizeof(DEPTH_TYPE)); in NAME()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_dd.c | 75 if (_mesa_is_user_fbo(ctx->DrawBuffer)) in color_mask() 78 xmbuf = XMESA_BUFFER(ctx->DrawBuffer); in color_mask() 110 XMesaBuffer xmbuf = XMESA_BUFFER(ctx->DrawBuffer); in clear_pixmap() 246 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in clear_buffers() 249 XMesaBuffer b = XMESA_BUFFER(ctx->DrawBuffer); in clear_buffers() 250 const GLint x = ctx->DrawBuffer->_Xmin; in clear_buffers() 251 const GLint y = ctx->DrawBuffer->_Ymin; in clear_buffers() 252 const GLint width = ctx->DrawBuffer->_Xmax - x; in clear_buffers() 253 const GLint height = ctx->DrawBuffer->_Ymax - y; in clear_buffers() 271 = ctx->DrawBuffer->Attachment[BUFFER_FRONT_LEFT].Renderbuffer; in clear_buffers() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_clear.c | 239 const struct gl_framebuffer *fb = ctx->DrawBuffer; in clear_with_quad() 243 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in clear_with_quad() 245 const GLfloat x0 = (GLfloat) ctx->DrawBuffer->_Xmin / fb_width * 2.0f - 1.0f; in clear_with_quad() 246 const GLfloat x1 = (GLfloat) ctx->DrawBuffer->_Xmax / fb_width * 2.0f - 1.0f; in clear_with_quad() 247 const GLfloat y0 = (GLfloat) ctx->DrawBuffer->_Ymin / fb_height * 2.0f - 1.0f; in clear_with_quad() 248 const GLfloat y1 = (GLfloat) ctx->DrawBuffer->_Ymax / fb_height * 2.0f - 1.0f; in clear_with_quad() 279 ctx->DrawBuffer->_NumColorDrawBuffers : 1; in clear_with_quad() 389 if (ctx->DrawBuffer == ctx->WinSysDrawBuffer) in is_window_rectangle_enabled() 430 = ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in st_Clear() 432 = ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in st_Clear() [all …]
|
D | st_atom_blend.c | 144 if (ctx->DrawBuffer->_IntegerBuffers && in blend_per_rt() 145 (ctx->DrawBuffer->_IntegerBuffers != cb_mask)) { in blend_per_rt() 151 if (st->needs_rgb_dst_alpha_override && ctx->DrawBuffer->_RGBBuffers) { in blend_per_rt() 229 (ctx->DrawBuffer->_IntegerBuffers & (1 << i)) || in st_update_blend() 270 ctx->DrawBuffer->_ColorDrawBuffers[i]; in st_update_blend() 273 (ctx->DrawBuffer->_RGBBuffers & (1 << i))) { in st_update_blend() 289 !(ctx->DrawBuffer->_IntegerBuffers & 0x1)) { in st_update_blend()
|
D | st_atom_stipple.c | 77 if (!ctx->DrawBuffer->FlipY) { in st_update_polygon_stipple() 81 ctx->DrawBuffer->Height); in st_update_polygon_stipple()
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_common.c | 112 if (!ctx->DrawBuffer) in radeonUpdateScissor() 115 max_x = ctx->DrawBuffer->Width - 1; in radeonUpdateScissor() 116 max_y = ctx->DrawBuffer->Height - 1; in radeonUpdateScissor() 118 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonUpdateScissor() 120 y1 = ctx->DrawBuffer->Height - (y + h); in radeonUpdateScissor() 201 _mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer); in radeon_draw_buffer() 203 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in radeon_draw_buffer() 324 if (_mesa_is_front_buffer_drawing(ctx->DrawBuffer)) { in radeonDrawBuffer() 337 radeon_draw_buffer(ctx, ctx->DrawBuffer); in radeonDrawBuffer() 348 if (ctx->ReadBuffer == ctx->DrawBuffer) { in radeonReadBuffer() [all …]
|
D | radeon_span.c | 133 radeon_map_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderStart() 134 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderStart() 143 radeon_unmap_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderFinish() 144 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderFinish()
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_common.c | 112 if (!ctx->DrawBuffer) in radeonUpdateScissor() 115 max_x = ctx->DrawBuffer->Width - 1; in radeonUpdateScissor() 116 max_y = ctx->DrawBuffer->Height - 1; in radeonUpdateScissor() 118 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonUpdateScissor() 120 y1 = ctx->DrawBuffer->Height - (y + h); in radeonUpdateScissor() 201 _mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer); in radeon_draw_buffer() 203 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in radeon_draw_buffer() 324 if (_mesa_is_front_buffer_drawing(ctx->DrawBuffer)) { in radeonDrawBuffer() 337 radeon_draw_buffer(ctx, ctx->DrawBuffer); in radeonDrawBuffer() 348 if (ctx->ReadBuffer == ctx->DrawBuffer) { in radeonReadBuffer() [all …]
|
D | radeon_span.c | 133 radeon_map_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderStart() 134 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderStart() 143 radeon_unmap_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderFinish() 144 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderFinish()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_buffers.c | 44 const struct gl_framebuffer *fb = intel->ctx.DrawBuffer; in intel_check_front_buffer_rendering() 58 if (_mesa_is_front_buffer_drawing(ctx->DrawBuffer)) { in intelDrawBuffer() 90 functions->DrawBuffer = intelDrawBuffer; in intelInitBufferFuncs()
|
D | i915_state.c | 379 if (!ctx->DrawBuffer || !ctx->DrawBuffer->Visual.depthBits) in i915DepthMask() 409 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in intelCalcViewport() 411 translate[1] = ctx->DrawBuffer->Height - translate[1]; in intelCalcViewport() 501 if (!ctx->DrawBuffer) in i915Scissor() 508 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in i915Scissor() 510 y1 = ctx->DrawBuffer->Height - (ctx->Scissor.ScissorArray[0].Y in i915Scissor() 529 x1 = CLAMP(x1, 0, ctx->DrawBuffer->Width - 1); in i915Scissor() 530 y1 = CLAMP(y1, 0, ctx->DrawBuffer->Height - 1); in i915Scissor() 531 x2 = CLAMP(x2, 0, ctx->DrawBuffer->Width - 1); in i915Scissor() 532 y2 = CLAMP(y2, 0, ctx->DrawBuffer->Height - 1); in i915Scissor() [all …]
|
D | i830_state.c | 441 if (!ctx->DrawBuffer || !ctx->DrawBuffer->Visual.depthBits) in i830DepthMask() 535 if (!ctx->DrawBuffer) in i830Scissor() 542 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in i830Scissor() 544 y1 = ctx->DrawBuffer->Height - (ctx->Scissor.ScissorArray[0].Y in i830Scissor() 563 x1 = CLAMP(x1, 0, ctx->DrawBuffer->Width - 1); in i830Scissor() 564 y1 = CLAMP(y1, 0, ctx->DrawBuffer->Height - 1); in i830Scissor() 565 x2 = CLAMP(x2, 0, ctx->DrawBuffer->Width - 1); in i830Scissor() 566 y2 = CLAMP(y2, 0, ctx->DrawBuffer->Height - 1); in i830Scissor() 604 if (ctx->DrawBuffer && _mesa_is_user_fbo(ctx->DrawBuffer)) in i830CullFaceFrontFace() 807 if (!ctx->DrawBuffer || !ctx->DrawBuffer->Visual.depthBits) in i830Enable() [all …]
|
D | i915_vtbl.c | 575 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0]; in i915_set_draw_region() 619 drb = ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in i915_set_draw_region() 621 drb = ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in i915_set_draw_region() 654 (ctx->DrawBuffer->Width + draw_x > 2048) || in i915_set_draw_region() 655 (ctx->DrawBuffer->Height + draw_y > 2048)); in i915_set_draw_region() 667 ((ctx->DrawBuffer->Width + draw_x - 1) & 0xffff) | in i915_set_draw_region() 668 ((ctx->DrawBuffer->Height + draw_y - 1) << 16); in i915_set_draw_region() 703 struct gl_framebuffer *fb = ctx->DrawBuffer; in i915_update_draw_buffer() 720 _mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer); in i915_update_draw_buffer() 722 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in i915_update_draw_buffer()
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nv10_state_fb.c | 58 struct gl_framebuffer *fb = ctx->DrawBuffer; in setup_hierz_buffer() 96 struct gl_framebuffer *fb = ctx->DrawBuffer; in nv10_emit_framebuffer() 169 get_scissors(ctx->DrawBuffer, &x, &y, &w, &h); in nv10_emit_scissor() 181 struct gl_framebuffer *fb = ctx->DrawBuffer; in nv10_emit_viewport() 207 to_nouveau_framebuffer(ctx->DrawBuffer); in nv10_emit_zclear()
|
D | nv20_state_fb.c | 58 struct gl_framebuffer *fb = ctx->DrawBuffer; in setup_hierz_buffer() 81 struct gl_framebuffer *fb = ctx->DrawBuffer; in nv20_emit_framebuffer() 138 struct gl_framebuffer *fb = ctx->DrawBuffer; in nv20_emit_viewport()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_buffers.c | 38 if (_mesa_is_front_buffer_drawing(ctx->DrawBuffer)) { in intelDrawBuffer() 70 functions->DrawBuffer = intelDrawBuffer; in intelInitBufferFuncs()
|