Home
last modified time | relevance | path

Searched refs:DrawBuffer (Results 1 – 25 of 134) sorted by relevance

123456

/external/mesa3d/src/mesa/main/
Daccum.c70 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()
133 ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; in accum_scale_or_bias()
191 ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; in accum_or_load()
283 struct gl_framebuffer *fb = ctx->DrawBuffer; in accum_return()
[all …]
Dbuffers.c117 if (ctx->DrawBuffer->Visual.doubleBufferMode) in draw_buffer_enum_to_bitmask()
189 if (!ctx->DrawBuffer->Visual.doubleBufferMode) in read_buffer_enum_to_index()
305 if (fb == ctx->DrawBuffer) { in draw_buffer()
308 else if (ctx->Driver.DrawBuffer) in draw_buffer()
309 ctx->Driver.DrawBuffer(ctx, buffer); in draw_buffer()
334 draw_buffer_no_error(ctx, ctx->DrawBuffer, buffer, "glDrawBuffer"); in _mesa_DrawBuffer_no_error()
342 draw_buffer_error(ctx, ctx->DrawBuffer, buffer, "glDrawBuffer"); in _mesa_DrawBuffer()
584 if (fb == ctx->DrawBuffer) { in draw_buffers()
587 else if (ctx->Driver.DrawBuffer) in draw_buffers()
588 ctx->Driver.DrawBuffer(ctx, n > 0 ? buffers[0] : GL_NONE); in draw_buffers()
[all …]
Dclear.c116 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.haveDepthBuffer) { in clear()
211 && ctx->DrawBuffer->Visual.haveStencilBuffer) { in clear()
216 && ctx->DrawBuffer->Visual.haveAccumBuffer) { 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 …]
Ddebug.c457 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()
/external/mesa3d/src/mesa/swrast/
Ds_clear.c46 const GLint x = ctx->DrawBuffer->_Xmin; in clear_rgba_buffer()
47 const GLint y = ctx->DrawBuffer->_Ymin; in clear_rgba_buffer()
48 const GLint height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in clear_rgba_buffer()
49 const GLint width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in clear_rgba_buffer()
180 for (buf = 0; buf < ctx->DrawBuffer->_NumColorDrawBuffers; buf++) { in clear_color_buffers()
181 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[buf]; in clear_color_buffers()
229 && (ctx->DrawBuffer->_NumColorDrawBuffers > 0)) { in _swrast_Clear()
239 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_Clear()
241 ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in _swrast_Clear()
Ds_depth.c167 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_depth_clamp_span()
285 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_depth_test_span()
419 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_depth_bounds_test()
547 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_clear_depth_buffer()
559 x = ctx->DrawBuffer->_Xmin; in _swrast_clear_depth_buffer()
560 y = ctx->DrawBuffer->_Ymin; in _swrast_clear_depth_buffer()
561 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _swrast_clear_depth_buffer()
562 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _swrast_clear_depth_buffer()
672 const GLubyte stencilBits = ctx->DrawBuffer->Visual.stencilBits; in _swrast_clear_depth_stencil_buffer()
676 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_clear_depth_stencil_buffer()
[all …]
Ds_stencil.c354 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_stencil_and_ztest_span()
398 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer == NULL) { in _swrast_stencil_and_ztest_span()
499 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_write_stencil_span()
554 ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in _swrast_clear_stencil_buffer()
555 const GLubyte stencilBits = ctx->DrawBuffer->Visual.stencilBits; in _swrast_clear_stencil_buffer()
567 x = ctx->DrawBuffer->_Xmin; in _swrast_clear_stencil_buffer()
568 y = ctx->DrawBuffer->_Ymin; in _swrast_clear_stencil_buffer()
569 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _swrast_clear_stencil_buffer()
570 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _swrast_clear_stencil_buffer()
Ds_feedback.c44 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()
Ds_linetemp.h79 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()
Ds_fragprog.c168 wpos[1] = ctx->DrawBuffer->Height - 1 - wpos[1]; in init_machine()
228 for (buf = 0; buf < ctx->DrawBuffer->_NumColorDrawBuffers; buf++) { in run_program()
242 span->array->z[i] = ctx->DrawBuffer->_DepthMax; in run_program()
245 (GLuint) (depth * ctx->DrawBuffer->_DepthMaxF + 0.5F); in run_program()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_dd.c75 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()
250 XMesaBuffer b = XMESA_BUFFER(ctx->DrawBuffer); in clear_buffers()
251 const GLint x = ctx->DrawBuffer->_Xmin; in clear_buffers()
252 const GLint y = ctx->DrawBuffer->_Ymin; in clear_buffers()
253 const GLint width = ctx->DrawBuffer->_Xmax - x; in clear_buffers()
254 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/
Dst_cb_clear.c180 const struct gl_framebuffer *fb = ctx->DrawBuffer; in clear_with_quad()
184 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in clear_with_quad()
186 const GLfloat x0 = (GLfloat) ctx->DrawBuffer->_Xmin / fb_width * 2.0f - 1.0f; in clear_with_quad()
187 const GLfloat x1 = (GLfloat) ctx->DrawBuffer->_Xmax / fb_width * 2.0f - 1.0f; in clear_with_quad()
188 const GLfloat y0 = (GLfloat) ctx->DrawBuffer->_Ymin / fb_height * 2.0f - 1.0f; in clear_with_quad()
189 const GLfloat y1 = (GLfloat) ctx->DrawBuffer->_Ymax / fb_height * 2.0f - 1.0f; in clear_with_quad()
220 ctx->DrawBuffer->_NumColorDrawBuffers : 1; in clear_with_quad()
333 if (ctx->DrawBuffer == ctx->WinSysDrawBuffer) in is_window_rectangle_enabled()
400 = ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in st_Clear()
402 = ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in st_Clear()
[all …]
Dst_atom_stipple.c77 if (_mesa_is_user_fbo(ctx->DrawBuffer)) { in st_update_polygon_stipple()
81 ctx->DrawBuffer->Height); in st_update_polygon_stipple()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_common.c113 if (!ctx->DrawBuffer) in radeonUpdateScissor()
116 max_x = ctx->DrawBuffer->Width - 1; in radeonUpdateScissor()
117 max_y = ctx->DrawBuffer->Height - 1; in radeonUpdateScissor()
119 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonUpdateScissor()
121 y1 = ctx->DrawBuffer->Height - (y + h); in radeonUpdateScissor()
186 const struct gl_framebuffer *fb = ctx->DrawBuffer; in radeon_check_front_buffer_rendering()
223 _mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer); in radeon_draw_buffer()
225 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in radeon_draw_buffer()
347 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonDrawBuffer()
365 radeon_draw_buffer(ctx, ctx->DrawBuffer); in radeonDrawBuffer()
[all …]
Dradeon_span.c127 radeon_map_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderStart()
128 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderStart()
137 radeon_unmap_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderFinish()
138 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderFinish()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_common.c113 if (!ctx->DrawBuffer) in radeonUpdateScissor()
116 max_x = ctx->DrawBuffer->Width - 1; in radeonUpdateScissor()
117 max_y = ctx->DrawBuffer->Height - 1; in radeonUpdateScissor()
119 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonUpdateScissor()
121 y1 = ctx->DrawBuffer->Height - (y + h); in radeonUpdateScissor()
186 const struct gl_framebuffer *fb = ctx->DrawBuffer; in radeon_check_front_buffer_rendering()
223 _mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer); in radeon_draw_buffer()
225 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in radeon_draw_buffer()
347 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonDrawBuffer()
365 radeon_draw_buffer(ctx, ctx->DrawBuffer); in radeonDrawBuffer()
[all …]
Dradeon_span.c127 radeon_map_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderStart()
128 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderStart()
137 radeon_unmap_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderFinish()
138 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderFinish()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_buffers.c44 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()
Di915_state.c379 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 …]
Di830_state.c441 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 …]
Di915_vtbl.c576 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0]; in i915_set_draw_region()
628 drb = ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in i915_set_draw_region()
630 drb = ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in i915_set_draw_region()
663 (ctx->DrawBuffer->Width + draw_x > 2048) || in i915_set_draw_region()
664 (ctx->DrawBuffer->Height + draw_y > 2048)); in i915_set_draw_region()
676 ((ctx->DrawBuffer->Width + draw_x - 1) & 0xffff) | in i915_set_draw_region()
677 ((ctx->DrawBuffer->Height + draw_y - 1) << 16); in i915_set_draw_region()
712 struct gl_framebuffer *fb = ctx->DrawBuffer; in i915_update_draw_buffer()
729 _mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer); in i915_update_draw_buffer()
731 _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer); in i915_update_draw_buffer()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv10_state_fb.c58 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()
Dnv20_state_fb.c58 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/
Dintel_buffers.c38 if (_mesa_is_front_buffer_drawing(ctx->DrawBuffer)) { in intelDrawBuffer()
70 functions->DrawBuffer = intelDrawBuffer; in intelInitBufferFuncs()
Dintel_pixel_draw.c67 if (ctx->DrawBuffer->_NumColorDrawBuffers != 1) { in do_blit_drawpixels()
74 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0]; in do_blit_drawpixels()
130 x, y, _mesa_is_winsys_fbo(ctx->DrawBuffer), in do_blit_drawpixels()

123456