/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | gen6_scissor_state.c | 39 const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); in gen6_upload_scissor_state() 55 if (ctx->DrawBuffer->_Xmin == ctx->DrawBuffer->_Xmax || in gen6_upload_scissor_state() 56 ctx->DrawBuffer->_Ymin == ctx->DrawBuffer->_Ymax) { in gen6_upload_scissor_state() 69 scissor->xmin = ctx->DrawBuffer->_Xmin; in gen6_upload_scissor_state() 70 scissor->xmax = ctx->DrawBuffer->_Xmax - 1; in gen6_upload_scissor_state() 71 scissor->ymin = ctx->DrawBuffer->_Ymin; in gen6_upload_scissor_state() 72 scissor->ymax = ctx->DrawBuffer->_Ymax - 1; in gen6_upload_scissor_state() 76 scissor->xmin = ctx->DrawBuffer->_Xmin; in gen6_upload_scissor_state() 77 scissor->xmax = ctx->DrawBuffer->_Xmax - 1; in gen6_upload_scissor_state() 78 scissor->ymin = ctx->DrawBuffer->Height - ctx->DrawBuffer->_Ymax; in gen6_upload_scissor_state() [all …]
|
D | brw_sf_state.c | 46 const GLfloat depth_scale = 1.0F / ctx->DrawBuffer->_DepthMaxF; in upload_sf_vp() 49 const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); in upload_sf_vp() 62 y_bias = ctx->DrawBuffer->Height; in upload_sf_vp() 86 if (ctx->DrawBuffer->_Xmin == ctx->DrawBuffer->_Xmax || in upload_sf_vp() 87 ctx->DrawBuffer->_Ymin == ctx->DrawBuffer->_Ymax) { in upload_sf_vp() 100 sfv->scissor.xmin = ctx->DrawBuffer->_Xmin; in upload_sf_vp() 101 sfv->scissor.xmax = ctx->DrawBuffer->_Xmax - 1; in upload_sf_vp() 102 sfv->scissor.ymin = ctx->DrawBuffer->_Ymin; in upload_sf_vp() 103 sfv->scissor.ymax = ctx->DrawBuffer->_Ymax - 1; in upload_sf_vp() 107 sfv->scissor.xmin = ctx->DrawBuffer->_Xmin; in upload_sf_vp() [all …]
|
D | intel_buffers.c | 44 intel_renderbuffer(intel->ctx.DrawBuffer->_ColorDrawBuffers[0]); in intel_drawbuf_region() 72 const struct gl_framebuffer *fb = intel->ctx.DrawBuffer; in intel_check_front_buffer_rendering() 86 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { in intelDrawBuffer() 109 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { in intelReadBuffer() 130 functions->DrawBuffer = intelDrawBuffer; in intelInitBufferFuncs()
|
D | gen7_viewport_state.c | 35 const GLfloat depth_scale = 1.0F / ctx->DrawBuffer->_DepthMaxF; in gen7_upload_sf_clip_viewport() 37 const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); in gen7_upload_sf_clip_viewport() 58 y_bias = ctx->DrawBuffer->Height; in gen7_upload_sf_clip_viewport()
|
D | gen6_viewport_state.c | 71 const GLfloat depth_scale = 1.0F / ctx->DrawBuffer->_DepthMaxF; in gen6_upload_sf_vp() 74 const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); in gen6_upload_sf_vp() 87 y_bias = ctx->DrawBuffer->Height; in gen6_upload_sf_vp()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_clear.c | 46 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()
|
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() 531 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_clear_depth_buffer() 543 x = ctx->DrawBuffer->_Xmin; in _swrast_clear_depth_buffer() 544 y = ctx->DrawBuffer->_Ymin; in _swrast_clear_depth_buffer() 545 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _swrast_clear_depth_buffer() 546 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _swrast_clear_depth_buffer() 656 const GLubyte stencilBits = ctx->DrawBuffer->Visual.stencilBits; in _swrast_clear_depth_stencil_buffer() 660 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_clear_depth_stencil_buffer() [all …]
|
D | s_stencil.c | 352 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_stencil_and_ztest_span() 396 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer == NULL) { in _swrast_stencil_and_ztest_span() 497 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_write_stencil_span() 552 ctx->DrawBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in _swrast_clear_stencil_buffer() 553 const GLubyte stencilBits = ctx->DrawBuffer->Visual.stencilBits; in _swrast_clear_stencil_buffer() 565 x = ctx->DrawBuffer->_Xmin; in _swrast_clear_stencil_buffer() 566 y = ctx->DrawBuffer->_Ymin; in _swrast_clear_stencil_buffer() 567 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _swrast_clear_stencil_buffer() 568 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _swrast_clear_stencil_buffer()
|
D | s_feedback.c | 45 win[2] = v->attrib[FRAG_ATTRIB_WPOS][2] / ctx->DrawBuffer->_DepthMaxF; in feedback_vertex() 115 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; in _swrast_select_triangle() 127 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; in _swrast_select_line() 136 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/dri/i915/ |
D | intel_buffers.c | 44 intel_renderbuffer(intel->ctx.DrawBuffer->_ColorDrawBuffers[0]); in intel_drawbuf_region() 72 const struct gl_framebuffer *fb = intel->ctx.DrawBuffer; in intel_check_front_buffer_rendering() 86 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { in intelDrawBuffer() 109 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { in intelReadBuffer() 130 functions->DrawBuffer = intelDrawBuffer; in intelInitBufferFuncs()
|
D | i915_state.c | 377 if (!ctx->DrawBuffer || !ctx->DrawBuffer->Visual.depthBits) in i915DepthMask() 404 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in intelCalcViewport() 407 ctx->DrawBuffer->Height - ctx->Viewport.Y, in intelCalcViewport() 517 if (!ctx->DrawBuffer) in i915Scissor() 522 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in i915Scissor() 524 y1 = ctx->DrawBuffer->Height - (y + h); in i915Scissor() 539 x1 = CLAMP(x1, 0, ctx->DrawBuffer->Width - 1); in i915Scissor() 540 y1 = CLAMP(y1, 0, ctx->DrawBuffer->Height - 1); in i915Scissor() 541 x2 = CLAMP(x2, 0, ctx->DrawBuffer->Width - 1); in i915Scissor() 542 y2 = CLAMP(y2, 0, ctx->DrawBuffer->Height - 1); in i915Scissor() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/intel/ |
D | intel_buffers.c | 44 intel_renderbuffer(intel->ctx.DrawBuffer->_ColorDrawBuffers[0]); in intel_drawbuf_region() 72 const struct gl_framebuffer *fb = intel->ctx.DrawBuffer; in intel_check_front_buffer_rendering() 86 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { in intelDrawBuffer() 109 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { in intelReadBuffer() 130 functions->DrawBuffer = intelDrawBuffer; in intelInitBufferFuncs()
|
/external/mesa3d/src/mesa/main/ |
D | accum.c | 80 if (ctx->DrawBuffer->Visual.haveAccumBuffer == 0) { in _mesa_Accum() 85 if (ctx->DrawBuffer != ctx->ReadBuffer) { in _mesa_Accum() 97 if (ctx->DrawBuffer->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) { in _mesa_Accum() 133 if (!ctx->DrawBuffer) in _mesa_clear_accum_buffer() 136 accRb = ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; in _mesa_clear_accum_buffer() 141 x = ctx->DrawBuffer->_Xmin; in _mesa_clear_accum_buffer() 142 y = ctx->DrawBuffer->_Ymin; in _mesa_clear_accum_buffer() 143 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in _mesa_clear_accum_buffer() 144 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in _mesa_clear_accum_buffer() 194 ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; in accum_scale_or_bias() [all …]
|
D | clear.c | 183 if (ctx->DrawBuffer->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) { in _mesa_Clear() 189 if (ctx->DrawBuffer->Width == 0 || ctx->DrawBuffer->Height == 0 || in _mesa_Clear() 190 ctx->DrawBuffer->_Xmin >= ctx->DrawBuffer->_Xmax || in _mesa_Clear() 191 ctx->DrawBuffer->_Ymin >= ctx->DrawBuffer->_Ymax) in _mesa_Clear() 212 for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) { in _mesa_Clear() 213 bufferMask |= (1 << ctx->DrawBuffer->_ColorDrawBufferIndexes[i]); in _mesa_Clear() 218 && ctx->DrawBuffer->Visual.haveDepthBuffer) { in _mesa_Clear() 223 && ctx->DrawBuffer->Visual.haveStencilBuffer) { in _mesa_Clear() 228 && ctx->DrawBuffer->Visual.haveAccumBuffer) { in _mesa_Clear() 250 const struct gl_renderbuffer_attachment *att = ctx->DrawBuffer->Attachment; in make_color_buffer_mask() [all …]
|
D | buffers.c | 243 = supported_buffer_bitmask(ctx, ctx->DrawBuffer); in _mesa_DrawBuffer() 268 else if (ctx->Driver.DrawBuffer) in _mesa_DrawBuffer() 269 ctx->Driver.DrawBuffer(ctx, buffer); in _mesa_DrawBuffer() 299 supportedMask = supported_buffer_bitmask(ctx, ctx->DrawBuffer); in _mesa_DrawBuffersARB() 342 else if (ctx->Driver.DrawBuffer) in _mesa_DrawBuffersARB() 343 ctx->Driver.DrawBuffer(ctx, n > 0 ? buffers[0] : GL_NONE); in _mesa_DrawBuffersARB() 358 struct gl_framebuffer *fb = ctx->DrawBuffer; in updated_drawbuffers() 387 struct gl_framebuffer *fb = ctx->DrawBuffer; in _mesa_drawbuffers() 459 if (ctx->Color.DrawBuffer[buf] != fb->ColorDrawBuffer[buf]) { in _mesa_drawbuffers() 461 ctx->Color.DrawBuffer[buf] = fb->ColorDrawBuffer[buf]; in _mesa_drawbuffers() [all …]
|
D | state.c | 280 const GLfloat depthMax = ctx->DrawBuffer->_DepthMaxF; in update_viewport_matrix() 304 ctx->DrawBuffer && in update_multisample() 305 ctx->DrawBuffer->Visual.sampleBuffers) in update_multisample() 318 !ctx->DrawBuffer || !ctx->DrawBuffer->Visual.floatMode; in update_clamp_fragment_color() 332 !ctx->DrawBuffer || !ctx->DrawBuffer->Visual.floatMode; in update_clamp_vertex_color()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_clear.c | 198 const struct gl_framebuffer *fb = ctx->DrawBuffer; in clear_with_quad() 201 const GLfloat x0 = (GLfloat) ctx->DrawBuffer->_Xmin / fb_width * 2.0f - 1.0f; in clear_with_quad() 202 const GLfloat x1 = (GLfloat) ctx->DrawBuffer->_Xmax / fb_width * 2.0f - 1.0f; in clear_with_quad() 203 const GLfloat y0 = (GLfloat) ctx->DrawBuffer->_Ymin / fb_height * 2.0f - 1.0f; in clear_with_quad() 204 const GLfloat y1 = (GLfloat) ctx->DrawBuffer->_Ymax / fb_height * 2.0f - 1.0f; in clear_with_quad() 303 if (ctx->DrawBuffer->_ColorDrawBuffers[0]) { in clear_with_quad() 304 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0]; in clear_with_quad() 309 ctx->DrawBuffer->_ColorDrawBuffers[0]->_BaseFormat, in clear_with_quad() 399 if (!ds_separate && isDS && ctx->DrawBuffer->Visual.stencilBits > 0) in check_clear_depth_with_quad() 436 if (!ds_separate && isDS && ctx->DrawBuffer->Visual.depthBits > 0) in check_clear_stencil_with_quad() [all …]
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_dd.c | 74 if (_mesa_is_user_fbo(ctx->DrawBuffer)) in color_mask() 77 xmbuf = XMESA_BUFFER(ctx->DrawBuffer); in color_mask() 109 XMesaBuffer xmbuf = XMESA_BUFFER(ctx->DrawBuffer); in clear_pixmap() 245 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() 270 = ctx->DrawBuffer->Attachment[BUFFER_FRONT_LEFT].Renderbuffer; in clear_buffers() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_common.c | 115 if (!ctx->DrawBuffer) in radeonUpdateScissor() 118 max_x = ctx->DrawBuffer->Width - 1; in radeonUpdateScissor() 119 max_y = ctx->DrawBuffer->Height - 1; in radeonUpdateScissor() 121 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonUpdateScissor() 123 y1 = ctx->DrawBuffer->Height - (y + h); in radeonUpdateScissor() 188 const struct gl_framebuffer *fb = ctx->DrawBuffer; in radeon_check_front_buffer_rendering() 361 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonDrawBuffer() 379 radeon_draw_buffer(ctx, ctx->DrawBuffer); in radeonDrawBuffer() 384 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonReadBuffer() 396 if (ctx->ReadBuffer == ctx->DrawBuffer) { in radeonReadBuffer() [all …]
|
D | radeon_span.c | 134 radeon_map_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderStart() 135 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderStart() 149 radeon_unmap_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderFinish() 150 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderFinish()
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_common.c | 115 if (!ctx->DrawBuffer) in radeonUpdateScissor() 118 max_x = ctx->DrawBuffer->Width - 1; in radeonUpdateScissor() 119 max_y = ctx->DrawBuffer->Height - 1; in radeonUpdateScissor() 121 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonUpdateScissor() 123 y1 = ctx->DrawBuffer->Height - (y + h); in radeonUpdateScissor() 188 const struct gl_framebuffer *fb = ctx->DrawBuffer; in radeon_check_front_buffer_rendering() 361 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonDrawBuffer() 379 radeon_draw_buffer(ctx, ctx->DrawBuffer); in radeonDrawBuffer() 384 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { in radeonReadBuffer() 396 if (ctx->ReadBuffer == ctx->DrawBuffer) { in radeonReadBuffer() [all …]
|
D | radeon_span.c | 134 radeon_map_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderStart() 135 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderStart() 149 radeon_unmap_framebuffer(ctx, ctx->DrawBuffer); in radeonSpanRenderFinish() 150 if (ctx->ReadBuffer != ctx->DrawBuffer) in radeonSpanRenderFinish()
|
/external/mesa3d/src/mesa/drivers/windows/gdi/ |
D | wmesa.c | 251 #define FLIP(Y) (ctx->DrawBuffer->Height - (Y) - 1) in clear() 252 const GLint x = ctx->DrawBuffer->_Xmin; in clear() 253 const GLint y = ctx->DrawBuffer->_Ymin; in clear() 254 const GLint height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; in clear() 255 const GLint width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; in clear() 258 WMesaFramebuffer pwfb = wmesa_framebuffer(ctx->DrawBuffer); in clear() 300 if (width == ctx->DrawBuffer->Width && in clear() 301 height == ctx->DrawBuffer->Height) { /* entire buffer */ in clear() 594 WMesaFramebuffer pwfb = wmesa_framebuffer(ctx->DrawBuffer); in write_rgba_span_32() 625 WMesaFramebuffer pwfb = wmesa_framebuffer(ctx->DrawBuffer); in write_rgba_pixels_32() [all …]
|
/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() 168 get_scissors(ctx->DrawBuffer, &x, &y, &w, &h); in nv10_emit_scissor() 180 struct gl_framebuffer *fb = ctx->DrawBuffer; in nv10_emit_viewport() 206 to_nouveau_framebuffer(ctx->DrawBuffer); in nv10_emit_zclear()
|