/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() 261 const struct gl_renderbuffer_attachment *att = ctx->DrawBuffer->Attachment; in make_color_buffer_mask() 282 switch (ctx->DrawBuffer->ColorDrawBuffer[drawbuffer]) { in make_color_buffer_mask() 295 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 | 140 buffer = _mesa_back_to_front_if_single_buffered(ctx->DrawBuffer, buffer); in draw_buffer_enum_to_bitmask() 323 if (fb == ctx->DrawBuffer) { in draw_buffer() 324 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) in draw_buffer() 350 draw_buffer_no_error(ctx, ctx->DrawBuffer, buffer, "glDrawBuffer"); in _mesa_DrawBuffer_no_error() 358 draw_buffer_error(ctx, ctx->DrawBuffer, buffer, "glDrawBuffer"); in _mesa_DrawBuffer() 630 if (fb == ctx->DrawBuffer) { in draw_buffers() 631 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) in draw_buffers() 657 draw_buffers_no_error(ctx, ctx->DrawBuffer, n, buffers, "glDrawBuffers"); in _mesa_DrawBuffers_no_error() 665 draw_buffers_error(ctx, ctx->DrawBuffer, n, buffers, "glDrawBuffers"); in _mesa_DrawBuffers() 833 if (ctx->Color.DrawBuffer[buf] != fb->ColorDrawBuffer[buf]) { in _mesa_drawbuffers() [all …]
|
D | multisample.c | 113 if (index >= ctx->DrawBuffer->Visual.samples) { in _mesa_GetMultisamplefv() 118 get_sample_position(ctx, ctx->DrawBuffer, index, val); in _mesa_GetMultisamplefv() 121 if (ctx->DrawBuffer->FlipY) in _mesa_GetMultisamplefv() 138 if (ctx->DrawBuffer->SampleLocationTable) in _mesa_GetMultisamplefv() 139 *val = ctx->DrawBuffer->SampleLocationTable[index]; in _mesa_GetMultisamplefv()
|
D | debug.c | 457 const GLuint w = ctx->DrawBuffer->Width; in _mesa_dump_color_buffer() 458 const GLuint h = ctx->DrawBuffer->Height; in _mesa_dump_color_buffer() 472 (void *) ctx->DrawBuffer->_ColorDrawBuffers[0], in _mesa_dump_color_buffer() 473 ctx->DrawBuffer->ColorDrawBuffer[0]); in _mesa_dump_color_buffer() 487 const GLuint w = ctx->DrawBuffer->Width; in _mesa_dump_depth_buffer() 488 const GLuint h = ctx->DrawBuffer->Height; in _mesa_dump_depth_buffer() 523 const GLuint w = ctx->DrawBuffer->Width; in _mesa_dump_stencil_buffer() 524 const GLuint h = ctx->DrawBuffer->Height; in _mesa_dump_stencil_buffer()
|
D | framebuffer.c | 304 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in _mesa_resize_framebuffer() 595 struct gl_framebuffer *fb = ctx->DrawBuffer; in _mesa_draw_buffer_allocate() 630 if (fb->ColorDrawBuffer[0] != ctx->Color.DrawBuffer[0]) { in update_framebuffer() 632 ctx->Color.DrawBuffer, NULL); in update_framebuffer() 636 if (fb == ctx->DrawBuffer) { in update_framebuffer() 805 return renderbuffer_exists(ctx, ctx->DrawBuffer, format, GL_FALSE); in _mesa_dest_buffer_exists() 1015 ctx->DrawBuffer && in _mesa_is_multisample_enabled() 1016 _mesa_geometric_nonvalidated_samples(ctx->DrawBuffer) >= 1; in _mesa_is_multisample_enabled() 1026 bool buffer0_is_integer = ctx->DrawBuffer->_IntegerBuffers & 0x1; in _mesa_is_alpha_test_enabled()
|
D | stencil.h | 52 GLint stencilMax = (1 << ctx->DrawBuffer->Visual.stencilBits) - 1; in _mesa_get_stencil_ref() 61 ctx->DrawBuffer->Visual.stencilBits > 0; in _mesa_stencil_is_enabled()
|
D | context.c | 986 ctx->DrawBuffer = NULL; in _mesa_initialize_context() 1115 _mesa_reference_framebuffer(&ctx->DrawBuffer, NULL); in _mesa_free_context_data() 1376 if (ctx->Version == 0 || !ctx->DrawBuffer) { in handle_first_current() 1390 if (ctx->DrawBuffer != _mesa_get_incomplete_framebuffer()) { in handle_first_current() 1393 if (ctx->DrawBuffer->Visual.doubleBufferMode) in handle_first_current() 1398 _mesa_drawbuffers(ctx, ctx->DrawBuffer, 1, &buffer, in handle_first_current() 1529 if (!newCtx->DrawBuffer || _mesa_is_winsys_fbo(newCtx->DrawBuffer)) { in _mesa_make_current() 1530 _mesa_reference_framebuffer(&newCtx->DrawBuffer, drawBuffer); in _mesa_make_current()
|
D | state.c | 124 ctx->DrawBuffer && in _mesa_update_allow_draw_out_of_order() 125 ctx->DrawBuffer->Visual.depthBits && in _mesa_update_allow_draw_out_of_order() 133 (!ctx->DrawBuffer->Visual.stencilBits || in _mesa_update_allow_draw_out_of_order() 417 _mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer); in _mesa_update_state_locked()
|
D | drawpix.c | 63 _mesa_enum_to_string(ctx->DrawBuffer->ColorDrawBuffer[0]), in _mesa_DrawPixels() 212 _mesa_enum_to_string(ctx->DrawBuffer->ColorDrawBuffer[0]), in _mesa_CopyPixels()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_cb_clear.c | 230 const struct gl_framebuffer *fb = ctx->DrawBuffer; in clear_with_quad() 234 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in clear_with_quad() 236 const GLfloat x0 = (GLfloat) ctx->DrawBuffer->_Xmin / fb_width * 2.0f - 1.0f; in clear_with_quad() 237 const GLfloat x1 = (GLfloat) ctx->DrawBuffer->_Xmax / fb_width * 2.0f - 1.0f; in clear_with_quad() 238 const GLfloat y0 = (GLfloat) ctx->DrawBuffer->_Ymin / fb_height * 2.0f - 1.0f; in clear_with_quad() 239 const GLfloat y1 = (GLfloat) ctx->DrawBuffer->_Ymax / fb_height * 2.0f - 1.0f; in clear_with_quad() 269 ctx->DrawBuffer->_NumColorDrawBuffers : 1; in clear_with_quad() 383 if (ctx->DrawBuffer == ctx->WinSysDrawBuffer) in is_window_rectangle_enabled() 420 = ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in st_Clear() 422 = 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 (ctx->DrawBuffer->_BlendForceAlphaToOne) { in blend_per_rt() 229 (ctx->DrawBuffer->_IntegerBuffers & (1 << i)) || in st_update_blend() 270 ctx->DrawBuffer->_ColorDrawBuffers[i]; in st_update_blend() 272 if (rb && (ctx->DrawBuffer->_BlendForceAlphaToOne & (1 << i))) { in st_update_blend() 289 !(ctx->DrawBuffer->_IntegerBuffers & 0x1)) { in st_update_blend()
|
D | st_atom_depth.c | 86 if (ctx->DrawBuffer->Visual.depthBits > 0) { in st_update_depth_stencil_alpha() 100 if (ctx->Stencil.Enabled && ctx->DrawBuffer->Visual.stencilBits > 0) { in st_update_depth_stencil_alpha() 132 !(ctx->DrawBuffer->_IntegerBuffers & 0x1)) { in st_update_depth_stencil_alpha()
|
D | st_atom_stipple.c | 77 if (!ctx->DrawBuffer->FlipY) { in st_update_polygon_stipple() 81 ctx->DrawBuffer->Height); in st_update_polygon_stipple()
|
D | st_cb_drawpixels.c | 746 const unsigned fb_width = _mesa_geometric_width(ctx->DrawBuffer); in draw_textured_quad() 747 const unsigned fb_height = _mesa_geometric_height(ctx->DrawBuffer); in draw_textured_quad() 908 if (_mesa_fb_orientation(ctx->DrawBuffer) == Y_0_BOTTOM) { in draw_textured_quad() 974 rb = ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in draw_stencil_pixels() 976 if (_mesa_fb_orientation(ctx->DrawBuffer) == Y_0_TOP) { in draw_stencil_pixels() 977 y = ctx->DrawBuffer->Height - y - height; in draw_stencil_pixels() 1032 if (_mesa_fb_orientation(ctx->DrawBuffer) == Y_0_TOP) { in draw_stencil_pixels() 1289 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in st_DrawPixels() 1433 rbDraw = ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in copy_stencil_pixels() 1457 if (_mesa_fb_orientation(ctx->DrawBuffer) == Y_0_TOP) { in copy_stencil_pixels() [all …]
|
D | st_atom_scissor.c | 50 const struct gl_framebuffer *fb = ctx->DrawBuffer; in st_update_scissor() 121 if (ctx->DrawBuffer == ctx->WinSysDrawBuffer) { in st_update_window_rectangles()
|
D | st_cb_rasterpos.c | 144 const GLfloat height = (GLfloat) ctx->DrawBuffer->Height; in rastpos_point() 158 if (_mesa_fb_orientation(ctx->DrawBuffer) == Y_0_TOP) in rastpos_point()
|
D | st_cb_feedback.c | 96 if (_mesa_fb_orientation(ctx->DrawBuffer) == Y_0_TOP) in feedback_vertex() 97 win[1] = ctx->DrawBuffer->Height - v->data[0][1]; in feedback_vertex()
|
/third_party/mesa3d/src/mesa/program/ |
D | prog_statevars.c | 299 if (_mesa_get_clamp_fragment_color(ctx, ctx->DrawBuffer)) in fetch_state() 306 if (_mesa_get_clamp_fragment_color(ctx, ctx->DrawBuffer)) in fetch_state() 462 val[0].i = MAX2(1, _mesa_geometric_samples(ctx->DrawBuffer)); in fetch_state() 720 value[0] = (GLfloat) (ctx->DrawBuffer->Width - 1); in fetch_state() 721 value[1] = (GLfloat) (ctx->DrawBuffer->Height - 1); in fetch_state() 729 if (!ctx->DrawBuffer->FlipY) { in fetch_state() 734 value[3] = _mesa_geometric_height(ctx->DrawBuffer); in fetch_state() 738 value[1] = _mesa_geometric_height(ctx->DrawBuffer); in fetch_state() 748 (ctx->DrawBuffer->FlipY); in fetch_state()
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/glprototypes/ |
D | opengl.h | 58 GST_GL_EXT_FUNCTION (void, DrawBuffer,
|
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/ |
D | EXT_scene_marker.txt | 124 DrawBuffer, Accum, Flush, and Finish generate an INVALID_OPERATION 175 CopyTexSubImage, DrawBuffer, Accum, Flush, or Finish is issued between 198 an enable. Made DrawBuffer within a scene, or ReadPixels/CopyPixels of
|
/third_party/openGLES/extensions/EXT/ |
D | EXT_scene_marker.txt | 124 DrawBuffer, Accum, Flush, and Finish generate an INVALID_OPERATION 175 CopyTexSubImage, DrawBuffer, Accum, Flush, or Finish is issued between 198 an enable. Made DrawBuffer within a scene, or ReadPixels/CopyPixels of
|
/third_party/mesa3d/src/glx/apple/ |
D | apple_xgl_api_stereo.c | 82 __ogl_framework_api->DrawBuffer(mode); in __applegl_glDrawBuffer()
|
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/ |
D | ARB_draw_buffers.txt | 268 with either DrawBuffer or DrawBuffersARB. 272 void DrawBuffer(enum buf); 288 they indicate are summarized in Table 4.3. If DrawBuffer is 308 Table 4.3: Arguments to DrawBuffer and the buffers that they 312 DrawBuffer will set the draw buffer for output colors other than 0 355 Indicating a buffer or buffers using DrawBuffer or DrawBuffersARB
|