/external/mesa3d/src/mesa/drivers/dri/i965/ |
gen6_scissor_state.c | 39 const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); 55 if (ctx->DrawBuffer->_Xmin == ctx->DrawBuffer->_Xmax || 56 ctx->DrawBuffer->_Ymin == ctx->DrawBuffer->_Ymax) { 69 scissor->xmin = ctx->DrawBuffer->_Xmin; 70 scissor->xmax = ctx->DrawBuffer->_Xmax - 1; 71 scissor->ymin = ctx->DrawBuffer->_Ymin; 72 scissor->ymax = ctx->DrawBuffer->_Ymax - 1; 76 scissor->xmin = ctx->DrawBuffer->_Xmin [all...] |
brw_sf_state.c | 46 const GLfloat depth_scale = 1.0F / ctx->DrawBuffer->_DepthMaxF; 49 const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); 62 y_bias = ctx->DrawBuffer->Height; 75 * for DrawBuffer->_[XY]{min,max} 86 if (ctx->DrawBuffer->_Xmin == ctx->DrawBuffer->_Xmax || 87 ctx->DrawBuffer->_Ymin == ctx->DrawBuffer->_Ymax) { 100 sfv->scissor.xmin = ctx->DrawBuffer->_Xmin; 101 sfv->scissor.xmax = ctx->DrawBuffer->_Xmax - 1 [all...] |
gen7_viewport_state.c | 35 const GLfloat depth_scale = 1.0F / ctx->DrawBuffer->_DepthMaxF; 37 const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); 58 y_bias = ctx->DrawBuffer->Height;
|
gen6_viewport_state.c | 71 const GLfloat depth_scale = 1.0F / ctx->DrawBuffer->_DepthMaxF; 74 const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); 87 y_bias = ctx->DrawBuffer->Height;
|
/external/mesa3d/src/mesa/drivers/dri/intel/ |
intel_buffers.c | 44 intel_renderbuffer(intel->ctx.DrawBuffer->_ColorDrawBuffers[0]); 72 const struct gl_framebuffer *fb = intel->ctx.DrawBuffer; 86 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { 109 if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer)) { 130 functions->DrawBuffer = intelDrawBuffer;
|
/external/mesa3d/src/mesa/main/ |
accum.c | 80 if (ctx->DrawBuffer->Visual.haveAccumBuffer == 0) { 85 if (ctx->DrawBuffer != ctx->ReadBuffer) { 97 if (ctx->DrawBuffer->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) { 133 if (!ctx->DrawBuffer) 136 accRb = ctx->DrawBuffer->Attachment[BUFFER_ACCUM].Renderbuffer; 141 x = ctx->DrawBuffer->_Xmin; 142 y = ctx->DrawBuffer->_Ymin; 143 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; 144 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin [all...] |
clear.c | 183 if (ctx->DrawBuffer->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) { 189 if (ctx->DrawBuffer->Width == 0 || ctx->DrawBuffer->Height == 0 || 190 ctx->DrawBuffer->_Xmin >= ctx->DrawBuffer->_Xmax || 191 ctx->DrawBuffer->_Ymin >= ctx->DrawBuffer->_Ymax) 212 for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) { 213 bufferMask |= (1 << ctx->DrawBuffer->_ColorDrawBufferIndexes[i]); 218 && ctx->DrawBuffer->Visual.haveDepthBuffer) [all...] |
buffers.c | 28 * glReadBuffer, DrawBuffer functions. 214 * current ctx->DrawBuffer is a window-system framebuffer (Name=0) or 216 * In the former case, we update the per-context ctx->Color.DrawBuffer 243 = supported_buffer_bitmask(ctx, ctx->DrawBuffer); 268 else if (ctx->Driver.DrawBuffer) 269 ctx->Driver.DrawBuffer(ctx, buffer); 299 supportedMask = supported_buffer_bitmask(ctx, ctx->DrawBuffer); 342 else if (ctx->Driver.DrawBuffer) 343 ctx->Driver.DrawBuffer(ctx, n > 0 ? buffers[0] : GL_NONE); 358 struct gl_framebuffer *fb = ctx->DrawBuffer; [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_clear.c | 46 const GLint x = ctx->DrawBuffer->_Xmin; 47 const GLint y = ctx->DrawBuffer->_Ymin; 48 const GLint height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; 49 const GLint width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; 180 for (buf = 0; buf < ctx->DrawBuffer->_NumColorDrawBuffers; buf++) { 181 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[buf]; 229 && (ctx->DrawBuffer->_NumColorDrawBuffers > 0)) { 239 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer [all...] |
s_feedback.c | 45 win[2] = v->attrib[FRAG_ATTRIB_WPOS][2] / ctx->DrawBuffer->_DepthMaxF; 115 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; 127 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; 136 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF;
|
s_linetemp.h | 79 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits; 81 struct gl_renderbuffer *zrb = ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; 86 const GLint depthBits = ctx->DrawBuffer->Visual.depthBits; 134 GLint w = ctx->DrawBuffer->Width; 135 GLint h = ctx->DrawBuffer->Height; 199 zPtrYstep = -((GLint) (ctx->DrawBuffer->Width * sizeof(DEPTH_TYPE))); 208 zPtrYstep = (GLint) (ctx->DrawBuffer->Width * sizeof(DEPTH_TYPE));
|
s_depth.c | 167 struct gl_framebuffer *fb = ctx->DrawBuffer; 285 struct gl_framebuffer *fb = ctx->DrawBuffer; 413 struct gl_framebuffer *fb = ctx->DrawBuffer; 531 ctx->DrawBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; 543 x = ctx->DrawBuffer->_Xmin; 544 y = ctx->DrawBuffer->_Ymin; 545 width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; 546 height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_span.c | 134 radeon_map_framebuffer(ctx, ctx->DrawBuffer); 135 if (ctx->ReadBuffer != ctx->DrawBuffer) 149 radeon_unmap_framebuffer(ctx, ctx->DrawBuffer); 150 if (ctx->ReadBuffer != ctx->DrawBuffer)
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nouveau_span.c | 65 framebuffer_map_unmap(ctx, ctx->DrawBuffer, map); 67 if (ctx->ReadBuffer != ctx->DrawBuffer)
|
nv04_state_fb.c | 53 struct gl_framebuffer *fb = ctx->DrawBuffer; 104 get_scissors(ctx->DrawBuffer, &x, &y, &w, &h);
|
nv10_state_fb.c | 58 struct gl_framebuffer *fb = ctx->DrawBuffer; 96 struct gl_framebuffer *fb = ctx->DrawBuffer; 168 get_scissors(ctx->DrawBuffer, &x, &y, &w, &h); 180 struct gl_framebuffer *fb = ctx->DrawBuffer; 206 to_nouveau_framebuffer(ctx->DrawBuffer);
|
nouveau_driver.c | 66 if (_mesa_is_winsys_fbo(ctx->DrawBuffer) && 67 ctx->DrawBuffer->_ColorDrawBufferIndexes[0] == BUFFER_FRONT_LEFT) { 98 struct gl_framebuffer *fb = ctx->DrawBuffer;
|
nv20_state_fb.c | 58 struct gl_framebuffer *fb = ctx->DrawBuffer; 81 struct gl_framebuffer *fb = ctx->DrawBuffer; 137 struct gl_framebuffer *fb = ctx->DrawBuffer;
|
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_viewport.c | 49 if (st_fb_orientation(ctx->DrawBuffer) == Y_0_TOP) { 54 yBias = (GLfloat)ctx->DrawBuffer->Height;
|
st_cb_flush.c | 54 struct gl_framebuffer *fb = st->ctx->DrawBuffer; 67 struct gl_framebuffer *fb = st->ctx->DrawBuffer;
|
st_cb_clear.c | 191 * ctx->DrawBuffer->_X/Ymin/max fields. 198 const struct gl_framebuffer *fb = ctx->DrawBuffer; 201 const GLfloat x0 = (GLfloat) ctx->DrawBuffer->_Xmin / fb_width * 2.0f - 1.0f; 202 const GLfloat x1 = (GLfloat) ctx->DrawBuffer->_Xmax / fb_width * 2.0f - 1.0f; 203 const GLfloat y0 = (GLfloat) ctx->DrawBuffer->_Ymin / fb_height * 2.0f - 1.0f; 204 const GLfloat y1 = (GLfloat) ctx->DrawBuffer->_Ymax / fb_height * 2.0f - 1.0f; 303 if (ctx->DrawBuffer->_ColorDrawBuffers[0]) { 304 struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0]; 309 ctx->DrawBuffer->_ColorDrawBuffers[0]->_BaseFormat, 399 if (!ds_separate && isDS && ctx->DrawBuffer->Visual.stencilBits > 0 [all...] |
st_atom_stipple.c | 78 ctx->DrawBuffer->Height);
|
st_cb_viewport.c | 68 stdraw = st_ws_framebuffer(st->ctx->DrawBuffer);
|
/external/mesa3d/src/mesa/drivers/x11/ |
xm_dd.c | 74 if (_mesa_is_user_fbo(ctx->DrawBuffer)) 77 xmbuf = XMESA_BUFFER(ctx->DrawBuffer); 109 XMesaBuffer xmbuf = XMESA_BUFFER(ctx->DrawBuffer); 245 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { 249 XMesaBuffer b = XMESA_BUFFER(ctx->DrawBuffer); 250 const GLint x = ctx->DrawBuffer->_Xmin; 251 const GLint y = ctx->DrawBuffer->_Ymin; 252 const GLint width = ctx->DrawBuffer->_Xmax - x; 253 const GLint height = ctx->DrawBuffer->_Ymax - y; 270 = ctx->DrawBuffer->Attachment[BUFFER_FRONT_LEFT].Renderbuffer [all...] |
/external/mesa3d/src/mesa/drivers/dri/i915/ |
i915_state.c | 377 if (!ctx->DrawBuffer || !ctx->DrawBuffer->Visual.depthBits) 404 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { 407 ctx->DrawBuffer->Height - ctx->Viewport.Y, 517 if (!ctx->DrawBuffer) 522 if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) { 524 y1 = ctx->DrawBuffer->Height - (y + h); 539 x1 = CLAMP(x1, 0, ctx->DrawBuffer->Width - 1); 540 y1 = CLAMP(y1, 0, ctx->DrawBuffer->Height - 1); 541 x2 = CLAMP(x2, 0, ctx->DrawBuffer->Width - 1) [all...] |