/third_party/mesa3d/src/mesa/main/ |
D | accum.c | 70 if (!ctx->DrawBuffer) in _mesa_clear_accum_buffer() 73 accRb = ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; in _mesa_clear_accum_buffer() 77 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in _mesa_clear_accum_buffer() 80 x = ctx->DrawBuffer->_Xmin; in _mesa_clear_accum_buffer() 81 y = ctx->DrawBuffer->_Ymin; in _mesa_clear_accum_buffer() 82 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _mesa_clear_accum_buffer() 83 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _mesa_clear_accum_buffer() 87 ctx->DrawBuffer->FlipY); in _mesa_clear_accum_buffer() 134 ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; in accum_scale_or_bias() 143 ctx->DrawBuffer->FlipY); in accum_scale_or_bias() [all …]
|
D | clear.c | 121 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[idx]; in color_buffer_writes_enabled() 176 if (!no_error && ctx->DrawBuffer->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) { in clear() 200 for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) { in clear() 201 gl_buffer_index buf = ctx->DrawBuffer->_ColorDrawBufferIndexes[i]; in clear() 210 && ctx->DrawBuffer->Visual.depthBits > 0) { in clear() 215 && ctx->DrawBuffer->Visual.stencilBits > 0) { in clear() 220 && ctx->DrawBuffer->Visual.accumRedBits > 0) { in clear() 262 const struct gl_renderbuffer_attachment *att = ctx->DrawBuffer->Attachment; in make_color_buffer_mask() 283 switch (ctx->DrawBuffer->ColorDrawBuffer[drawbuffer]) { in make_color_buffer_mask() 296 if (!ctx->DrawBuffer->Visual.doubleBufferMode) in make_color_buffer_mask() [all …]
|
D | draw_validate.c | 75 if (!ctx->DrawBuffer || in _mesa_update_valid_to_render_state() 76 ctx->DrawBuffer->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) { in _mesa_update_valid_to_render_state() 102 unsigned num_color_buffers = ctx->DrawBuffer->_NumColorDrawBuffers; in _mesa_update_valid_to_render_state() 124 if (ctx->DrawBuffer->ColorDrawBuffer[0] == GL_FRONT_AND_BACK) in _mesa_update_valid_to_render_state() 128 if (ctx->DrawBuffer->ColorDrawBuffer[i] != GL_NONE) in _mesa_update_valid_to_render_state() 158 if (ctx->DrawBuffer->_IntegerBuffers) in _mesa_update_valid_to_render_state() 217 (ctx->DrawBuffer->_FP32Buffers & ctx->Color.BlendEnabled)) in _mesa_update_valid_to_render_state()
|
D | buffers.c | 134 buffer = _mesa_back_to_front_if_single_buffered(ctx->DrawBuffer, buffer); in draw_buffer_enum_to_bitmask() 317 if (fb == ctx->DrawBuffer) { in draw_buffer() 318 if (ctx->Driver.DrawBuffer) in draw_buffer() 319 ctx->Driver.DrawBuffer(ctx); in draw_buffer() 346 draw_buffer_no_error(ctx, ctx->DrawBuffer, buffer, "glDrawBuffer"); in _mesa_DrawBuffer_no_error() 354 draw_buffer_error(ctx, ctx->DrawBuffer, buffer, "glDrawBuffer"); in _mesa_DrawBuffer() 626 if (fb == ctx->DrawBuffer) { in draw_buffers() 627 if (ctx->Driver.DrawBuffer) in draw_buffers() 628 ctx->Driver.DrawBuffer(ctx); in draw_buffers() 655 draw_buffers_no_error(ctx, ctx->DrawBuffer, n, buffers, "glDrawBuffers"); in _mesa_DrawBuffers_no_error() [all …]
|
D | multisample.c | 92 if (index >= ctx->DrawBuffer->Visual.samples) { in _mesa_GetMultisamplefv() 97 ctx->Driver.GetSamplePosition(ctx, ctx->DrawBuffer, index, val); in _mesa_GetMultisamplefv() 100 if (ctx->DrawBuffer->FlipY) in _mesa_GetMultisamplefv() 117 if (ctx->DrawBuffer->SampleLocationTable) in _mesa_GetMultisamplefv() 118 *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()
|
/third_party/mesa3d/src/mesa/drivers/x11/ |
D | xm_dd.c | 82 if (_mesa_is_user_fbo(ctx->DrawBuffer)) in color_mask() 85 xmbuf = XMESA_BUFFER(ctx->DrawBuffer); in color_mask() 117 XMesaBuffer xmbuf = XMESA_BUFFER(ctx->DrawBuffer); in clear_pixmap() 253 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in clear_buffers() 256 XMesaBuffer b = XMESA_BUFFER(ctx->DrawBuffer); in clear_buffers() 257 const GLint x = ctx->DrawBuffer->_Xmin; in clear_buffers() 258 const GLint y = ctx->DrawBuffer->_Ymin; in clear_buffers() 259 const GLint width = ctx->DrawBuffer->_Xmax - x; in clear_buffers() 260 const GLint height = ctx->DrawBuffer->_Ymax - y; in clear_buffers() 278 = ctx->DrawBuffer->Attachment[BUFFER_FRONT_LEFT].Renderbuffer; in clear_buffers() [all …]
|
/third_party/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() 305 && (ctx->DrawBuffer->_NumColorDrawBuffers > 0)) { in _swrast_Clear() 315 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_Clear() 317 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() 371 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_depth_test_span() 499 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_depth_bounds_test() 627 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_clear_depth_buffer() 639 x = ctx->DrawBuffer->_Xmin; in _swrast_clear_depth_buffer() 640 y = ctx->DrawBuffer->_Ymin; in _swrast_clear_depth_buffer() 641 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _swrast_clear_depth_buffer() 642 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _swrast_clear_depth_buffer() 654 ctx->DrawBuffer->FlipY); in _swrast_clear_depth_buffer() 753 const GLubyte stencilBits = ctx->DrawBuffer->Visual.stencilBits; in _swrast_clear_depth_stencil_buffer() [all …]
|
D | s_stencil.c | 413 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_stencil_and_ztest_span() 457 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer == NULL) { in _swrast_stencil_and_ztest_span() 558 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_write_stencil_span() 613 ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in _swrast_clear_stencil_buffer() 614 const GLubyte stencilBits = ctx->DrawBuffer->Visual.stencilBits; in _swrast_clear_stencil_buffer() 626 x = ctx->DrawBuffer->_Xmin; in _swrast_clear_stencil_buffer() 627 y = ctx->DrawBuffer->_Ymin; in _swrast_clear_stencil_buffer() 628 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _swrast_clear_stencil_buffer() 629 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _swrast_clear_stencil_buffer() 643 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()
|
/third_party/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() 278 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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/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() 92 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()
|
/third_party/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()
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_buffers.c | 38 if (_mesa_is_front_buffer_drawing(ctx->DrawBuffer)) { in brw_drawbuffer() 72 functions->DrawBuffer = brw_drawbuffer; in brw_init_buffer_functions()
|